Skip to content

Commit

Permalink
pyinstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
HobbitDur committed Aug 24, 2024
1 parent f8ecfd4 commit 0b7ff9c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
**/__pycache__/
**/.idea/
**/.idea/
**/release/**
3 changes: 1 addition & 2 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Resources/icon.ico
Binary file not shown.
10 changes: 10 additions & 0 deletions create_exe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.venv/Scripts/pyinstaller.exe -n TonberryShop -F --specpath release/build --distpath release --workpath release/build --onefile --noconsole --icon=../../Resources/icon.ico main.py;
mkdir -p release/TonberryShop-x.x;
cp -R Resources release/TonberryShop-x.x/;
cp release/*.exe release/TonberryShop-x.x/;
cd release/TonberryShop-x.x;
"C:\Program Files\7-Zip\7z.exe" a -tzip ../TonberryShop-x.x.zip .;
cd ..;
rm -r TonberryShop-x.x;
rm -r build;
rm *.exe;

0 comments on commit 0b7ff9c

Please sign in to comment.