Skip to content

Commit 6a3e727

Browse files
committed
Add spec file
1 parent d720e21 commit 6a3e727

File tree

5 files changed

+47
-3
lines changed

5 files changed

+47
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Package
1818
uses: JackMcKew/pyinstaller-action-windows@main
1919
with:
20-
path: src
20+
path: '.'
2121

2222
- name: Upload Artifacts
2323
uses: actions/upload-artifact@v2

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
From python:3
2-
COPY src/main.py entrypoint.sh ./
3-
RUN pip install -r src/requirements.txt
2+
COPY main.py entrypoint.sh ./
3+
RUN pip install -r requirements.txt
44
ENTRYPOINT [ "sh", "./entrypoint.sh" ]

src/main.py renamed to main.py

File renamed without changes.

main.spec

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
3+
4+
block_cipher = None
5+
6+
7+
a = Analysis(['main.py'],
8+
pathex=[],
9+
binaries=[],
10+
datas=[],
11+
hiddenimports=[],
12+
hookspath=[],
13+
hooksconfig={},
14+
runtime_hooks=[],
15+
excludes=[],
16+
win_no_prefer_redirects=False,
17+
win_private_assemblies=False,
18+
cipher=block_cipher,
19+
noarchive=False)
20+
pyz = PYZ(a.pure, a.zipped_data,
21+
cipher=block_cipher)
22+
23+
exe = EXE(pyz,
24+
a.scripts,
25+
[],
26+
exclude_binaries=True,
27+
name='main',
28+
debug=False,
29+
bootloader_ignore_signals=False,
30+
strip=False,
31+
upx=True,
32+
console=True,
33+
disable_windowed_traceback=False,
34+
target_arch=None,
35+
codesign_identity=None,
36+
entitlements_file=None )
37+
coll = COLLECT(exe,
38+
a.binaries,
39+
a.zipfiles,
40+
a.datas,
41+
strip=False,
42+
upx=True,
43+
upx_exclude=[],
44+
name='main')
File renamed without changes.

0 commit comments

Comments
 (0)