pynsist as app builder
This commit is contained in:
+10
-27
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user