Skip to content

Commit

Permalink
v15
Browse files Browse the repository at this point in the history
Removed assembly references and type references
Improved the decompiler backend - we now use debug data if available instead of decompiling C#
Created a RuntimePatch abstraction to cover both Harmony and MonoMod patches
Improved the CrashReport Info to Model flow
Removed Bannerlord code
Improved ImGui bindings
Added a simplified ImGuiColorTextEditNet implementation
Added PrismSharp.Core with a precompiled RegEx
Fixed ImGui scaling issue
  • Loading branch information
Aragas committed Dec 10, 2024
1 parent fcddc8a commit 331876d
Show file tree
Hide file tree
Showing 360 changed files with 25,886 additions and 7,487 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/publish-wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish

on:
push:
paths:
- '.github/workflows/publish-wasm.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-wasm:
name: Publish WASM
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 build external/prism-sharp/PrismSharp.SourceGenerator/PrismSharp.SourceGenerator.csproj --configuration Release;
dotnet build external/prism-sharp/PrismSharp.RegExCompiler/PrismSharp.RegExCompiler.csproj --configuration Release;
dotnet build external/prism-sharp/PrismSharp.Core/PrismSharp.Core.csproj --configuration Release;
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 }}
26 changes: 20 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,36 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}

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

- name: Run _build
run: >-
dotnet build external/prism-sharp/PrismSharp.SourceGenerator/PrismSharp.SourceGenerator.csproj --configuration Release;
dotnet build external/prism-sharp/PrismSharp.RegExCompiler/PrismSharp.RegExCompiler.csproj --configuration Release;
dotnet build external/prism-sharp/PrismSharp.Core/PrismSharp.Core.csproj --configuration Release;
dotnet pack src/BUTR.CrashReport.Models/BUTR.CrashReport.Models.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.Tool/BUTR.CrashReport.Tool.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.ImGui/BUTR.CrashReport.Renderer.ImGui.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.Bannerlord.Source/BUTR.CrashReport.Bannerlord.Source.csproj --configuration Release -o "./packages";
dotnet pack src/BUTR.CrashReport.Bannerlord.Parser/BUTR.CrashReport.Bannerlord.Parser.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.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
Expand Down
12 changes: 12 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[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
[submodule "external/prism-sharp"]
path = external/prism-sharp
url = https://github.com/BUTR/prism-sharp.git
branch = main
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>
<ImGuiSourceVersion>1.91.0</ImGuiSourceVersion>
<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
1 change: 1 addition & 0 deletions external/prism-sharp
Submodule prism-sharp added at 7c62d6
1 change: 1 addition & 0 deletions lib/cimgui
Submodule cimgui added at 35a4e8

This file was deleted.

This file was deleted.

Loading

0 comments on commit 331876d

Please sign in to comment.