Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
fcddc8a
Progress
Aragas Oct 13, 2024
331876d
v15
Aragas Dec 10, 2024
585b3b6
Update
Aragas Dec 10, 2024
83675dc
Update
Aragas Dec 10, 2024
df5d3a4
Fix
Aragas Dec 10, 2024
7eb7e43
Fix
Aragas Dec 10, 2024
4fbc258
Fix
Aragas Dec 10, 2024
23d2581
Fix
Aragas Dec 10, 2024
65573b9
Fix
Aragas Dec 10, 2024
4ee4dbf
Fix
Aragas Dec 10, 2024
1c6745d
Update
Aragas Dec 10, 2024
333b5ee
Fix
Aragas Dec 10, 2024
ef0d730
Update
Aragas Dec 10, 2024
2dd1165
Fix
Aragas Dec 10, 2024
9853a63
Fix
Aragas Dec 10, 2024
7495906
Fix
Aragas Dec 11, 2024
9651f48
Fix
Aragas Dec 11, 2024
6429201
Fix
Aragas Dec 11, 2024
f920b94
Fix
Aragas Dec 11, 2024
6f24d90
Test
Aragas Dec 11, 2024
e98de60
Test
Aragas Dec 11, 2024
6a7c11a
Test
Aragas Dec 11, 2024
7b849c4
Added CascadiaCode to do proper font scaling
Aragas Dec 11, 2024
7a40828
Added standalone and publish for it
Aragas Dec 11, 2024
8242851
Update publish-standalone.yml
Aragas Dec 11, 2024
b8211cd
Fix
Aragas Dec 11, 2024
a6fc813
Fix
Aragas Dec 11, 2024
28f1c0f
Update
Aragas Dec 12, 2024
8a9c8d0
Fix
Aragas Dec 12, 2024
6f59457
Fix
Aragas Dec 12, 2024
7409063
Fix
Aragas Dec 12, 2024
5807581
Fix
Aragas Dec 12, 2024
740411e
Fix
Aragas Dec 13, 2024
f5f85aa
Fix
Aragas Dec 13, 2024
b35b17f
Fix
Aragas Dec 13, 2024
d143a6b
Fix
Aragas Dec 13, 2024
b172d3c
Added theming to WASM
Aragas Dec 15, 2024
70aa853
Deploy fix
Aragas Dec 15, 2024
f112501
Fix
Aragas Dec 15, 2024
5579e1a
Fix
Aragas Dec 15, 2024
77b165b
Fix
Aragas Dec 15, 2024
93acc77
Added the ability to ingest files in WASM
Aragas Dec 16, 2024
5bd51a8
Added html standalone
Aragas Dec 16, 2024
1e28b7a
Fix
Aragas Dec 16, 2024
62b9d2c
Fix
Aragas Dec 16, 2024
355f931
Fix
Aragas Dec 17, 2024
6ffdd3a
Added touch support
Aragas Dec 31, 2024
b1a326c
Switched to igTextUnformatted
Aragas Feb 1, 2025
15bd24a
Fix
Aragas Feb 1, 2025
cf45678
Fix
Aragas Feb 1, 2025
0005c9c
Fix
Aragas Feb 1, 2025
73bb819
Fix
Aragas Feb 1, 2025
5393c02
Fix
Aragas Feb 1, 2025
c257db1
Restriction to master
Aragas Feb 3, 2025
2cafa91
Disabled arm64 ImGui since it seems to be broken right now
Aragas Feb 13, 2025
8343d96
Added diagnostics
Aragas Feb 20, 2025
45c2de4
Formatting
Aragas Feb 20, 2025
d042e5a
Moved Models.Analysys folder to BUTR.CrashReport.AutomatedRemediation
Aragas Feb 20, 2025
4a0c140
Added Markdown rendering support, switched to a custom build of cmgui
Aragas Apr 1, 2025
acd23cb
Improved code rendering
Aragas Apr 2, 2025
6d3b25e
Better linux support, added linux arm64 binaries
Aragas Apr 4, 2025
39ab09e
Added IsPreviousSession
Aragas Apr 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
70 changes: 70 additions & 0 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Publish

on:
push:
branches: [ master ]
paths:
- '.github/workflows/publish-packages.yml'
- 'src/**'
- 'build/**'

env:
# Disable the .NET logo in the console output.
DOTNET_NOLOGO: true
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build.
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending .NET CLI telemetry to Microsoft.
DOTNET_CLI_TELEMETRY_OPTOUT: true

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Setup
uses: butr/actions-common-setup@v2
with:
github-token: ${{secrets.GITHUB_TOKEN}}

