forked from yuk7/ArchWSL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
41 lines (34 loc) · 1.92 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
os: Visual Studio 2017
environment:
appx_ver: 19.7.2.0
wsldl_ver: 19070200
fs_ver: 19030700
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%
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: 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: $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
build_script:
- cmd: msbuild appx\wsldl-AppX.sln /p:Configuration=Release;AppxBundle=Never
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
artifacts:
- path: 'out\*.appx'
- path: 'out\*.cer'
deploy:
- provider: GitHub
auth_token:
secure: 4E1LKf0gRUSciyoPkXps27bqYlHGeWJa0PwFdApSy+rHaHq/p3d9k9NOBNYivLEA
on:
appveyor_repo_tag: true