add independent packaging scripts

This commit is contained in:
2023-06-04 15:43:21 +02:00
parent 0ea2d1d375
commit ab6d07d4bd
6 changed files with 103 additions and 18 deletions

37
packaging/packageLinux.sh Executable file
View File

@@ -0,0 +1,37 @@
#! /bin/bash
cd ..
# Compile for Linux
pyinstaller imagevideoupscaler.spec
cp -r ./dist/imagevideoupscaler/* ./frontend/
# Copy python files
cp -r ./bin ./frontend/
cp -r ./config ./frontend/
cp ./imagevideoupscaler-cli.py ./frontend/
cp ./LICENSE ./frontend/
cp ./logo.png ./frontend/
# package for Linux (includes GUI & CLI)
cd frontend
npm run electron:build -- --linux deb rpm
rm -rf ./bin
rm -rf ./config
rm -rf ./libdynload
rm ./image*
rm ./lib*
rm ./ld*
rm ./base_library.zip
rm ./imagevideoupscaler-cli.py
rm ./LICENSE
cd ..
rm -rf ./build
rm -rf ./dist
printf '\n\n==> DONE\n\n'