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

Test pyinstaller as build system

parent 964d5cd8
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 src/sakia/main.py --additional-hooks-dir hooks
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 pyinstaller
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 src/sakia/main.py --additional-hooks-dir hooks
elif [ $TRAVIS_OS_NAME == "linux" ]
then
python setup.py build
pyinstaller src/sakia/main.py --additional-hooks-dir hooks
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')
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