- Notifications
You must be signed in to change notification settings - Fork3
chore: fix release process#35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
9 commits Select commitHold shift + click to select a range
6194b27
chore: fix release process
deansheather55614c7
fixup! chore: fix release process
deansheather0f35414
fixup! chore: fix release process
deansheather82bc712
fixup! chore: fix release process
deansheather108b51e
fixup! chore: fix release process
deansheatherf7da741
fixup! chore: fix release process
deansheathera47ae19
test no sign
deansheather292c9e5
sign engine
deansheather12d1973
check sig
deansheatherFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
18 changes: 14 additions & 4 deletions.github/workflows/release.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions.gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -403,7 +403,11 @@ FodyWeavers.xsd | ||
.idea/**/shelf | ||
publish | ||
*.wxs | ||
*.wixobj | ||
*.wixpdb | ||
*.wixlib | ||
*.wixmdb | ||
*.wixprj | ||
*.wixproj |
57 changes: 52 additions & 5 deletionsscripts/Publish.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
66 changes: 33 additions & 33 deletionsscripts/Release.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
# Usage: Release.ps1 -version <version> | ||
param ( | ||
[Parameter(Mandatory = $true)] | ||
[ValidatePattern("^\d+\.\d+\.\d+$")] | ||
[string] $version, | ||
[Parameter(Mandatory = $true)] | ||
[ValidatePattern("^\d+\.\d+\.\d+\.\d+$")] | ||
[string] $assemblyVersion | ||
) | ||
$ErrorActionPreference = "Stop" | ||
foreach ($arch in @("x64", "arm64")) { | ||
Write-Host "::group::Publishing $arch" | ||
try { | ||
$archUpper = $arch.ToUpper() | ||
$msiOutputPath = "publish/CoderDesktopCore-$version-$arch.msi" | ||
Add-Content -Path $env:GITHUB_OUTPUT -Value "$($archUpper)_MSI_OUTPUT_PATH=$msiOutputPath" | ||
Write-Host "MSI_OUTPUT_PATH=$msiOutputPath" | ||
$outputPath = "publish/CoderDesktop-$version-$arch.exe" | ||
Add-Content -Path $env:GITHUB_OUTPUT -Value "$($archUpper)_OUTPUT_PATH=$outputPath" | ||
Write-Host "OUTPUT_PATH=$outputPath" | ||
$publishScript = Join-Path $PSScriptRoot "Publish.ps1" | ||
& $publishScript ` | ||
-version $assemblyVersion ` | ||
-arch $arch ` | ||
-msiOutputPath $msiOutputPath ` | ||
-outputPath $outputPath ` | ||
-sign | ||
if ($LASTEXITCODE -ne 0) { throw "Failed to publish" } | ||
# Verify that the output exe is authenticode signed | ||
$sig = Get-AuthenticodeSignature $outputPath | ||
if ($sig.Status -ne "Valid") { | ||
throw "Output file is not authenticode signed" | ||
} | ||
else { | ||
Write-Host "Output file is authenticode signed" | ||
} | ||
} | ||
finally { | ||
Write-Host "::endgroup::" | ||
} | ||
} |
Binary file addedscripts/files/wintun-0.14.1-arm64.dll
Binary file not shown.
Binary file addedscripts/files/wintun-0.14.1-x64.dll
Binary file not shown.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.