Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions LegacyConsolePackEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationIcon>Cactus_1.13.ico</ApplicationIcon>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<AssemblyTitle>MCLCE Texture Pack Editor</AssemblyTitle>
<AssemblyProduct>MCLCE Texture Pack Editor</AssemblyProduct>
<RootNamespace>MCLCETexturePackEditor</RootNamespace>
Expand Down
4 changes: 3 additions & 1 deletion LegacyConsolePackEditorInstaller.iss
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
Loading