Skip to content
Snippets Groups Projects
Commit 349ade60 authored by inso's avatar inso
Browse files

Configure pyinstaller build

Squashed commit of the following:

commit 18cfe73a
Author: Inso <insomniak.fr@gmail.com>
Date:   Sun Jan 31 17:14:35 2016 +0100

    Try with .spec file

commit 8db8d1b5
Author: Inso <insomniak.fr@gmail.com>
Date:   Sun Jan 31 16:01:45 2016 +0100

    Show macos spec file

commit 3c92873f
Author: Inso <insomniak.fr@gmail.com>
Date:   Sat Jan 23 19:06:47 2016 +0100

    Try with develop version

commit 2dfa08fc
Merge: d0f9a90a 37581eaf
Author: Inso <insomniak.fr@gmail.com>
Date:   Wed Jan 20 08:08:49 2016 +0100

    Merge branch 'dev' into pyinstaller

commit d0f9a90a
Author: Inso <insomniak.fr@gmail.com>
Date:   Tue Jan 19 07:57:21 2016 +0100

    Debug logs

commit e215db50
Author: Inso <insomniak.fr@gmail.com>
Date:   Fri Jan 15 20:48:14 2016 +0100

    Test pyinstaller as build system
parent 8c023046
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ build_script:
- echo %errorlevel%
artifacts:
- path: build
- path: dist
name: sakia-win$(PYTHON_ARCH)
# upload to releases
deploy:
......
......@@ -12,6 +12,7 @@ pyrcc5 -version
lrelease -version
pip install -r requirements.txt
pip install pyinstaller
python gen_resources.py
if %errorlevel% neq 0 exit /b 1s
......@@ -19,5 +20,5 @@ if %errorlevel% neq 0 exit /b 1s
python gen_translations.py
if %errorlevel% neq 0 exit /b 1
@REM python setup.py build
@REM if %errorlevel% neq 0 exit /b 1
pyinstaller sakia.spec
if %errorlevel% neq 0 exit /b 1
......@@ -2,8 +2,8 @@
if [ $TRAVIS_OS_NAME == "osx" ]
then
zip -r sakia-${TRAVIS_OS_NAME}.zip build/*.dmg
zip -r sakia-${TRAVIS_OS_NAME}.zip dist/*
elif [ $TRAVIS_OS_NAME == "linux" ]
then
zip -r sakia-${TRAVIS_OS_NAME}.zip build/exe*
zip -r sakia-${TRAVIS_OS_NAME}.zip dist/
fi
......@@ -6,7 +6,7 @@ eval "$(pyenv virtualenv-init -)"
cd $HOME/build/ucoin-io/sakia
pyenv activate sakia-env
pip install coveralls
pip install cx_Freeze
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
pip install -r requirements.txt
if [ $TRAVIS_OS_NAME == "linux" ]
then
......@@ -19,9 +19,9 @@ python gen_translations.py
if [ $TRAVIS_OS_NAME == "osx" ]
then
python setup.py bdist_dmg
pyinstaller sakia.spec
elif [ $TRAVIS_OS_NAME == "linux" ]
then
python setup.py build
pyinstaller sakia.spec
fi
#-----------------------------------------------------------------------------
# Copyright (c) 2005-2016, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
# This is needed to bundle draft3.json and draft4.json files that come
# with jsonschema module
from PyInstaller.utils.hooks import collect_data_files
datas = collect_data_files('lib2to3')
# -*- 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