-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathappveyor.yml
39 lines (38 loc) · 1.42 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
version: 1.0.{build}
branches:
only:
- master
skip_tags: true
skip_branch_with_pr: true
configuration: Release
only_commits:
message: /#build/
build:
verbosity: minimal
install:
- set path=c:\Program Files (x86)\WiX Toolset v3.11\bin;%path%
after_build:
- ps: |
$guid = [System.Guid]::NewGuid().ToString().ToUpper()
Write-Host "Generated GUID: $guid"
(Get-Content C:\projects\pixelarttool\Installer.wxs) -replace 'PUT-GUID-HERE', $guid | Set-Content C:\projects\pixelarttool\Installer.wxs
- cmd: 7z a PixelArtTool.zip %APPVEYOR_BUILD_FOLDER%\PixelArtTool\bin\Release\*.exe %APPVEYOR_BUILD_FOLDER%\PixelArtTool\bin\Release\*.exe.config
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- cmd: candle -nologo -out %APPVEYOR_BUILD_FOLDER%\PixelArtTool.wixobj C:\projects\pixelarttool\Installer.wxs
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- cmd: light -ext WixUIExtension -nologo -out %APPVEYOR_BUILD_FOLDER%\PixelArtTool.msi %APPVEYOR_BUILD_FOLDER%\PixelArtTool.wixobj
- cmd: copy %APPVEYOR_BUILD_FOLDER%\PixelArtTool.msi %APPVEYOR_BUILD_FOLDER%\PixelArtTool\bin\Release
artifacts:
- path: PixelArtTool.zip
name: deploy
- path: PixelArtTool\bin\Release\PixelArtTool.msi
name: msi
deploy:
- provider: GitHub
auth_token:
secure: owXuGIGNRJishGcvR2fMDTTW65dKLyw+W0/Zb8MVoKaVNeMogpT434k6ZlD/Mp8o
artifact: deploy
- provider: GitHub
auth_token:
secure: owXuGIGNRJishGcvR2fMDTTW65dKLyw+W0/Zb8MVoKaVNeMogpT434k6ZlD/Mp8o
artifact: msi