-
Notifications
You must be signed in to change notification settings - Fork 208
/
.appveyor.yml
93 lines (74 loc) · 2.86 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
version: '{build}'
image: Visual Studio 2019
environment:
APPVEYOR: 1
_FF_VER: 3.3.4
matrix:
- JOB: "32"
_UNTR_DEST: untrunc_x32
_MINGW: C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32
_MINGW_TOOLCHAIN: i686-w64-mingw32
_ARCH: win32
_ARCH_UI: 386
- JOB: "64"
_UNTR_DEST: untrunc_x64
_MINGW: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64
_MINGW_TOOLCHAIN: x86_64-w64-mingw32
_ARCH: win64
_ARCH_UI: amd64
build: Script
install:
- choco install dependencywalker
- choco install zip
#- choco install yasm
#- choco install pkgconfiglite
init:
- git config --global core.autocrlf input
- set _BIN=%_MINGW%\bin
- set _INCLUDE=%_MINGW%\%_MINGW_TOOLCHAIN%\include
- set _LIB=%_MINGW%\%_MINGW_TOOLCHAIN%\lib
- set _BASH_PATH=C:\Program Files\Git\usr\bin
- set PATH=C:\MinGW\msys\1.0\bin;%PATH%
- set PATH=%_MINGW%\bin;%PATH%
build_script:
#- curl -L https://www.ffmpeg.org/releases/ffmpeg-%FFMPEG_VER%.tar.xz -o ffmpeg-%FFMPEG_VER%.tar.xz
#- tar xf ffmpeg-%FFMPEG_VER%.tar.xz
- curl -s -L https://web.archive.org/https://ffmpeg.zeranoe.com/builds/%_ARCH%/dev/ffmpeg-%_FF_VER%-%_ARCH%-dev.zip -o ffmpeg-dev.zip
- unzip -q ffmpeg-dev.zip
- xcopy /s /q ffmpeg-%_FF_VER%-%_ARCH%-dev\include %_INCLUDE%
- xcopy /s /q ffmpeg-%_FF_VER%-%_ARCH%-dev\lib %_LIB%
- curl -s -L https://web.archive.org/https://ffmpeg.zeranoe.com/builds/%_ARCH%/shared/ffmpeg-%_FF_VER%-%_ARCH%-shared.zip -o ffmpeg-shared.zip
- unzip -q ffmpeg-shared.zip
- xcopy /s /q ffmpeg-%_FF_VER%-%_ARCH%-shared\bin %_BIN%
- curl -s -L https://github.com/andlabs/libui/releases/download/alpha4.1/libui-alpha4.1-windows-%_ARCH_UI%-mingw-static.zip -o libui-static.zip
- unzip -d libui-static -q libui-static.zip
- xcopy /s /q libui-static\*.h %_INCLUDE%
- xcopy /s /q libui-static\*.a %_LIB%
#- g++ -o untrunc -O3 src/*.cpp -lavformat -lavcodec -lavutil -std=c++11
- mingw32-make IS_RELEASE=1
- mingw32-make untrunc-gui LIBUI_STATIC=1 IS_RELEASE=1
- depends /c /oc:deps.txt /f:1 untrunc-gui.exe
- set PATH=%_BASH_PATH%;%PATH%
- mkdir %_UNTR_DEST%
- bash -c 'while read -r line; do path=$(cut -d\" -f2 <<<$line); cp -v $path %_UNTR_DEST%; done <<<$(grep "mingw.*mingw.*bin" deps.txt); exit 0'
- strip untrunc.exe -o %_UNTR_DEST%\untrunc.exe
- strip untrunc-gui.exe -o %_UNTR_DEST%\untrunc-gui.exe
- zip -r %_UNTR_DEST%.zip %_UNTR_DEST%
artifacts:
- path: $(_UNTR_DEST).zip
deploy:
- provider: GitHub
tag: latest
release: Latest
draft: false
prerelease: true
force_update: true
artifact: $(_UNTR_DEST).zip
description: |
Automatic windows build by AppVeyor.
**Head:** $(APPVEYOR_REPO_COMMIT)
**Date:** $(APPVEYOR_REPO_COMMIT_TIMESTAMP)
auth_token:
secure: owJ4IKQTPyoLe68gzZKvWMvojgQTvqk+Z3Z5VdvAjU9taNCn33OR3cql42RTcv7m
on:
branch: master