-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
55 lines (55 loc) · 1.92 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
os: Visual Studio 2015
environment:
VERSION: 4.7.1
NAME: 331 Haxe - PixiJS Project
DESC: A PixiJS v4.x project written in the Haxe language
INFO: https:\/\/github.com\/SlavaRa\/fdproject-haxe-pixijs
GITHUB_RELEASES: https:\/\/github.com\/SlavaRa\/fdproject-haxe-pixijs\/releases
APPMAN_TEMPLATE: appman.template
APPMAN_CONFIG_XML: appman.txt
LIB_PATH: C:\projects\haxelib-pixijs
version: $(VERSION).{build}
skip_tags: true
init:
- git clone -q --branch=master https://github.com/pixijs/pixi-haxe.git "%LIB_PATH%"
- cd "%LIB_PATH%"
- git checkout tags/"%VERSION%" -b "%VERSION%"
- cd %APPVEYOR_BUILD_FOLDER%
matrix:
fast_finish: true
before_build:
build: off
build_script:
- cp -r "%LIB_PATH%"/libs $(BaseDir)/Projects/"%NAME%"/bin/
- 7z a "%NAME%".zip $(BaseDir)
- mv "%NAME%".zip "%NAME%".fdz
- md5sum "%NAME%".fdz > checksum.md5
- sed -e "s/.//" checksum.md5 > checksum.tmp.md5 && mv checksum.tmp.md5 checksum.md5
- sed -e "s/ .*//" checksum.md5 > checksum.tmp.md5 && mv checksum.tmp.md5 checksum.md5
- set /p CHECKSUM=<checksum.md5
- rm checksum.md5
- mv %APPMAN_TEMPLATE% %APPMAN_CONFIG_XML%
- sed -i -e "s/_ID_/template/g" %APPMAN_CONFIG_XML%
- sed -i -e "s/_NAME_/%NAME%/g" %APPMAN_CONFIG_XML%
- sed -i -e "s/_DESC_/%DESC%/g" %APPMAN_CONFIG_XML%
- sed -i -e "s/_VERSION_/%VERSION%/g" %APPMAN_CONFIG_XML%
- sed -i -e "s/_BUILD_/%APPVEYOR_BUILD_NUMBER%/g" %APPMAN_CONFIG_XML%
- sed -i -e "s/_INFO_/%INFO%/g" %APPMAN_CONFIG_XML%
- sed -i -e "s/_URL_/%GITHUB_RELEASES%\/download\/%APPVEYOR_BUILD_VERSION%\/%NAME%.fdz/g" %APPMAN_CONFIG_XML%
- sed -i -e "s/_CHECKSUM_/%CHECKSUM%/g" %APPMAN_CONFIG_XML%
after_build:
artifacts:
- path: $(NAME).fdz
name: $(NAME)
type: zip
- path: $(APPMAN_CONFIG_XML)
name: appman
type: txt
deploy:
- provider: GitHub
release: $(appveyor_build_version)
auth_token:
secure: nhaT35pgnrdlkhYgZ6EDopRK5KoLDpgRXo4nRHLiPGzO3SRvhqNCaH2acnsCLEAf
artifact: /(.*\.fdz)|(appman.txt)/
on:
branch: master