-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
49 lines (49 loc) · 1.67 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
os: Visual Studio 2015
environment:
ID: haxecreatejsproject
VERSION: 1.0
NAME: 332 Haxe - CreateJS Project
DESC: A CreateJS project written in the Haxe language
INFO: https:\/\/github.com\/SlavaRa\/haxe-createjs-fd-project
GITHUB_RELEASES: https:\/\/github.com\/SlavaRa\/haxe-createjs-fd-project\/releases
APPMAN_TEMPLATE: appman.template
APPMAN_CONFIG_XML: appman.txt
version: $(VERSION).{build}
skip_tags: true
matrix:
fast_finish: true
before_build:
build: off
build_script:
- 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_/%ID%/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: HK9ej9WVysHQHeTEQ/QTOJmh08xCtDQyDBy5uXWrWV/xROMNkQrTeQv1j2tYOxVw
artifact: /(.*\.fdz)|(appman.txt)/
on:
branch: master