Build and deploy installer on tagged commits

This commit is contained in:
Oliver Hamlet
2016-07-25 17:29:11 +01:00
parent 9b8ae1d538
commit 5021bc1763
2 changed files with 26 additions and 1 deletions
+5 -1
View File
@@ -9,6 +9,7 @@ cache:
- bower_components
- C:\projects\boost_1_61_0\boost
- C:\projects\boost_1_61_0\stage\lib
- C:\Program Files (x86)\Inno Setup 5
install:
- npm install
@@ -37,6 +38,7 @@ after_test:
# AppVeyor checks out a specific commit, but that means the archive script
# can't tell which branch it's on, so rename the 7z archives.
- ps: $env:GIT_DESCRIBE = ((git describe --tags --long) | Out-String) -replace "`n|`r", ""
- ps: scripts\appveyor\build_installer.ps1
artifacts:
- path: build\loot_$(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH).7z
@@ -45,6 +47,8 @@ artifacts:
name: API
- path: build\metadata-validator_$(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH).7z
name: metadata-validator
- path: build\LOOT Installer.exe
name: installer
deploy:
- provider: BinTray
@@ -89,7 +93,7 @@ deploy:
*Note: The `metadata-validator.tar.xz` file below contains a Linux binary. It won't work on Windows computers.*
auth_token:
secure: SecSfg5+S0OUzmC+kKixshqNDrRDj2uRYx58AAiZ1IDYTvQbPGRqEYCWZ9jbPd3h
artifact: LOOT,LOOT_API,metadata-validator
artifact: LOOT,LOOT_API,metadata-validator,installer
draft: true
on:
branch: master
+21
View File
@@ -0,0 +1,21 @@
$innoInstallPath = 'C:\Program Files (x86)\Inno Setup 5'
if ($env:APPVEYOR_REPO_TAG) {
if (!(Test-Path $innoInstallPath)) {
choco install -y InnoSetup
# Also install the unofficial Korean and Simplified Chinese translation
# files for Inno Setup.
$languagesPath = $innoInstallPath + '\Languages'
$koreanUrl = 'https://raw.github.com/jrsoftware/issrc/master/Files/Languages/Unofficial/Korean.isl'
$chineseUrl = 'https://raw.github.com/jrsoftware/issrc/master/Files/Languages/Unofficial/ChineseSimplified.isl'
(New-Object System.Net.WebClient).DownloadFile($koreanUrl, $languagesPath + '\Korean.isl')
(New-Object System.Net.WebClient).DownloadFile($chineseUrl, $languagesPath + '\ChineseSimplified.isl')
}
$env:PATH += ';' + $innoInstallPath
iscc scripts\installer.iss
}