add independent packaging scripts
This commit is contained in:
@@ -4,15 +4,15 @@ cd ..
|
||||
|
||||
# Compile for Linux
|
||||
pyinstaller imagevideoupscaler.spec
|
||||
cp -r ./dist/imagevideoupscaler/* ./frontend/
|
||||
cp -rv ./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/
|
||||
cp -rv ./bin ./frontend/
|
||||
cp -rv ./config ./frontend/
|
||||
cp -v ./imagevideoupscaler-cli.py ./frontend/
|
||||
cp -v ./LICENSE ./frontend/
|
||||
cp -v ./logo.png ./frontend/
|
||||
|
||||
|
||||
# package for Linux (includes GUI & CLI)
|
||||
@@ -34,8 +34,8 @@ printf '\n\n==> Finished Linux packaging, preparing Windows\n\n'
|
||||
|
||||
# Compile for Windows
|
||||
wine python -m PyInstaller imagevideoupscaler.spec
|
||||
cp -r ./dist/imagevideoupscaler/* ./frontend/
|
||||
|
||||
cp -rv ./dist/imagevideoupscaler/* ./frontend/
|
||||
cp -v ./imagevideoupscaler-cli.py ./frontend/
|
||||
|
||||
# package for Windows (includes GUI & CLI)
|
||||
cd frontend
|
||||
@@ -46,7 +46,11 @@ rm -rf ./config
|
||||
rm -rf ./lib-dynload
|
||||
rm ./image*
|
||||
rm ./_*
|
||||
rm ./imagevideoupscaler-cli.py
|
||||
rm ./py*
|
||||
rm ./lib*
|
||||
rm ./base_library.zip
|
||||
rm ./*.pyd
|
||||
rm ./*.dll
|
||||
rm ./LICENSE
|
||||
|
||||
cd ..
|
||||
|
||||
37
packaging/packageLinux.sh
Executable file
37
packaging/packageLinux.sh
Executable 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'
|
||||
37
packaging/packageWindows.sh
Executable file
37
packaging/packageWindows.sh
Executable file
@@ -0,0 +1,37 @@
|
||||
#! /bin/bash
|
||||
|
||||
cd ..
|
||||
|
||||
# Compile for Windows
|
||||
wine python -m PyInstaller imagevideoupscaler.spec
|
||||
cp -r ./dist/imagevideoupscaler/* ./frontend/
|
||||
|
||||
# Copy python files
|
||||
cp -rv ./bin ./frontend/
|
||||
cp -rv ./config ./frontend/
|
||||
cp -v ./imagevideoupscaler-cli.py ./frontend/
|
||||
cp -v ./LICENSE ./frontend/
|
||||
cp -v ./logo.png ./frontend/
|
||||
|
||||
# package for Windows (includes GUI & CLI)
|
||||
cd frontend
|
||||
npm run electron:build -- --win nsis
|
||||
|
||||
rm -rf ./bin
|
||||
rm -rf ./config
|
||||
rm -rf ./lib-dynload
|
||||
rm ./image*
|
||||
rm ./_*
|
||||
rm ./py*
|
||||
rm ./lib*
|
||||
rm ./base_library.zip
|
||||
rm ./*.pyd
|
||||
rm ./*.dll
|
||||
rm ./LICENSE
|
||||
|
||||
cd ..
|
||||
|
||||
rm -rf ./build
|
||||
rm -rf ./dist
|
||||
|
||||
printf '\n\n==> DONE\n\n'
|
||||
Reference in New Issue
Block a user