forked from ozmartian/vidcutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
111 lines (98 loc) · 5.11 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: 6.0.0.{build}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- master
skip_non_tags: false
image: Visual Studio 2015
shallow_clone: true
clone_depth: 1
clone_folder: C:\projects\vidcutter
environment:
# APPVEYOR_RDP_PASSWORD:
# secure: fyQ/PdSH8g/HZI5F6xy5Cg==
PFX_PASSWORD:
secure: dU7R+yCfZACwkvslBf988A==
APPVEYOR_SKIP_FINALIZE_ON_EXIT: false
PYTHONUNBUFFERED: 1
PYTHONHOME: C:\Python36-x64
# init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
# ---------------------------------------- 64-bit build ----------------------------------------
- set PATH=%PYTHONHOME%;%PYTHONHOME%\scripts;%PYTHONHOME%\tools\scripts;%PATH%
- cd C:\projects\vidcutter
# Installing latest pip + setuptools + dependencies
- C:\Python36-x64\python.exe -m pip install -U pip setuptools
- C:\Python36-x64\python.exe -m pip install PyOpenGL PyQt5==5.10.1 PyInstaller xmltodict simplejson
# Setting up libmpv build subfolders...
- mkdir "_build\pyinstaller\temp"
- mkdir "_build\pyinstaller\libmpv"
- mkdir "_build\pyinstaller\libmpv\64"
# Setup build environment for MSVC++
- call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
# - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
# Build Cython/C extension for libmpv binding...
- C:\Python36-x64\python.exe setup.py build_ext -i
# Retrieve URL for latest available version of libmpv
- for /f "delims=" %%a in ('C:\Python36-x64\python.exe helpers.py get_latest_win32_libmpv_64') do @set LIBMPV=%%a
# Downloading latest libmpv 64-bit build...
- curl -L -fsS -o _build\pyinstaller\temp\mpv-dev.7z https://downloads.sourceforge.net/project/mpv-player-windows%LIBMPV%
# - curl -L -fsS -o _build\pyinstaller\temp\mpv-dev.7z https://mpv.srsfckn.biz/mpv-dev-20170718.7z
# - curl -L -fsS -o _build\pyinstaller\temp\mpv-dev.7z https://10gbps-io.dl.sourceforge.net/project/mpv-player-windows/libmpv/mpv-dev-x86_64-20180227-git-a4c436b.7z
- cd _build/pyinstaller/temp
- 7z e mpv-dev.7z mpv-1.dll -o"..\libmpv\64\"
# Copy DLLs from Windows for ANGLE Direct3D engine support..
# - copy "C:\Windows\System32\d3dcompiler_43.dll" "..\libmpv\64\"
# - copy "C:\Windows\System32\d3dcompiler_47.dll" "..\libmpv\64\"
# Freezing w/ PyInstaller
- cd ..
# - for /f "delims=" %%a in ('C:\Python36-x64\python.exe version.py') do @set APPVER=%%a
- call build.pyinstaller.win.signed.bat 64 %PFX_PASSWORD%
- cd ..\InnoSetup\Output
- appveyor PushArtifact VidCutter-6.0.0-setup-win64.exe
# ---------------------------------------- 32-bit build ----------------------------------------
- cd ..\..\..
- set PYTHONHOME=C:\Python36
- set PATH=%PYTHONHOME%;%PYTHONHOME%\scripts;%PYTHONHOME%\tools\scripts;%PATH%
# Installing latest pip + setuptools + dependencies
- C:\Python36\python.exe -m pip install -U pip setuptools
- C:\Python36\python.exe -m pip install PyOpenGL PyQt5==5.10.1 PyInstaller xmltodict simplejson
# # Installing latest git checkout of PyInstaller...
# - C:\Python36\python.exe -m pip install git+https://github.com/pyinstaller/pyinstaller.git@develop
# Setting up libmpv build subfolders...
# - mkdir "_build\pyinstaller\temp"
# - mkdir "_build\pyinstaller\libmpv"
- mkdir "_build\pyinstaller\libmpv\32"
- del /q "_build\pyinstaller\temp\*.*"
# Setup build environment for MSVC++
- call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
# - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
# Build Cython/C extension for libmpv binding...
- C:\Python36\python.exe setup.py build_ext -i
# Retrieve URL for latest available version of libmpv
- for /f "delims=" %%a in ('C:\Python36\python.exe helpers.py get_latest_win32_libmpv_32') do @set LIBMPV=%%a
# Downloading latest libmpv 32-bit build...
- curl -L -fsS -o _build\pyinstaller\temp\mpv-dev.7z https://downloads.sourceforge.net/project/mpv-player-windows%LIBMPV%
# - curl -L -fsS -o _build\pyinstaller\temp\mpv-dev.7z https://mpv.srsfckn.biz/mpv-dev-20170718.7z
# - curl -L -fsS -o _build\pyinstaller\temp\mpv-dev.7z https://ufpr.dl.sourceforge.net/project/mpv-player-windows/libmpv/mpv-dev-i686-20180227-git-a4c436b.7z
- cd _build/pyinstaller/temp
- 7z e mpv-dev.7z mpv-1.dll -o"..\libmpv\32\"
# Copy DLLs from Windows for ANGLE Direct3D engine support..
# - copy "C:\Windows\SysWOW64\d3dcompiler_43.dll" "..\libmpv\32\"
# - copy "C:\Windows\SysWOW64\d3dcompiler_47.dll" "..\libmpv\32\"
# Freezing w/ PyInstaller
- cd ..
# - for /f "delims=" %%a in ('C:\Python36\python.exe version.py') do @set APPVER=%%a
- call build.pyinstaller.win.signed.bat 32 %PFX_PASSWORD%
- cd ..\InnoSetup\Output
- appveyor PushArtifact VidCutter-6.0.0-setup-win32.exe
# completion
# SUCCESS
- appveyor exit
nuget:
disable_publish_on_pr: true
test: off