-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathappveyor.yml
More file actions
27 lines (21 loc) · 1.12 KB
/
appveyor.yml
File metadata and controls
27 lines (21 loc) · 1.12 KB
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
version: 1.0.{build}
image: Visual Studio 2017
configuration:
- Debug
- Release
platform: Any CPU
environment:
DualServerTag: 7.11.16.datadiode.32.gba8c4
build_script:
- msbuild /t:Restore,Rebuild /p:Platform="%PLATFORM%" /p:Configuration="%CONFIGURATION%" NetPorter.sln
after_build:
- ps: >-
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
Invoke-WebRequest https://github.com/datadiode/dualserver/releases/download/$env:DualServerTag/DualServer_$env:DualServerTag-Win32-$env:CONFIGURATION.zip -Outfile DualServer.zip;
7z.exe x "-oNetPorter\bin\$env:CONFIGURATION\net40\" DualServer.zip;
Invoke-WebRequest https://scripttiger.github.io/dualserver/DualServerManual.pdf -Outfile "NetPorter\bin\$env:CONFIGURATION\net40\DualServerManual.pdf";
copy LICENSE "NetPorter\bin\$env:CONFIGURATION\net40\";
$env:PRODUCT_VERSION=(Get-Command "$env:APPVEYOR_BUILD_FOLDER\NetPorter\bin\$env:CONFIGURATION\net40\NetPorter.exe").FileVersionInfo.ProductVersion;
artifacts:
- path: NetPorter\bin\$(configuration)\net40
name: $(APPVEYOR_PROJECT_NAME)_$(PRODUCT_VERSION)