-
-
Notifications
You must be signed in to change notification settings - Fork 201
/
appveyor.yml
61 lines (54 loc) · 3.47 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
os: Visual Studio 2017
environment:
appx_ver: 24.4.28.0
wsldl_ver: 24042000
fs_ver: 24042800
pfx_secret:
secure: XlXaj3gSIBd9YNKz8zuI9dtBJIoq+TTwj3HkWyyXzUTuk5b/Ur7OY2abhV9zNacetbLJKfKQSYJQLIUF9uNAFHMZoDdAKK6rq2Uzii+JB3KBaWg7w5iIfdJKD6/LD3TYjVUzQPYzEGMC45s6adk8ru3CR2kDJzhvrvqf93pL55E=
install:
- cmd: git submodule init
- cmd: git submodule update
- ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'))
- cmd: appveyor-tools\secure-file -decrypt appx\wsldl-AppX\wsldl-AppX_TemporaryKey.pfx.enc -secret %pfx_secret%
- cmd: appveyor-tools\secure-file -decrypt appx-online\wsldl-AppX\wsldl-AppX_TemporaryKey.pfx.enc -secret %pfx_secret%
before_build:
- ps: Invoke-WebRequest https://github.com/yuk7/wsldl/releases/download/${env:wsldl_ver}/icons.zip -OutFile icons.zip -UseBasicParsing
- ps: Expand-Archive icons.zip -DestinationPath appx\wsldl-AppX\
- ps: Copy-Item appx\wsldl-AppX\Arch.exe appx-online\wsldl-AppX\Arch.exe
- ps: Invoke-WebRequest https://github.com/yuk7/ArchWSL-FS/releases/download/${env:fs_ver}/rootfs.tar.gz -OutFile appx\wsldl-AppX\rootfs.tar.gz -UseBasicParsing
- ps: Move-Item preset.json appx-online\wsldl-AppX\preset.json
- ps: $vtxt = 'Version="'+${env:appx_ver}+'"'
- ps: $file_contents = $(Get-Content "appx\wsldl-AppX\package.appxmanifest") -replace 'Version="19.0.0.0"',$vtxt
- ps: $file_contents | Out-File "appx\wsldl-AppX\package.appxmanifest" -Encoding utf8
- ps: $file_contents = $(Get-Content "appx-online\wsldl-AppX\package.appxmanifest") -replace 'Version="19.0.0.0"',$vtxt
- ps: $file_contents | Out-File "appx-online\wsldl-AppX\package.appxmanifest" -Encoding utf8
build_script:
- cmd: msbuild appx\wsldl-AppX.sln /p:Configuration=Release;AppxBundle=Never
- cmd: msbuild appx-online\wsldl-AppX.sln /p:Configuration=Release;AppxBundle=Never
- ps: New-Item zip -ItemType Directory
- ps: Move-Item appx\wsldl-AppX\Arch.exe zip\Arch.exe
- ps: Move-Item appx\wsldl-AppX\rootfs.tar.gz zip\rootfs.tar.gz
- ps: Compress-Archive -Path zip\* -DestinationPath Arch.zip
- ps: New-Item zip-online -ItemType Directory
- ps: Move-Item appx-online\wsldl-AppX\Arch.exe zip-online\Arch.exe
- ps: Move-Item appx-online\wsldl-AppX\preset.json zip-online\preset.json
- ps: Compress-Archive -Path zip-online\* -DestinationPath Arch_Online.zip
after_build:
- ps: New-Item out -ItemType Directory
- ps: Move-Item appx\wsldl-AppX\AppPackages\wsldl-AppX_${env:appx_ver}_x64_Test\wsldl-AppX_${env:appx_ver}_x64.appx out\ArchWSL-AppX_${env:appx_ver}_x64.appx
- ps: Move-Item appx\wsldl-AppX\AppPackages\wsldl-AppX_${env:appx_ver}_x64_Test\wsldl-AppX_${env:appx_ver}_x64.cer out\ArchWSL-AppX_${env:appx_ver}_x64.cer
- ps: Move-Item appx-online\wsldl-AppX\AppPackages\wsldl-AppX_${env:appx_ver}_x64_Test\wsldl-AppX_${env:appx_ver}_x64.appx out\ArchWSL_Online-AppX_${env:appx_ver}_x64.appx
- ps: Move-Item appx-online\wsldl-AppX\AppPackages\wsldl-AppX_${env:appx_ver}_x64_Test\wsldl-AppX_${env:appx_ver}_x64.cer out\ArchWSL_Online-AppX_${env:appx_ver}_x64.cer
- ps: Move-Item Arch.zip out\Arch.zip
- ps: Move-Item Arch_Online.zip out\Arch_Online.zip
artifacts:
- path: 'out\*.appx'
- path: 'out\*.cer'
- path: 'out\Arch.zip'
- path: 'out\Arch_Online.zip'
deploy:
- provider: GitHub
auth_token:
secure: KY9JrjtTwT5TC0VcxM0KOKhhngN0sYwfACI25aF+EKK/YYZOyGEPotyLvHZpCkfy
on:
appveyor_repo_tag: true