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

Test pyinstaller as build system

parent 964d5cd8
Branches
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ build_script: ...@@ -57,7 +57,7 @@ build_script:
- echo %errorlevel% - echo %errorlevel%
artifacts: artifacts:
- path: build - path: dist
name: sakia-win$(PYTHON_ARCH) name: sakia-win$(PYTHON_ARCH)
# upload to releases # upload to releases
deploy: deploy:
......
...@@ -12,6 +12,7 @@ pyrcc5 -version ...@@ -12,6 +12,7 @@ pyrcc5 -version
lrelease -version lrelease -version
pip install -r requirements.txt pip install -r requirements.txt
pip install pyinstaller
python gen_resources.py python gen_resources.py
if %errorlevel% neq 0 exit /b 1s if %errorlevel% neq 0 exit /b 1s
...@@ -19,5 +20,5 @@ if %errorlevel% neq 0 exit /b 1s ...@@ -19,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
@REM python setup.py build pyinstaller src/sakia/main.py --additional-hooks-dir hooks
@REM if %errorlevel% neq 0 exit /b 1 if %errorlevel% neq 0 exit /b 1
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
if [ $TRAVIS_OS_NAME == "osx" ] if [ $TRAVIS_OS_NAME == "osx" ]
then then
zip -r sakia-${TRAVIS_OS_NAME}.zip build/*.dmg zip -r sakia-${TRAVIS_OS_NAME}.zip dist/*
elif [ $TRAVIS_OS_NAME == "linux" ] elif [ $TRAVIS_OS_NAME == "linux" ]
then then
zip -r sakia-${TRAVIS_OS_NAME}.zip build/exe* zip -r sakia-${TRAVIS_OS_NAME}.zip dist/
fi fi
...@@ -6,7 +6,7 @@ eval "$(pyenv virtualenv-init -)" ...@@ -6,7 +6,7 @@ eval "$(pyenv virtualenv-init -)"
cd $HOME/build/ucoin-io/sakia cd $HOME/build/ucoin-io/sakia
pyenv activate sakia-env pyenv activate sakia-env
pip install coveralls pip install coveralls
pip install cx_Freeze pip install pyinstaller
pip install -r requirements.txt pip install -r requirements.txt
if [ $TRAVIS_OS_NAME == "linux" ] if [ $TRAVIS_OS_NAME == "linux" ]
then then
...@@ -19,9 +19,9 @@ python gen_translations.py ...@@ -19,9 +19,9 @@ python gen_translations.py
if [ $TRAVIS_OS_NAME == "osx" ] if [ $TRAVIS_OS_NAME == "osx" ]
then then
python setup.py bdist_dmg pyinstaller src/sakia/main.py --additional-hooks-dir hooks
elif [ $TRAVIS_OS_NAME == "linux" ] elif [ $TRAVIS_OS_NAME == "linux" ]
then then
python setup.py build pyinstaller src/sakia/main.py --additional-hooks-dir hooks
fi 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.
Please register or to comment