-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PyInstaller support for generating executables.
Typing 'make' on Linux will create Win32 and Linux executables. Building Win32 executables from Linux requires that Python, pygame, PGU, and PyInstaller all be installed in the current WINEPREFIX.
- Loading branch information
Darren
committed
Sep 20, 2015
1 parent
42e366a
commit d968dad
Showing
7 changed files
with
81 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.pyc | ||
res | ||
build | ||
dist | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
all: linux wine | ||
|
||
linux: | ||
pyinstaller --clean --noconfirm padpyght-bin.spec | ||
cd dist; tar czf padpyght-linux.tar.gz padpyght-bin | ||
|
||
wine: | ||
wine pyinstaller --clean --noconfirm padpyght-bin.spec | ||
cd dist; zip -r padpyght-win32.zip padpyght-bin | ||
|
||
clean: | ||
rm -rf build/ dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# -*- mode: python -*- | ||
a = Analysis(['start.py'], | ||
pathex=['/home/lifning/git/padpyght'], | ||
hiddenimports=[], | ||
hookspath=None, | ||
runtime_hooks=None) | ||
|
||
pgu_theme = Tree('/usr/share/pgu/themes/default', prefix='default') | ||
padpyght_skins = Tree('padpyght/skins', prefix='padpyght/skins') | ||
|
||
pyz = PYZ(a.pure) | ||
|
||
exe = EXE(pyz, | ||
a.scripts, | ||
exclude_binaries=True, | ||
name='padpyght.exe', | ||
debug=False, | ||
strip=None, | ||
upx=True, | ||
console=False, | ||
icon='gamepad.ico') | ||
|
||
coll = COLLECT(exe, | ||
a.binaries, | ||
a.zipfiles, | ||
a.datas, | ||
pgu_theme, | ||
padpyght_skins, | ||
strip=None, | ||
upx=True, | ||
name='padpyght-bin') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# convenience file for cases where running a module is inconvenient | ||
import padpyght.__main__ |