Renamed and reconfigured build tasks

This commit is contained in:
Profitroll 2023-01-28 10:03:19 +01:00
parent b186aea266
commit d2066e44cb
6 changed files with 22 additions and 14 deletions

View File

@ -1,6 +1,14 @@
#!/bin/bash
rm -rf dist/linux/app
rm -rf dist/linux/StardewSync
source buildenv/bin/activate
pyinstaller app.spec --noconfirm
source buildenv/bin/activate && pyi-makespec main.py \
-n "StardewSync" \
-p "buildenv" \
-i "assets/favicon.ico" \
--add-data "config.json:."
--add-data "assets:assets" \
--add-data "buildenv/Lib/site-packages/sv_ttk/sv.tcl:sv_ttk/" \
--add-data "buildenv/Lib/site-packages/sv_ttk/theme/*:sv_ttk/theme/" \
--noconsole \
&& pyinstaller "StardewSync.spec" --noconfirm

View File

@ -6,8 +6,8 @@ python3 -Bc "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('__pyca
rm -rf build/linux/*
rm -rf build/windows/*
rm -rf dist/linux/app
rm -rf dist/windows/app
rm -rf "dist/linux/StardewSync"
rm -rf "dist/windows/StardewSync"
rm -rf venv
rm -rf buildenv

View File

@ -1,7 +1,7 @@
#!/bin/bash
cd dist/linux/app
cd "dist/linux/StardewSync"
chmod +x StardewSync
chmod +x "StardewSync"
./StardewSync
"./StardewSync"

View File

@ -1,3 +1,3 @@
rmdir /S /Q dist\windows\app
rmdir /S /Q "dist\windows\StardewSync"
.\buildenv\scripts\activate && pyinstaller dist\windows\app.spec --noconfirm --distpath=dist\windows --workpath=build\windows
.\buildenv\scripts\activate && pyi-makespec main.py -n "StardewSync" -p "buildenv" -i "assets/favicon.ico" --add-data "config.json;." --add-data "assets;assets" --add-data "buildenv/Lib/site-packages/sv_ttk/sv.tcl;sv_ttk/" --add-data "buildenv/Lib/site-packages/sv_ttk/theme/*;sv_ttk/theme/" --noconsole && pyinstaller ".\StardewSync.spec" --noconfirm --distpath=dist\windows --workpath=build\windows

View File

@ -4,8 +4,8 @@ python -Bc "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('__pycac
rmdir /S /Q build\linux\*
rmdir /S /Q build\windows\*
rmdir /S /Q dist\linux\app
rmdir /S /Q dist\windows\app
rmdir /S /Q "dist\linux\StardewSync"
rmdir /S /Q "dist\windows\StardewSync"
rmdir /S /Q venv
rmdir /S /Q buildenv

View File

@ -1,2 +1,2 @@
cd dist\windows\app
.\StardewSync.exe
cd "dist\windows\StardewSync"
".\StardewSync.exe"