forked from OpenTechEngine/OpenTechBFG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
64 lines (49 loc) · 2.11 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
64
version: 1.0.{build}
os: Default Azure
configuration: Release
platform: x64
clone_folder: c:\projects\OpenTechBFG
environment:
encryption_key:
secure: 9Urg0eGnS5HKgBq7lQQAtuwwobSySAi5rtxr2kadkQpOeCxa5PTLL15AJ/RPDgAJ
VSINSTALLDIR: "C:/Program Files (x86)/Microsoft Visual Studio 12.0"
install:
- cinst -y nsis
- SET PATH=%PATH%;C:\Program Files\NSIS\;C:\Program Files (x86)\NSIS\
before_build:
- cd c:\projects\OpenTechBFG\
- git submodule init
- git submodule update
- mkdir build
- cd build
- cmake -G "Visual Studio 12 Win64" -DCMAKE_INSTALL_PREFIX=../bin/win8-64 -DOPENAL=OFF -DBUNDLED_FREETYPE=ON ../
build:
project: C:\projects\OpenTechBFG\build\PACKAGE.vcxproj
verbosity: normal
test: off
artifacts:
- path: 'build\OpenTechBFG-*-win64.exe'
name: OpenTechBFG
on_success:
- ps: >-
nuget install secure-file -ExcludeVersion
secure-file\tools\secure-file -decrypt c:\projects\OpenTechBFG\.appveyor\id_rsa.enc -secret $env:encryption_key
move C:\projects\OpenTechBFG\base C:\projects\OpenTechBFG\build\bin
$unixtimestamp = [int][double]::Parse((Get-Date -UFormat %s))
move C:\projects\OpenTechBFG\build\bin C:\projects\OpenTechBFG\build\OpenTechBFG-$unixtimestamp
[Reflection.Assembly]::LoadWithPartialName( "System.IO.Compression.FileSystem" )
[System.IO.Compression.ZipFile]::CreateFromDirectory("C:\projects\OpenTechBFG\build\OpenTechBFG-$unixtimestamp", "C:\projects\OpenTechBFG\build\OpenTechBFG-$unixtimestamp.zip")
if ("$(scp -q -B -i /c/projects/OpenTechBFG/.appveyor/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /c/projects/OpenTechBFG/build/OpenTechBFG-$unixtimestamp.zip [email protected]:/home/frs/project/opentechengine/snapshot/Windows/VisualStudio/OpenTechEngine-$unixtimestamp.zip)" -or $True) {$True}
deploy:
release: OpenTechBFG-v$(appveyor_build_version)
description: 'OpenTechBFG'
provider: GitHub
auth_token:
secure: /FqKMwmidZF3nDlOl6I2QcKQBiPTSA5ZKSzM4tpMYmmNFI48cDnJRIPw6DwFdwVq
artifact: OpenTechBFG
draft: false
prerelease: true
force_update: true
tag: $(appveyor_repo_tag_name)
on:
appveyor_repo_tag: true