Content Patcher

Content Patcher

378k Downloads

[Lookup Anything] add support for Linux and Mac

Pathoschild opened this issue · 7 comments

commented

Add support for Linux and Mac. This involves the following changes:

  • Preparation:
    • Add the default Linux/Mac paths to the game path detection.
    • Document the compile steps automated by the Windows-only build script.
  • Adjust build process:
    • Detect the platform during the build process.
    • On Linux/Mac, swap the XNA references for MonoGame.
    • On Linux/Mac, disable the mod deploy script.

Thanks to @kriana and @vizv for doing the initial research and creating a Mac fork and Linux fork respectively!

commented

:3
I'm here to help and test!

commented

Lookup Anything is now almost crossplatform as of 97fb955 (including updated compile instructions for Linux/Mac users), with help from @kriana for testing.

The only remaining issue is that MonoDevelop can't find the references — I'm not sure yet if it's an issue with <GamePath> or something with the references themselves.

commented

I created an experimental NuGet package that automates the project/build configuration for crossplatform mods.

To write a crossplatform mod, you just:

  • create an empty library project;
  • reference the NuGet package;
  • and write your code.

I tentatively migrated Lookup Anything to this new framework.

commented

Confirmed working on Mac by @kriana; Linux pending.

commented

Confirmed working on Linux by @rumangerst. More testing welcome, to make sure it works on all computers. :)

commented

Cool! I don't have time right now but I'll check that.

commented

Linux/Mac modding is now documented (see using mods and creating a SMAPI mod), and Lookup Anything is now crossplatform. The next version will be officially released on Linux, Mac, and Windows.