-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
53 lines (41 loc) · 1.71 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
version: 1.0.{build}
skip_tags: true
image: Visual Studio 2017
configuration: Release
environment:
runtime:
'rhel.7.4-x64'
framework:
'netcoreapp1.1'
KodiBaseUrl:
secure: 1CJ8lNL6etN/724AIt09AVKCiDCOPVQ6BICAprS2qYs=
KodiAuthHeader:
secure: Ph8i7AbpLNfOc07MP9B40wn54kF6Mda5tEUy5gPuFKY=
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
build_script:
- ps: >-
Write-Host "Building HoneyBear.Alexa.Calculator..."
dotnet restore .\Src\HoneyBear.Alexa.Calculator
dotnet build .\Src\HoneyBear.Alexa.Calculator -c $env:CONFIGURATION -r $env:RUNTIME
dotnet publish .\Src\HoneyBear.Alexa.Calculator -c $env:CONFIGURATION -r $env:RUNTIME
Compress-Archive .\Src\HoneyBear.Alexa.Calculator\bin\$env:CONFIGURATION\$env:FRAMEWORK\$env:RUNTIME\publish\* .\HoneyBear.Alexa.Calculator.zip
Write-Host "Building HoneyBear.Alexa.Kodi..."
$path = ".\Src\HoneyBear.Alexa.Kodi\app.settings.json"
(Get-Content $path).Replace("KODI_BASE_URL", $env:KodiBaseUrl) | Set-Content $path
(Get-Content $path).Replace("KODI_AUTH_HEADER", $env:KodiAuthHeader) | Set-Content $path
dotnet restore .\Src\HoneyBear.Alexa.Kodi
dotnet build .\Src\HoneyBear.Alexa.Kodi -c $env:CONFIGURATION -r $env:RUNTIME
dotnet publish .\Src\HoneyBear.Alexa.Kodi -c $env:CONFIGURATION -r $env:RUNTIME
Compress-Archive .\Src\HoneyBear.Alexa.Kodi\bin\$env:CONFIGURATION\$env:FRAMEWORK\$env:RUNTIME\publish\* .\HoneyBear.Alexa.Kodi.zip
test: off
artifacts:
- path: HoneyBear.Alexa.Calculator.zip
name: HoneyBear.Alexa.Calculator
- path: HoneyBear.Alexa.Kodi.zip
name: HoneyBear.Alexa.Kodi
deploy: off