From 8008bd084972ecd102c708df9901364f289d138d Mon Sep 17 00:00:00 2001 From: colinator27 <17358554+colinator27@users.noreply.github.com> Date: Tue, 27 Aug 2024 12:07:45 -0400 Subject: [PATCH 1/2] Manually add DEBUG constant to nightly builds --- .github/workflows/publish_gui_nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_gui_nightly.yml b/.github/workflows/publish_gui_nightly.yml index 3bdd92e43..2c5ce1140 100644 --- a/.github/workflows/publish_gui_nightly.yml +++ b/.github/workflows/publish_gui_nightly.yml @@ -38,7 +38,7 @@ jobs: dotnet build UndertaleModToolUpdater --no-restore - name: Publish ${{ matrix.os }} GUI run: | - dotnet publish UndertaleModTool -c ${{ matrix.configuration }} -r win-x64 -p:DefineConstants="SHOW_COMMIT_HASH" --self-contained ${{ matrix.bundled }} -p:PublishSingleFile=${{ matrix.singlefile }} --output ${{ matrix.os }} + dotnet publish UndertaleModTool -c ${{ matrix.configuration }} -r win-x64 -p:DefineConstants="SHOW_COMMIT_HASH;DEBUG" --self-contained ${{ matrix.bundled }} -p:PublishSingleFile=${{ matrix.singlefile }} --output ${{ matrix.os }} dotnet publish UndertaleModToolUpdater -c ${{ matrix.configuration }} -r win-x64 --self-contained ${{ matrix.bundled }} -p:PublishSingleFile=false --output ${{ matrix.os }}/Updater - name: Copy external files run: | From d0a807d04008d601bfa5a6c6ee8c39b1f8ceeefa Mon Sep 17 00:00:00 2001 From: colinator27 <17358554+colinator27@users.noreply.github.com> Date: Sun, 1 Dec 2024 18:47:37 -0500 Subject: [PATCH 2/2] Add comment regarding debug macro --- .github/workflows/publish_gui_nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_gui_nightly.yml b/.github/workflows/publish_gui_nightly.yml index 2c5ce1140..0c6f8794e 100644 --- a/.github/workflows/publish_gui_nightly.yml +++ b/.github/workflows/publish_gui_nightly.yml @@ -37,7 +37,7 @@ jobs: dotnet build UndertaleModTool --no-restore dotnet build UndertaleModToolUpdater --no-restore - name: Publish ${{ matrix.os }} GUI - run: | + run: | # FIXME: debug constant should automatically be applied, but for some reason it isn't dotnet publish UndertaleModTool -c ${{ matrix.configuration }} -r win-x64 -p:DefineConstants="SHOW_COMMIT_HASH;DEBUG" --self-contained ${{ matrix.bundled }} -p:PublishSingleFile=${{ matrix.singlefile }} --output ${{ matrix.os }} dotnet publish UndertaleModToolUpdater -c ${{ matrix.configuration }} -r win-x64 --self-contained ${{ matrix.bundled }} -p:PublishSingleFile=false --output ${{ matrix.os }}/Updater - name: Copy external files