Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Dec 13, 2024
1 parent 740411e commit f5f85aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish-standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ jobs:

- name: Run _build
run: >-
dotnet publish src/BUTR.CrashReport.Renderer.ImGui.Standalone/BUTR.CrashReport.Renderer.ImGui.Standalone.csproj --configuration Release -p:Runtime=true -o "./pub";
Compress-Archive -Path pub/* -Destination "universal-net9.zip"
dotnet publish src/BUTR.CrashReport.Renderer.ImGui.Standalone/BUTR.CrashReport.Renderer.ImGui.Standalone.csproj --configuration Release -f net6.0 -p:Runtime=true -o "./pub";
Compress-Archive -Path pub/* -Destination "net6-${{ matrix.data.rid }}.zip"
dotnet publish src/BUTR.CrashReport.Renderer.ImGui.Standalone/BUTR.CrashReport.Renderer.ImGui.Standalone.csproj --configuration Release -p:RuntimeSingleFile=true -o "./pub2";
Compress-Archive -Path pub2/* -Destination "universal-net9-single-file.zip"
dotnet publish src/BUTR.CrashReport.Renderer.ImGui.Standalone/BUTR.CrashReport.Renderer.ImGui.Standalone.csproj --configuration Release -f net6.0 -p:RuntimeSingleFile=true -o "./pub2";
Compress-Archive -Path pub2/* -Destination "net6-${{ matrix.data.rid }}-single-file.zip"
shell: pwsh

- name: Upload Release Assets
Expand All @@ -106,12 +106,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ needs.create-release.outputs.release_id }}
assets_path: "net9-${{ matrix.data.rid }}.zip"
assets_path: "net6-${{ matrix.data.rid }}.zip"

- name: Upload Release Assets
uses: dwenegar/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ needs.create-release.outputs.release_id }}
assets_path: "net9-${{ matrix.data.rid }}-single-file.zip"
assets_path: "net6-${{ matrix.data.rid }}-single-file.zip"
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<TargetFrameworks>net6.0;net9.0</TargetFrameworks>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand All @@ -19,7 +19,7 @@
<CopyOutputSymbolsToPublishDirectory>false</CopyOutputSymbolsToPublishDirectory>
</PropertyGroup>

<PropertyGroup Condition="$(Runtime) == '' AND $(RuntimeSingleFile) == ''">
<PropertyGroup Condition="$(TargetFramework) == 'net9.0' AND $(Runtime) == '' AND $(RuntimeSingleFile) == ''">
<PublishAot>true</PublishAot>
<OptimizationPreference>Size</OptimizationPreference>
</PropertyGroup>
Expand Down

0 comments on commit f5f85aa

Please sign in to comment.