From 5bd51a8103cdbf4fe91b4ea84b247322a995c52b Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Mon, 16 Dec 2024 14:13:39 +0200 Subject: [PATCH] Added html standalone --- .github/workflows/publish-standalone.yml | 38 +++++++++--- ...rashReport.Renderer.Html.Standalone.csproj | 62 +++++++++++++++++++ src/BUTR.CrashReport.sln | 7 +++ 3 files changed, 99 insertions(+), 8 deletions(-) create mode 100644 src/BUTR.CrashReport.Renderer.Html.Standalone/BUTR.CrashReport.Renderer.Html.Standalone.csproj diff --git a/.github/workflows/publish-standalone.yml b/.github/workflows/publish-standalone.yml index ae39f21..1181524 100644 --- a/.github/workflows/publish-standalone.yml +++ b/.github/workflows/publish-standalone.yml @@ -57,17 +57,28 @@ jobs: - name: Run _build run: >- - dotnet publish src/BUTR.CrashReport.Renderer.ImGui.Standalone/BUTR.CrashReport.Renderer.ImGui.Standalone.csproj --configuration Release -f net9.0 -r "${{ matrix.data.rid }}" -o "./pub"; - Compress-Archive -Path pub/* -Destination "native-${{ matrix.data.rid }}.zip" + dotnet publish src/BUTR.CrashReport.Renderer.ImGui.Standalone/BUTR.CrashReport.Renderer.ImGui.Standalone.csproj --configuration Release -f net9.0 -r "${{ matrix.data.rid }}" -o "./imgui"; + Compress-Archive -Path imgui/* -Destination "imgui-native-${{ matrix.data.rid }}.zip" + + dotnet publish src/BUTR.CrashReport.Renderer.Html.Standalone/BUTR.CrashReport.Renderer.Html.Standalone.csproj --configuration Release -f net9.0 -r "${{ matrix.data.rid }}" -o "./html"; + Compress-Archive -Path html/* -Destination "html-native-${{ matrix.data.rid }}.zip" shell: pwsh - - name: Upload Release Assets + - name: Upload Release Assets (ImGui) + uses: dwenegar/upload-release-assets@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + release_id: ${{ needs.create-release.outputs.release_id }} + assets_path: "imgui-native-${{ matrix.data.rid }}.zip" + + - name: Upload Release Assets (Html) uses: dwenegar/upload-release-assets@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: release_id: ${{ needs.create-release.outputs.release_id }} - assets_path: "native-${{ matrix.data.rid }}.zip" + assets_path: "html-native-${{ matrix.data.rid }}.zip" publish-universal: strategy: @@ -93,14 +104,25 @@ jobs: - name: Run _build run: >- - dotnet publish src/BUTR.CrashReport.Renderer.ImGui.Standalone/BUTR.CrashReport.Renderer.ImGui.Standalone.csproj --configuration Release -f net6.0 -p:RuntimeSingleFile=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 -f net6.0 -p:RuntimeSingleFile=true -o "./imgui"; + Compress-Archive -Path pub/* -Destination "imgui-net6-${{ matrix.data.rid }}.zip" + + dotnet publish src/BUTR.CrashReport.Renderer.ImGui.Standalone/BUTR.CrashReport.Renderer.ImGui.Standalone.csproj --configuration Release -f net6.0 -p:RuntimeSingleFile=true -o "./html"; + Compress-Archive -Path pub/* -Destination "html-net6-${{ matrix.data.rid }}.zip" shell: pwsh - - name: Upload Release Assets + - name: Upload Release Assets (ImGui) + uses: dwenegar/upload-release-assets@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + release_id: ${{ needs.create-release.outputs.release_id }} + assets_path: "imgui-net6-${{ matrix.data.rid }}.zip" + + - name: Upload Release Assets (Html) uses: dwenegar/upload-release-assets@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: release_id: ${{ needs.create-release.outputs.release_id }} - assets_path: "net6-${{ matrix.data.rid }}.zip" + assets_path: "html-net6-${{ matrix.data.rid }}.zip" diff --git a/src/BUTR.CrashReport.Renderer.Html.Standalone/BUTR.CrashReport.Renderer.Html.Standalone.csproj b/src/BUTR.CrashReport.Renderer.Html.Standalone/BUTR.CrashReport.Renderer.Html.Standalone.csproj new file mode 100644 index 0000000..90000e9 --- /dev/null +++ b/src/BUTR.CrashReport.Renderer.Html.Standalone/BUTR.CrashReport.Renderer.Html.Standalone.csproj @@ -0,0 +1,62 @@ + + + + Exe + net6.0;net9.0 + enable + latest + true + + true + true + + true + full + true + + true + + false + + $(DefineConstants);BUTRCRASHREPORT_DISABLE;BUTRCRASHREPORT_ENABLE_HTML_RENDERER; + + + + true + Size + + + + + + + + true + true + true + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/BUTR.CrashReport.sln b/src/BUTR.CrashReport.sln index d3c903a..20143b0 100644 --- a/src/BUTR.CrashReport.sln +++ b/src/BUTR.CrashReport.sln @@ -103,6 +103,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Standalone", "Standalone", EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BUTR.CrashReport.Renderer.ImGui.Standalone", "BUTR.CrashReport.Renderer.ImGui.Standalone\BUTR.CrashReport.Renderer.ImGui.Standalone.csproj", "{304D6A99-EF3B-45A1-AC3A-372C04E5842B}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BUTR.CrashReport.Renderer.Html.Standalone", "BUTR.CrashReport.Renderer.Html.Standalone\BUTR.CrashReport.Renderer.Html.Standalone.csproj", "{065FFD4D-BA4A-4F42-9359-43517CE7460E}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -225,6 +227,10 @@ Global {304D6A99-EF3B-45A1-AC3A-372C04E5842B}.Debug|Any CPU.Build.0 = Debug|Any CPU {304D6A99-EF3B-45A1-AC3A-372C04E5842B}.Release|Any CPU.ActiveCfg = Release|Any CPU {304D6A99-EF3B-45A1-AC3A-372C04E5842B}.Release|Any CPU.Build.0 = Release|Any CPU + {065FFD4D-BA4A-4F42-9359-43517CE7460E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {065FFD4D-BA4A-4F42-9359-43517CE7460E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {065FFD4D-BA4A-4F42-9359-43517CE7460E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {065FFD4D-BA4A-4F42-9359-43517CE7460E}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -266,5 +272,6 @@ Global {36A642D2-9075-470D-B5B4-40EA20E0C16C} = {F324D64B-B62F-440F-A766-A4EC343A5F17} {B2E732BE-17B2-4014-95A8-C588C6F624D4} = {F324D64B-B62F-440F-A766-A4EC343A5F17} {304D6A99-EF3B-45A1-AC3A-372C04E5842B} = {F324D64B-B62F-440F-A766-A4EC343A5F17} + {065FFD4D-BA4A-4F42-9359-43517CE7460E} = {F324D64B-B62F-440F-A766-A4EC343A5F17} EndGlobalSection EndGlobal