-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathappveyor.yml
63 lines (63 loc) · 2.59 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
os: Visual Studio 2017
environment:
ID: quicknavigate
PLUGIN_VERSION: 3.0
PLUGIN_NAME: QuickNavigate
PLUGIN_DESC: Quickly navigate through Types, Fields, Projects and more
PLUGIN_PATH: C:\projects\FlashDevelop\External\Plugins\QuickNavigate
PLUGIN_DLL: C:\projects\FlashDevelop\FlashDevelop\Bin\Release\Plugins\QuickNavigate.dll
PLUGIN_INFO: http:\/\/www.flashdevelop.org\/community\/viewtopic.php?f=4&t=5961
PLUGIN_GITHUB_RELEASES: https:\/\/github.com\/SlavaRa\/fdplugin-quicknavigate\/releases
APPMAN_TEMPLATE: C:\projects\FlashDevelop\External\Plugins\QuickNavigate\appman.template
APPMAN_CONFIG_XML: appman.txt
install:
- set PATH=С:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin;%PATH%
version: $(PLUGIN_VERSION).{build}
skip_tags: true
init:
- git clone -q --branch=master https://github.com/fdorg/flashdevelop.git C:\projects\FlashDevelop
matrix:
fast_finish: true
before_build:
build: off
build_script:
- cd c:\
- mv %APPVEYOR_BUILD_FOLDER% %PLUGIN_PATH%
- nuget restore %PLUGIN_PATH%\%PLUGIN_NAME%.sln
- msbuild /p:Configuration=Release /p:Platform="Any CPU" /v:m %PLUGIN_PATH%\%PLUGIN_NAME%.sln
after_build:
- mkdir %APPVEYOR_BUILD_FOLDER%\$(BaseDir)\Plugins
- mv %PLUGIN_DLL% %APPVEYOR_BUILD_FOLDER%\$(BaseDir)\Plugins\%PLUGIN_NAME%.dll
- cd %APPVEYOR_BUILD_FOLDER%
- 7z a %PLUGIN_NAME%.zip $(BaseDir)\
- mv %PLUGIN_NAME%.zip %PLUGIN_NAME%.fdz
- rm -rf %APPVEYOR_BUILD_FOLDER%\$(BaseDir)
- md5sum %PLUGIN_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_/%PLUGIN_NAME%/g" %APPMAN_CONFIG_XML%
- sed -i -e "s/_DESC_/%PLUGIN_DESC%/g" %APPMAN_CONFIG_XML%
- sed -i -e "s/_VERSION_/%PLUGIN_VERSION%/g" %APPMAN_CONFIG_XML%
- sed -i -e "s/_BUILD_/%APPVEYOR_BUILD_NUMBER%/g" %APPMAN_CONFIG_XML%
- sed -i -e "s/_INFO_/%PLUGIN_INFO%/g" %APPMAN_CONFIG_XML%
- sed -i -e "s/_URL_/%PLUGIN_GITHUB_RELEASES%\/download\/%APPVEYOR_BUILD_VERSION%\/%PLUGIN_NAME%.fdz/g" %APPMAN_CONFIG_XML%
- sed -i -e "s/_CHECKSUM_/%CHECKSUM%/g" %APPMAN_CONFIG_XML%
artifacts:
- path: $(PLUGIN_NAME).fdz
name: $(PLUGIN_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