Skip to content

Commit 5eb67f3

Browse files
committed
Added the spec file for easy rebuilding
1 parent 19dc43f commit 5eb67f3

File tree

3 files changed

+45
-3
lines changed

3 files changed

+45
-3
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ MANIFEST
3030
# Usually these files are written by a python script from a template
3131
# before PyInstaller builds the exe, so as to inject date/other infos into it.
3232
*.manifest
33-
*.spec
33+
3434

3535
# Installer logs
3636
pip-log.txt
@@ -136,5 +136,3 @@ dmypy.json
136136

137137
# Cython debug symbols
138138
cython_debug/
139-
140-
easyjava.spec

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ Build:
1919
Use:
2020
pyinstaller easyjava.spec
2121

22+
Tip: For compiling with Gooey:
23+
https://github.com/chriskiehl/Gooey/wiki/step-by-step-guide:-python3-gooey-and-pyinstaller
24+

easyjava.spec

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
3+
block_cipher = None
4+
5+
import gooey
6+
gooey_root = os.path.dirname(gooey.__file__)
7+
gooey_languages = Tree(os.path.join(gooey_root, 'languages'), prefix = 'gooey/languages')
8+
gooey_images = Tree(os.path.join(gooey_root, 'images'), prefix = 'gooey/images')
9+
10+
11+
a = Analysis(['easyjava.py'],
12+
pathex=['C:\\Users\\Joe\\Documents\\Projects\\Python\\easy-java'],
13+
binaries=[],
14+
datas=[('templates/*.*', './templates'), ('words.txt', '.')],
15+
hiddenimports=['pkg_resources.py2_warn'],
16+
hookspath=[],
17+
runtime_hooks=[],
18+
excludes=[],
19+
win_no_prefer_redirects=False,
20+
win_private_assemblies=False,
21+
cipher=block_cipher,
22+
noarchive=False)
23+
pyz = PYZ(a.pure, a.zipped_data,
24+
cipher=block_cipher)
25+
exe = EXE(pyz,
26+
a.scripts,
27+
a.binaries,
28+
a.zipfiles,
29+
a.datas,
30+
[('u', None, 'OPTION')],
31+
gooey_languages,
32+
gooey_images,
33+
name='easyjava',
34+
debug=False,
35+
bootloader_ignore_signals=False,
36+
strip=False,
37+
upx=True,
38+
upx_exclude=[],
39+
runtime_tmpdir=None,
40+
console=False,
41+
icon=os.path.join(gooey_root, 'images', 'program_icon.ico') )

0 commit comments

Comments
 (0)