pynsist as app builder

This commit is contained in:
Wiktor Mazur
2020-06-06 16:43:57 +02:00
parent fabd115957
commit f131f79a80
3 changed files with 43 additions and 28 deletions
+10 -27
View File
@@ -1,21 +1,11 @@
image: Visual Studio 2017
environment:
TWINE_USERNAME: mazurwiktor
# Note: TWINE_PASSWORD is set in Appveyor settings.
matrix:
# Stable 64-bit MSVC
- channel: stable
target: x86_64-pc-windows-msvc
PYTHON: "C:\\Python36-x64"
PYTHON_SCRIPTS: "C:\\Python36-x64\\Scripts"
PYTHON_LIB: "C:\\Python36-x64\\libs\\python36.lib"
# Stable 32-bit MSVC
- channel: stable
target: i686-pc-windows-msvc
PYTHON: "C:\\Python36"
PYTHON_SCRIPTS: "C:\\Python36\\Scripts"
PYTHON_LIB: "C:\\Python36\\libs\\python36.lib"
# Stable 64-bit MSVC
- channel: stable
target: x86_64-pc-windows-msvc
PYTHON: "C:\\Python36-x64"
PYTHON_SCRIPTS: "C:\\Python36-x64\\Scripts"
PYTHON_LIB: "C:\\Python36-x64\\libs\\python36.lib"
# From https://github.com/starkat99/appveyor-rust/blob/master/appveyor.yml
install:
@@ -23,27 +13,20 @@ install:
- SET PATH=%PYTHON_SCRIPTS%;%path%
- python --version
- python -m pip install --upgrade pip
- python -m pip install --upgrade virtualenv
- choco install nsis
build_script:
- python -m venv env
- ps: .\env\Scripts\activate.ps1
- python -m pip install dataclasses
- python -m pip install -v -r requirements.txt
- pyinstaller -F -w -i assets\albion-stats-icon.ico --add-data src\assets;src\assets --add-data src\scripts;src\scripts albion-online-stats.py
- pyinstaller -F -i assets\albion-stats-icon.ico --add-data src\assets;src\assets --add-data src\scripts;src\scripts -n albion-online-stats-cmd albion-online-stats.py
- ps: deactivate
- python -m pip install pynsist
- pynsist installer.cfg
test_script:
- python -m pip install tox
- python -m tox -e ut
after_build:
- ps: mv dist\albion-online-stats.exe albion-online-stats-$Env:target.exe
- ps: mv dist\albion-online-stats-cmd.exe albion-online-stats-$Env:target-cmd.exe
- ps: ls
artifacts:
path: albion-online-stats*.exe
path: build\nsis\Albion_Online_Stats*.exe
name: binary
deploy:
provider: GitHub