42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
image: Visual Studio 2019
|
|
platform: x64
|
|
version: 0.1.{build}
|
|
branches:
|
|
only:
|
|
- pyqt_gui
|
|
|
|
environment:
|
|
VCVARS: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat
|
|
VCVARSARG: x64
|
|
MINICONDA: C:\Miniconda3-x64
|
|
INNO: C:\Program Files (x86)\Inno Setup 5
|
|
|
|
build: off
|
|
|
|
artifacts:
|
|
- path: exe\__main__.dist\
|
|
name: ED_LRR
|
|
type: zip
|
|
|
|
- path: installer\Output\*.exe
|
|
name: Setup
|
|
type: file
|
|
|
|
install:
|
|
- set PATH=%MINICONDA%\\Library\\bin;%MINICONDA%\\Scripts;%USERPROFILE%\\.cargo\\bin;%PATH%
|
|
- set PATH=%INNO%;%PATH%
|
|
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
|
- rustup-init -yv --default-toolchain nightly --default-host x86_64-pc-windows-msvc
|
|
- if defined VCVARS call "%VCVARS%" %VCVARSARG%
|
|
- conda activate
|
|
- conda install pycrypto nuitka
|
|
- pip intall PyQt5 setuptools_rust
|
|
|
|
test_script:
|
|
- python build_gui.py
|
|
- pip install .[dev]
|
|
- python -m nuitka --plugin-enable=multiprocessing --remove-output --plugin-enable=qt-plugins --standalone --assume-yes-for-downloads --follow-imports --output-dir=exe ed_lrr_gui\__main__.py
|
|
- rename exe\__main__.dist\__main__.exe ED_LRR.exe
|
|
- cd installer
|
|
- iscc /QP ED_LRR.iss
|
|
|