From 3a71072f089c1750d0450172c600a185209e00ac Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Mar 2026 07:03:35 +0000 Subject: [PATCH 1/2] Initial plan From 37d81786ba6bf95cc50bf4272bb80c0107df4997 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Mar 2026 07:10:20 +0000 Subject: [PATCH 2/2] Add cross-platform CI/CD build workflow and fix .iss source path Co-authored-by: TNTaddicted <131607911+TNTaddicted@users.noreply.github.com> --- .github/workflows/build.yml | 56 ++++++++++++++++++++++++++++ LegacyConsolePackEditor.csproj | 1 + LegacyConsolePackEditorInstaller.iss | 4 +- 3 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..dfbaac0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,56 @@ +name: Build + +on: + push: + branches: ["**"] + pull_request: + branches: ["**"] + +jobs: + build: + name: Build (${{ matrix.name }}) + permissions: + contents: read + strategy: + fail-fast: false + matrix: + include: + - os: windows-latest + name: windows + - os: ubuntu-latest + name: linux + - os: macos-latest + name: macos + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup .NET 8 + uses: actions/setup-dotnet@v4 + with: + dotnet-version: "8.0.x" + + - name: Restore dependencies + run: dotnet restore + + - name: Publish (win-x64) + run: dotnet publish -c Release -r win-x64 --self-contained false -o publish/ + + - name: Upload build artifact + uses: actions/upload-artifact@v4 + with: + name: LegacyConsolePackEditor-${{ matrix.name }} + path: publish/ + + - name: Build Windows installer (Inno Setup) + if: matrix.name == 'windows' + run: iscc /DMySourceDir=publish LegacyConsolePackEditorInstaller.iss + + - name: Upload Windows installer artifact + if: matrix.name == 'windows' + uses: actions/upload-artifact@v4 + with: + name: LegacyConsolePackEditor-Installer + path: LegacyConsolePackEditor-Setup.exe diff --git a/LegacyConsolePackEditor.csproj b/LegacyConsolePackEditor.csproj index 0364b4c..2def62d 100644 --- a/LegacyConsolePackEditor.csproj +++ b/LegacyConsolePackEditor.csproj @@ -7,6 +7,7 @@ true enable Cactus_1.13.ico + true MCLCE Texture Pack Editor MCLCE Texture Pack Editor MCLCETexturePackEditor diff --git a/LegacyConsolePackEditorInstaller.iss b/LegacyConsolePackEditorInstaller.iss index 6b427f7..43ac99c 100644 --- a/LegacyConsolePackEditorInstaller.iss +++ b/LegacyConsolePackEditorInstaller.iss @@ -1,7 +1,9 @@ #define MyAppName "MC LCE TP Editor" #define MyAppVersion "0.3" #define MyAppExeName "LegacyConsolePackEditor.exe" -#define MySourceDir "C:\Users\eolia\minecraft-legacy-editor\LegacyConsolePackEditor\bin\Release\net8.0-windows" +#ifndef MySourceDir + #define MySourceDir "bin\Release\net8.0-windows\win-x64\publish" +#endif [Setup] AppId={{C8E7B3C2-4D3F-4B6A-9A1B-9F9D11B0A001}