Skip to content

Commit

Permalink
Add PyInstaller script
Browse files Browse the repository at this point in the history
  • Loading branch information
Blokkendoos committed Jun 5, 2020
1 parent 1d221f2 commit 1c4226b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ tmp/
# py2app
build/
dist/

gettext/

19 changes: 19 additions & 0 deletions build_onefile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

# clean up
rm -rf build dist

# build python executable
pyinstaller-3.7 \
--onefile \
--hidden-import pkg_resources.py2_warn \
--add-data "application/*.glade:." \
--add-data "application/style.css:." \
--add-data "application/aacircuit_logo.bmp:." \
--add-data "application/buttons/*.*:./buttons/" \
--add-data "application/bitmaps/*.bmp:./bitmaps/" \
--add-data "application/components/*.json:./components/" \
--add-data "application/locale/de/LC_MESSAGES/*:./locale/de/LC_MESSAGES" \
--add-data "application/locale/nl/LC_MESSAGES/*:./locale/nl/LC_MESSAGES" \
aacircuit.py

0 comments on commit 1c4226b

Please sign in to comment.