finish packaging script

This commit is contained in:
2023-06-04 15:10:48 +02:00
parent 69205a1d8a
commit 0ea2d1d375

View File

@@ -2,34 +2,56 @@
cd .. cd ..
# Make linux executable # Compile for Linux
pyinstaller imagevideoupscaler.spec pyinstaller imagevideoupscaler.spec
cp -r ./dist/imagevideoupscaler/* ./frontend/ cp -r ./dist/imagevideoupscaler/* ./frontend/
# wine python -m pyinstaller imagevideoupscaler.spec
# cp ./dist/imagevideoupscaler/* ./frontend/
# Copy python files
cp -r ./bin ./frontend/ cp -r ./bin ./frontend/
cp -r ./config ./frontend/ cp -r ./config ./frontend/
cp ./imagevideoupscaler-cli.py ./frontend/ cp ./imagevideoupscaler-cli.py ./frontend/
cp ./LICENSE ./frontend/ cp ./LICENSE ./frontend/
cp ./logo.png ./frontend/ cp ./logo.png ./frontend/
# package for all platforms (includes GUI & CLI)
# package for Linux (includes GUI & CLI)
cd frontend cd frontend
npm run electron:build -- --linux deb rpm --win nsis npm run electron:build -- --linux deb rpm
printf '\n\n==> Cleaning up\n\n' rm -rf ./libdynload
# rm -rf ./lib/bin rm ./image*
# rm -rf ./src/config rm ./lib*
# rm -rf ./src/libdynload rm ./ld*
# rm ./lib/image* rm ./base_library.zip
# rm ./lib/lib*
# rm ./lib/ld* cd ..
# rm ./lib/base_library.zip
# rm ./lib/imagevideoupscaler-cli.py rm -rf ./build
# rm ./lib/LICENSE rm -rf ./dist
printf '\n\n==> Finished Linux packaging, preparing Windows\n\n'
# Compile for Windows
wine python -m PyInstaller imagevideoupscaler.spec
cp -r ./dist/imagevideoupscaler/* ./frontend/
# Make windows executable # package for Windows (includes GUI & CLI)
# TODO: create compiler cd frontend
npm run electron:build -- --win nsis
rm -rf ./bin
rm -rf ./config
rm -rf ./lib-dynload
rm ./image*
rm ./_*
rm ./imagevideoupscaler-cli.py
rm ./LICENSE
cd ..
rm -rf ./build
rm -rf ./dist
printf '\n\n==> DONE\n\n'