Skip to content

Commit

Permalink
Further PyInstaller tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
RoliSoft committed Oct 22, 2016
1 parent 3497652 commit 68ff460
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ hook_*.sh
!hook_*.sample.sh
*.tar.*
.idea
__pycache__/
__pycache__/
build/
dist/
upx.exe
7 changes: 4 additions & 3 deletions pyinstaller.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Run with: pyinstaller --noconfirm --clean pyinstaller.spec
#

import platform
from os import system

files = ['get-source', 'get-prebuilt', 'install', 'switch']
Expand All @@ -12,12 +13,12 @@ for file in files:
binaries = None

if file == 'install':
binaries = [('ntfsea_x86.dll', '.'),('ntfsea_x64.dll', '.')]
binaries = [('ntfsea_%s.dll' % ('x64' if platform.architecture()[0] == '64bit' else 'x86'), '.')]

a = Analysis([file + '.py'], pathex=['.'], binaries=binaries, datas=None, hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=None)
pyz = PYZ(a.pure, a.zipped_data, cipher=None)
exe = EXE(pyz, a.scripts, exclude_binaries=True, name=file, debug=False, strip=False, upx=True, icon=None, console=True)
col = COLLECT(exe, a.binaries, a.zipfiles, a.datas, strip=False, upx=True, icon=None, name=file)
exe = EXE(pyz, a.scripts, exclude_binaries=True, name=file, debug=False, strip=False, upx=False, icon=None, console=True)
col = COLLECT(exe, a.binaries, a.zipfiles, a.datas, strip=False, upx=False, icon=None, name=file)

for file in files:
if file == 'switch':
Expand Down

0 comments on commit 68ff460

Please sign in to comment.