Skip to content

Add cross-platform CI/CD build workflow (Linux, macOS, Windows)#2

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/make-buildable-for-linux-macos
Draft

Add cross-platform CI/CD build workflow (Linux, macOS, Windows)#2
Copilot wants to merge 2 commits into
mainfrom
copilot/make-buildable-for-linux-macos

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 18, 2026

The project had no CI and the Inno Setup script had a hardcoded developer machine path, making automated and cross-platform builds impossible.

Changes

  • .github/workflows/build.yml — New workflow triggering on every push and PR across all branches. Matrix builds on windows, linux, and macos:

    • All runners: .NET 8 restore → dotnet publish -r win-x64 --self-contained false → upload binary artifact named LegacyConsolePackEditor-{windows|linux|macos}
    • Windows only: additionally runs Inno Setup and uploads LegacyConsolePackEditor-Installer
  • LegacyConsolePackEditor.csproj — Added <EnableWindowsTargeting>true</EnableWindowsTargeting>, required for the .NET SDK to cross-compile net8.0-windows/WinForms targets on non-Windows hosts.

  • LegacyConsolePackEditorInstaller.iss — Replaced hardcoded C:\Users\eolia\... with an overridable default; CI passes the path via command-line flag:

    #ifndef MySourceDir
      #define MySourceDir "bin\Release\net8.0-windows\win-x64\publish"
    #endif
    

    CI invocation: iscc /DMySourceDir=publish LegacyConsolePackEditorInstaller.iss

Original prompt

Yo! Can you make this buildable for Linux and if possible MacOS...
And also make it auto build when I push, feel free to use the .iss setup script for help.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Co-authored-by: TNTaddicted <131607911+TNTaddicted@users.noreply.github.com>
Copilot AI changed the title [WIP] Add build support for Linux and MacOS Add cross-platform CI/CD build workflow (Linux, macOS, Windows) Mar 18, 2026
Copilot stopped work on behalf of TNTaddicted due to an error March 18, 2026 07:12
@TNTaddicted TNTaddicted reopened this Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants