File tree 5 files changed +8
-11
lines changed
5 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ permissions:
17
17
18
18
jobs :
19
19
release :
20
- runs-on : windows-latest
20
+ runs-on : ${{ github.repository_owner == 'coder' && ' windows-latest-16-cores' || 'windows-latest' }}
21
21
22
22
steps :
23
23
- uses : actions/checkout@v4
65
65
service_account : ${{ secrets.GCP_CODE_SIGNING_SERVICE_ACCOUNT }}
66
66
token_format : " access_token"
67
67
68
- - name : Setup GCloud SDK
69
- uses : google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a # v2.1.4
70
-
71
68
- name : scripts/Release.ps1
72
69
id : release
73
70
shell : pwsh
Original file line number Diff line number Diff line change @@ -403,7 +403,3 @@ FodyWeavers.xsd
403
403
.idea /** /shelf
404
404
405
405
publish
406
- WindowsAppRuntimeInstall- * .exe
407
- windowsdesktop-runtime- * .exe
408
- wintun.dll
409
- wintun- * .dll
Original file line number Diff line number Diff line change 1
- # Usage: Publish.ps1 -arch <x64|arm64> -version <version> [-msiOutputPath <path>] [-outputPath <path>]
1
+ # Usage: Publish.ps1 -arch <x64|arm64> -version <version> [-msiOutputPath <path>] [-outputPath <path>] [-sign]
2
2
param (
3
3
[ValidateSet (" x64" , " arm64" )]
4
4
[Parameter (Mandatory = $true )]
@@ -128,8 +128,12 @@ Copy-Item "scripts\files\License.txt" $buildPath
128
128
$vpnFilesPath = Join-Path $buildPath " vpn"
129
129
New-Item - ItemType Directory - Path $vpnFilesPath - Force
130
130
Copy-Item " scripts\files\LICENSE.WINTUN.txt" $vpnFilesPath
131
- $wintunDllPath = Join-Path $vpnFilesPath " wintun.dll"
132
- Copy-Item " scripts\files\wintun-*-$ ( $arch ) .dll" $wintunDllPath
131
+ $wintunDllSrc = Get-Item " scripts\files\wintun-*-$ ( $arch ) .dll"
132
+ if ($null -eq $wintunDllSrc ) {
133
+ throw " Failed to find wintun DLL"
134
+ }
135
+ $wintunDllDest = Join-Path $vpnFilesPath " wintun.dll"
136
+ Copy-Item $wintunDllSrc $wintunDllDest
133
137
134
138
# Build the MSI installer
135
139
& dotnet.exe run -- project .\Installer\Installer.csproj - c Release -- `
You can’t perform that action at this time.
0 commit comments