Skip to content

Commit

Permalink
Add build spec
Browse files Browse the repository at this point in the history
  • Loading branch information
zeerayne committed Mar 24, 2024
1 parent 03c9a40 commit 72de148
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
uses: actions/checkout@v4
- name: Package Application
uses: JackMcKew/pyinstaller-action-windows@main
with:
path: src
- name: Check file existence
uses: andstor/file-existence-action@v3
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ MANIFEST
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
Expand Down
20 changes: 20 additions & 0 deletions src/build.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
a = Analysis(['main.py'],
hiddenimports=[],
hookspath=None,
runtime_hooks=None,
)
pyz = PYZ(a.pure)

options = [('u', None, 'OPTION')]

exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
options,
name='1cv8_postgres_helper',
debug=False,
strip=None,
upx=True,
)

0 comments on commit 72de148

Please sign in to comment.