forked from jendrikseipp/rednotebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
76 lines (63 loc) · 2.32 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
clone_folder: C:\repo
matrix:
fast_finish: true
environment:
global:
DOWNLOAD_DIR: _download_cache
APPVEYOR_SAVE_CACHE_ON_ERROR: true
PATH: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Git\cmd;C:\Tools\curl\bin;C:\msys64\usr\bin;C:\Program Files (x86)\Inno Setup 5
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VS_VER: "14"
PLATFORM: "x86"
PYTHON: C:\Python36\python.exe
build_script:
- "%PYTHON% --version"
# Print PATH variable.
- set PATH
- for /f %%i in ('%PYTHON% -c "from rednotebook import info; print(info.version)"') do set VERSION=%%i
- set VERSION
- cd win
# Install Python 3.4.4 and GTK 3.18 stack.
- curl -Lo python34.tar.gz https://www.dropbox.com/s/3wu38oluushvqan/python34.tar.gz?dl=1
- tar -xzf python34.tar.gz
# C:\Python34 already contains a Python installation.
- move Python34 C:\Python344
- set PATH=%PATH%;C:\Python344\Lib\site-packages\gnome
- set PYTHON=C:\Python344\python.exe
- "%PYTHON% --version"
# Update some of the dependencies in the tarball.
# PyInstaller 3.3.1 and 3.4 both produce executables flagged by Windows.
# pip 19.1 will be the last pip version supporting Python 3.4.
- "%PYTHON% -m pip install -U pip==19.0.3 wheel==0.33.1"
- "%PYTHON% -m pip install -r requirements.txt"
# Sanity check with dummy app.
- "%PYTHON% sampleapp.py"
- "%PYTHON% -m PyInstaller --debug --additional-hooks-dir=. sampleapp.py"
# Create executable.
- "%PYTHON% -m PyInstaller --workpath=C:/build --distpath=C:/ rednotebook.spec"
- "%PYTHON% build-translations.py C:/dist/share/locale"
- tar -czf rednotebook.tar.gz -C /c/ dist
# Build installer.
- iscc /Qp /dREDNOTEBOOK_VERSION="%VERSION%" rednotebook.iss
# Artifacts have to live under "clone_folder".
- move rednotebook.tar.gz C:\repo\rednotebook-"%VERSION%".tar.gz
- move C:\rednotebook.exe C:\repo\rednotebook-"%VERSION%".exe
artifacts:
- path: rednotebook-*.tar.gz
name: Standalone Windows executable
- path: rednotebook-*.exe
name: Windows installer
deploy:
description: ''
provider: GitHub
auth_token:
secure: "UT6jPkpy8U/qTN+8LF7hPsJ/cHWlt+7a+wO2Ou2iKYImeBxAV4OY6Gt3Y0v5/ZuL"
artifact: /rednotebook-.*\.exe/
draft: false
prerelease: false
on:
appveyor_repo_tag: true
cache:
- '%DOWNLOAD_DIR%'
test: off