-
Notifications
You must be signed in to change notification settings - Fork 114
/
appveyor.yml
58 lines (56 loc) · 3.86 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
version: 1.0.{build}
branches:
only:
- master
- develop
- /^\d+\.?\d+\.?\d*$/
skip_tags: false
image: Visual Studio 2019
platform: x64
clone_depth: 1
environment:
encrypted_deploy_key:
secure: ++30FOn93CZGPrm6JMlLQe2A5CDBmwsL4nDAlUlbgLGhDhMCfSe8oz5uvLFdsW2M8+plXilRBWvo/bdfITBHvxOtbHN7kNKRNuUY2z2z4lLy+1mYK5YG33DDkrgMokq3n5keLCh4Z9oTEBQkz+S4GQ==
encrypted_codesign_key:
secure: QF5dcXGfGUFB2oJEj1j3FnUZT7vjTO/rTns8dV0caCvQLK/rNFWwWoiYkSnIRusskUx2DvxVjEgyIDwWQBSkVBXwst+iTU4nMefG+y/ikoc=
encrypted_codesign_salt:
secure: N4AYGRmjlNzsf0ladofx1nA8NaO6JT+4tjMpLKEQmTtZVMprNI3Zz9/WF4Gz3RLRhOwi7g9PmhWXOPQBtxdhrg==
encrypted_codesign_pwd:
secure: BmTxIijgP7+E9ebjV7/Fnfj50FMckbTFVl5KBGOX2sY=
artifact_32_bit: Projects\VisualStudio2019\Win32\Release32\App\Helio.exe
artifact_64_bit: Projects\VisualStudio2019\x64\Release64\App\Helio.exe
artifact_installer: Projects\Deployment\Windows\installer.exe
deploy_host: [email protected]
deploy_path: /opt/musehackers/files/ci
install:
- SET PATH=%PATH%;C:\Program Files (x86)\Windows Kits\10\bin\x64\
- cmd: git submodule update --init --depth 1 --recursive 2> $null
- ps: >-
Push-Location ($PSScriptRoot + "\projects\helio-sequencer\ThirdParty\ASIO\")
& ".\get_asio_sdk.ps1"
Pop-Location
- ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'))
- cmd: appveyor-tools\secure-file -decrypt Projects\Deployment\AppVeyor\deploy-rsa.enc -secret %encrypted_deploy_key% -out deploy-rsa
- cmd: appveyor-tools\secure-file -decrypt Projects\Deployment\AppVeyor\code-sign.enc -secret %encrypted_codesign_key% -salt %encrypted_codesign_salt% -out sign.pfx
cache: ThirdParty\ASIO
# A hack
build: off
test_script:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 && ECHO "x64 building..." && msbuild Projects\VisualStudio2019\Helio.sln /t:Build /p:Configuration=Release64;Platform=x64
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86 && ECHO "x32 building..." && msbuild Projects\VisualStudio2019\Helio.sln /t:Build /p:Configuration=Release32;Platform=Win32
- if /I "%APPVEYOR_REPO_TAG%" == "false" set APPVEYOR_REPO_TAG_NAME=dev
deploy_script:
# Sign and deploy the 64-bit portable version
- ps: signtool sign /f sign.pfx /p $env:encrypted_codesign_pwd /as /fd sha384 /tr http://timestamp.sectigo.com?td=sha384 /td sha384 /v "$env:artifact_64_bit"
- 7z a portable-x64.zip "%APPVEYOR_BUILD_FOLDER%\%artifact_64_bit%"
- C:\msys64\usr\bin\bash --login -c "scp -o StrictHostKeyChecking=no -i /c/projects/helio-sequencer/deploy-rsa -C /c/projects/helio-sequencer/portable-x64.zip %deploy_host%:%deploy_path%/helio-%APPVEYOR_REPO_TAG_NAME%-x64.zip"
# Sign and deploy the 32-bit portable version
- ps: signtool sign /f sign.pfx /p $env:encrypted_codesign_pwd /as /fd sha384 /tr http://timestamp.sectigo.com?td=sha384 /td sha384 /v "$env:artifact_32_bit"
- 7z a portable-x32.zip "%APPVEYOR_BUILD_FOLDER%\%artifact_32_bit%"
- C:\msys64\usr\bin\bash --login -c "scp -o StrictHostKeyChecking=no -i /c/projects/helio-sequencer/deploy-rsa -C /c/projects/helio-sequencer/portable-x32.zip %deploy_host%:%deploy_path%/helio-%APPVEYOR_REPO_TAG_NAME%-x32.zip"
# Create the installer containing both signed versions, then sign the installer and deploy
- set PATH=%PATH%;"C:\\Program Files (x86)\\Inno Setup 6"
- iscc "%APPVEYOR_BUILD_FOLDER%\Projects\Deployment\Windows\setup.iss"
- ps: signtool sign /f sign.pfx /p $env:encrypted_codesign_pwd /as /fd sha384 /tr http://timestamp.sectigo.com?td=sha384 /td sha384 /v "$env:artifact_installer"
- copy %artifact_installer% .\installer.exe
- C:\msys64\usr\bin\bash --login -c "scp -o StrictHostKeyChecking=no -i /c/projects/helio-sequencer/deploy-rsa -C /c/projects/helio-sequencer/installer.exe %deploy_host%:%deploy_path%/helio-%APPVEYOR_REPO_TAG_NAME%.exe"