- name: Setup .NET 9
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x.x

- name: Run _build
run: >-
dotnet pack src/BUTR.CrashReport.Models/BUTR.CrashReport.Models.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.AutomatedRemediation/BUTR.CrashReport.AutomatedRemediation.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.ContextualAnalysis/BUTR.CrashReport.ContextualAnalysis.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.Decompilers/BUTR.CrashReport.Decompilers.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport/BUTR.CrashReport.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.ILMerged/BUTR.CrashReport.ILMerged.csproj --configuration Release -o "./packages";

dotnet pack src/BUTR.CrashReport.Renderer.Html/BUTR.CrashReport.Renderer.Html.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.Renderer.WinForms/BUTR.CrashReport.Renderer.WinForms.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.Renderer.Zip/BUTR.CrashReport.Renderer.Zip.csproj --configuration Release -o "./packages";

dotnet pack src/BUTR.CrashReport.Memory/BUTR.CrashReport.Memory.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.Native/BUTR.CrashReport.Native.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.Native.SourceGenerator/BUTR.CrashReport.Native.SourceGenerator.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.CImGui/BUTR.CrashReport.CImGui.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.ImGui/BUTR.CrashReport.ImGui.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.Renderer.ImGui/BUTR.CrashReport.Renderer.ImGui.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.Renderer.ImGui.Silk.NET/BUTR.CrashReport.Renderer.ImGui.Silk.NET.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.Renderer.ImGui.Silk.NET.ILMerged/BUTR.CrashReport.Renderer.ImGui.Silk.NET.ILMerged.csproj --configuration Release -o "./packages";

dotnet pack src/BUTR.CrashReport.Renderer.Html.Tool/BUTR.CrashReport.Renderer.Html.Tool.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.Renderer.ImGui.Tool/BUTR.CrashReport.Renderer.ImGui.Tool.csproj --configuration Release -o "./packages";
shell: pwsh

- name: Push to NuGet
run: dotnet nuget push "./packages/*.nupkg" -k ${{secrets.NUGET_API_KEY}} -s https://www.nuget.org
shell: pwsh

