Updating remaining paths in scripts

This commit is contained in:
Adsooi 2024-09-30 01:27:30 +02:00
parent ca5c7492dc
commit e2841c0129
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
9 changed files with 33 additions and 34 deletions

View file

@ -4,7 +4,7 @@ cd "$DIR/.." || exit 1
rm -rf build
bash scripts/build.sh
cd build || exit 1
cd build/runtime-pyside6 || exit 1
rm $(find . -name "*.pyc")
@ -21,12 +21,12 @@ pyinstaller --add-data "LogarithmPlotter/qml:qml" \
--exclude-module "Tkinter" \
--noconsole \
--noconfirm \
--icon=../assets/native/mac/logarithmplotter.icns \
--icon=../../assets/native/mac/logarithmplotter.icns \
--osx-bundle-identifier eu.ad5001.LogarithmPlotter \
-n LogarithmPlotter \
LogarithmPlotter/logarithmplotter.py
cp ../assets/native/mac/Info.plist dist/LogarithmPlotter.app/Contents/Info.plist
cp ../../assets/native/mac/Info.plist dist/LogarithmPlotter.app/Contents/Info.plist
# Remove QtWebEngine, 3D and all other unused libs libs
rm -rf dist/LogarithmPlotter.app/Contents/MacOS/{QtWeb*,*3D*,QtRemote*,QtPdf,QtCharts,QtLocation,QtTest,QtMultimedia,QtSpatialAudio,QtDataVisualization,QtQuickParticles,QtChartsQml,QtScxml,QtDataVisualizationQml,QtTest,QtPositioningQuick,QtQuickTest,QtSql,QtSensorsQuick}

View file

@ -3,16 +3,16 @@ cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." || exit
rm -rf build
bash scripts/build.sh
cd build || exit 1
cd build/runtime-pyside6 || exit 1
rm -rf $(find . -name "*.pyc")
wine pyinstaller --add-data "LogarithmPlotter/logarithmplotter.svg;." \
wine_py pyinstaller --add-data "LogarithmPlotter/logarithmplotter.svg;." \
--add-data "LogarithmPlotter/qml;qml" \
--add-data "LogarithmPlotter/i18n;i18n" \
--noconsole \
LogarithmPlotter/logarithmplotter.py \
--icon=../assets/native/win/logarithmplotter.ico \
--icon=../../assets/native/win/logarithmplotter.ico \
-n logarithmplotter
# Copy Qt6ShaderTools, a required library for for Qt5Compat

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.."
cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/../build/runtime-pyside6/dist" || exit 1
VERSION=0.6.0
title="LogarithmPlotter v${VERSION} Setup"
@ -8,14 +8,13 @@ applicationName=LogarithmPlotter
backgroundPictureName=logarithmplotter-installer-background.png
source=Installer
cd build/dist
rm -rf Installer
mkdir -p Installer
mkdir -p Installer/.background
cp ../../assets/native/mac/install-bg.png "./Installer/.background/${backgroundPictureName}"
cp ../../../assets/native/mac/install-bg.png "./Installer/.background/${backgroundPictureName}"
cp -r LogarithmPlotter.app Installer/LogarithmPlotter.app
cp ../../LICENSE.md Installer/LICENSE.md
cp ../../README.md Installer/README.md
cp ../../../LICENSE.md Installer/LICENSE.md
cp ../../../README.md Installer/README.md
# Calculating folder size
duoutput=$(du -h Installer | tail -n1)

View file

@ -2,7 +2,7 @@
cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." || exit 1
# Moving files
cp assets/native/win/* README.md LICENSE.md build/dist/logarithmplotter/
cp assets/native/win/* README.md LICENSE.md build/runtime-pyside6/dist/logarithmplotter/
# Creating installer
cd build/dist/logarithmplotter/
cd build/runtime-pyside6/dist/logarithmplotter/ || exit 1
makensis installer.nsi

View file

@ -1,7 +1,11 @@
#!/bin/bash
cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.."
rm -rf build
bash scripts/build.sh
# Run python tests
cp -r runtime-pyside6/tests build/runtime-pyside6
PYTHONPATH="$PYTHONPATH:." pytest --cov=LogarithmPlotter --cov-report term-missing .
npm test