From 89ff115ddc814c34810435732e744dac0850bcc8 Mon Sep 17 00:00:00 2001 From: BytexGrid Date: Wed, 25 Dec 2024 01:06:22 +0530 Subject: [PATCH] Fix: Add runtime configuration and proper manifest settings --- .github/workflows/release.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1982932..4434c4d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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