- name: Push to GPR
run: |
for f in ./packages/*.nupkg
do
curl -vX PUT -u "vslee:${{secrets.GITHUB_TOKEN}}" -F package=@$f https://nuget.pkg.github.com/BUTR/
done
shell: bash
130 changes: 130 additions & 0 deletions .github/workflows/publish-standalone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
name: Publish Standalone

on:
push:
branches: [ master ]
tags:
- 'v*'

env:
# Disable the .NET logo in the console output.
DOTNET_NOLOGO: true
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build.
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending .NET CLI telemetry to Microsoft.
DOTNET_CLI_TELEMETRY_OPTOUT: true

jobs:
create-release:
name: Create Release
runs-on: ubuntu-latest
outputs:
release_id: ${{ steps.create_release.outputs.id }}
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true

publish-native:
strategy:
matrix:
data: [
{ rid: 'win-x64', os: 'windows-latest' },
{ rid: 'win-x86', os: 'windows-latest' },
{ rid: 'linux-x64', os: 'ubuntu-22.04' },
{ rid: 'linux-arm64', os: 'ubuntu-22.04-arm' },
{ rid: 'osx-x64', os: 'macos-13' },
{ rid: 'osx-arm64', os: 'macos-latest' }
]
name: Publish Native ${{ matrix.data.rid }}
runs-on: ${{ matrix.data.os }}
needs: create-release
steps:
- name: Setup
uses: butr/actions-common-setup@v2
with:
github-token: ${{secrets.GITHUB_TOKEN}}

- name: Setup .NET 9
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x.x

- 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 "./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 (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: "html-native-${{ matrix.data.rid }}.zip"

publish-universal:
strategy:
matrix:
data: [
{ rid: 'win', os: 'windows-latest' },
{ rid: 'linux', os: 'ubuntu-22.04' },
{ rid: 'osx', os: 'macos-latest' }
]
name: Publish Universal ${{ matrix.data.rid }}
runs-on: ${{ matrix.data.os }}
needs: create-release
steps:
- name: Setup
uses: butr/actions-common-setup@v2
with:
github-token: ${{secrets.GITHUB_TOKEN}}

- name: Setup .NET 9
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x.x

- 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 "./imgui";
Compress-Archive -Path imgui/* -Destination "imgui-net6-${{ matrix.data.rid }}.zip"

dotnet publish src/BUTR.CrashReport.Renderer.Html.Standalone/BUTR.CrashReport.Renderer.Html.Standalone.csproj --configuration Release -f net6.0 -p:RuntimeSingleFile=true -o "./html";
Compress-Archive -Path html/* -Destination "html-net6-${{ matrix.data.rid }}.zip"
shell: pwsh

- 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: "html-net6-${{ matrix.data.rid }}.zip"
30 changes: 30 additions & 0 deletions .github/workflows/publish-wasm-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy WASM

on:
workflow_dispatch:
workflow_run:
workflows: ["Publish WASM"]
types:
- completed

jobs:
deploy:
name: 'Deploy to Netlify'
runs-on: ubuntu-latest
environment:
name: netlify
url: ${{ steps.deploy.outputs.deploy-url }}
steps:
- uses: actions/checkout@v4
with:
ref: gh-pages

- name: Deploy to Netlify
id: deploy
uses: nwtgck/actions-netlify@v3.0
with:
publish-dir: './wwwroot'
production-deploy: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
45 changes: 45 additions & 0 deletions .github/workflows/publish-wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Publish WASM

on:
push:
branches: [ master ]
tags:
- 'v*'

env:
# Disable the .NET logo in the console output.
DOTNET_NOLOGO: true
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build.
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending .NET CLI telemetry to Microsoft.
DOTNET_CLI_TELEMETRY_OPTOUT: true

jobs:
publish-wasm:
name: Publish WASM
runs-on: warp-ubuntu-latest-x64-16x
# NativeAOT (clang) requires > 16 GB RAM, so GitHub Runners are not enough
steps:
- name: Setup
uses: butr/actions-common-setup@v2
with:
github-token: ${{secrets.GITHUB_TOKEN}}

- name: Setup .NET 9
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x.x

- name: Run _build
run: >-
dotnet workload install wasm-tools;

dotnet publish src/BUTR.CrashReport.Renderer.ImGui.WASM/BUTR.CrashReport.Renderer.ImGui.WASM.csproj --configuration Release -o "./site";

- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: ./site
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57 changes: 0 additions & 57 deletions .github/workflows/publish.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[submodule "external/Utf8StringInterpolation"]
path = external/Utf8StringInterpolation
url = https://github.com/Cysharp/Utf8StringInterpolation
branch = main
[submodule "external/ZString"]
path = external/ZString
url = https://github.com/Cysharp/ZString
branch = master
19 changes: 16 additions & 3 deletions build/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

<!--Development Variables-->
<PropertyGroup>
<GITHUB_RUN_NUMBER Condition="$(GITHUB_RUN_NUMBER) == ''">7</GITHUB_RUN_NUMBER>
<Version>14.0.0.$(GITHUB_RUN_NUMBER)</Version>
<GITHUB_RUN_NUMBER Condition="$(GITHUB_RUN_NUMBER) == ''">0</GITHUB_RUN_NUMBER>
<Version>15.0.0.$(GITHUB_RUN_NUMBER)</Version>
<LangVersion>11.0</LangVersion>
<Nullable>enable</Nullable>

Expand All @@ -13,7 +13,20 @@

<DefineConstants>$(DefineConstants);BUTRCRASHREPORT_ENABLEWARNINGS;</DefineConstants>

<NoWarn>$(NoWarn);NU1701</NoWarn>
<NoWarn>$(NoWarn);NU1701;MSB4011</NoWarn>

<EmbedUntrackedSources>true</EmbedUntrackedSources>
<DebugType>embedded</DebugType>

<ImGuiVersion>1.91.0.1</ImGuiVersion>
<ImGuiMiscVersion>1.91.0.46</ImGuiMiscVersion>
<GlfwVersion>3.4.0</GlfwVersion>
<SdlVersion>2.30.8</SdlVersion>
<SilkNETVersion>2.22.0</SilkNETVersion>
</PropertyGroup>

<PropertyGroup Condition="$(Configuration) != 'Debug'">
<EmbedAllSources>true</EmbedAllSources>
</PropertyGroup>

<!--GitHub Actions-->
Expand Down
5 changes: 5 additions & 0 deletions external/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
root = true

[*]
generated_code = true
ij_formatter_enabled = false
7 changes: 7 additions & 0 deletions external/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project>

<PropertyGroup>
<IsPackable>false</IsPackable>
</PropertyGroup>

</Project>
1 change: 1 addition & 0 deletions external/Utf8StringInterpolation
1 change: 1 addition & 0 deletions external/ZString
Submodule ZString added at f4b39a
Binary file added resources/CascadiaCode.ttf
Binary file not shown.
Binary file added resources/CascadiaCode.ttf.compressed
Binary file not shown.
Loading