Skip to content

Commit 108b51e

Browse files
committed
fixup! chore: fix release process
1 parent 82bc712 commit 108b51e

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

.github/workflows/release.yaml

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717

1818
jobs:
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
@@ -65,9 +65,6 @@ jobs:
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

.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,3 @@ FodyWeavers.xsd
403403
.idea/**/shelf
404404

405405
publish
406-
WindowsAppRuntimeInstall-*.exe
407-
windowsdesktop-runtime-*.exe
408-
wintun.dll
409-
wintun-*.dll

scripts/Publish.ps1

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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]
22
param (
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"
129129
New-Item -ItemType Directory -Path $vpnFilesPath -Force
130130
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
133137

134138
# Build the MSI installer
135139
& dotnet.exe run --project .\Installer\Installer.csproj -c Release -- `

scripts/files/wintun-0.14.1-arm64.dll

217 KB
Binary file not shown.

scripts/files/wintun-0.14.1-x64.dll

418 KB
Binary file not shown.

0 commit comments

Comments
 (0)