Skip to content
Snippets Groups Projects
Commit 18cfe73a authored by inso's avatar inso
Browse files

Try with .spec file

parent 8db8d1b5
Branches pyinstaller
No related tags found
No related merge requests found
...@@ -20,5 +20,5 @@ if %errorlevel% neq 0 exit /b 1s ...@@ -20,5 +20,5 @@ if %errorlevel% neq 0 exit /b 1s
python gen_translations.py python gen_translations.py
if %errorlevel% neq 0 exit /b 1 if %errorlevel% neq 0 exit /b 1
pyinstaller src/sakia/main.py --additional-hooks-dir hooks pyinstaller sakia.spec
if %errorlevel% neq 0 exit /b 1 if %errorlevel% neq 0 exit /b 1
...@@ -19,10 +19,9 @@ python gen_translations.py ...@@ -19,10 +19,9 @@ python gen_translations.py
if [ $TRAVIS_OS_NAME == "osx" ] if [ $TRAVIS_OS_NAME == "osx" ]
then then
pyi-makespec src/sakia/main.py --debug --additional-hooks-dir hooks pyinstaller sakia.spec
cat main.spec
elif [ $TRAVIS_OS_NAME == "linux" ] elif [ $TRAVIS_OS_NAME == "linux" ]
then then
pyinstaller src/sakia/main.py --debug --additional-hooks-dir hooks pyinstaller sakia.spec
fi fi
# -*- mode: python -*-
from PyInstaller.compat import is_darwin
block_cipher = None
a = Analysis(['src/sakia/main.py'],
pathex=['.'],
binaries=None,
datas=None,
hiddenimports=[],
hookspath=['hooks'],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
if is_darwin:
a.binaries = a.binaries - TOC([
('/usr/local/lib/libsodium.so', None, None),])
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='sakia',
debug=True,
strip=False,
upx=True,
console=True )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='sakia')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment