File tree Expand file tree Collapse file tree 5 files changed +8
-11
lines changed Expand file tree Collapse file tree 5 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ permissions:
1717
1818jobs :
1919 release :
20- runs-on : windows-latest
20+ runs-on : ${{ github.repository_owner == 'coder' && ' windows-latest-16-cores' || 'windows-latest' }}
2121
2222 steps :
2323 - uses : actions/checkout@v4
6565 service_account : ${{ secrets.GCP_CODE_SIGNING_SERVICE_ACCOUNT }}
6666 token_format : " access_token"
6767
68- - name : Setup GCloud SDK
69- uses : google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a # v2.1.4
70-
7168 - name : scripts/Release.ps1
7269 id : release
7370 shell : pwsh
Original file line number Diff line number Diff line change @@ -403,7 +403,3 @@ FodyWeavers.xsd
403403.idea /** /shelf
404404
405405publish
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]
22param (
33 [ValidateSet (" x64" , " arm64" )]
44 [Parameter (Mandatory = $true )]
@@ -128,8 +128,12 @@ Copy-Item "scripts\files\License.txt" $buildPath
128128$vpnFilesPath = Join-Path $buildPath " vpn"
129129New-Item - ItemType Directory - Path $vpnFilesPath - Force
130130Copy-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
133137
134138# Build the MSI installer
135139& dotnet.exe run -- project .\Installer\Installer.csproj - c Release -- `
You can’t perform that action at this time.
0 commit comments