Skip to content

Commit

Permalink
Fix: Add runtime configuration and proper manifest settings
Browse files Browse the repository at this point in the history
  • Loading branch information
BytexGrid committed Dec 24, 2024
1 parent e15facf commit 89ff115
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,31 @@ jobs:
-p:DebugType=None `
-p:DebugSymbols=false `
-p:PublishReadyToRun=true `
-p:PublishTrimmed=false `
-p:ApplicationManifest=app.manifest `
-p:WindowsPackageType=None `
-o ../publish
- name: Copy exe to release
run: Copy-Item "publish/NeatShift.exe" -Destination "NeatShift.exe"

- name: Zip Release
run: Compress-Archive -Path "publish/NeatShift.exe" -DestinationPath "NeatShift-Release.zip"
- name: Create Runtime Config
run: |
Set-Content -Path "publish/NeatShift.runtimeconfig.json" -Value '{
"runtimeOptions": {
"tfm": "net6.0-windows",
"framework": {
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
},
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
}
}
}'
- name: Zip Release with Config
run: Compress-Archive -Path "publish/*" -DestinationPath "NeatShift-Release.zip"

- name: Create Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 89ff115

Please sign in to comment.