question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🏁🍎🐧 Add Mono to prerequisites list

See original GitHub issue

OpenRA requires the Mono framework (>= 3.2) to be installed. Other games likely need it too.

https://github.com/OpenRA/OpenRA/wiki/Installation

https://itch.io/docs/itch/integrating/prereqs/

https://github.com/itchio/itch/issues?q=label%3Aprereqs

On Windows, Mono is available as an MSI package. However, on Windows, many Mono games, including OpenRA, can also be ran if the .NET framework is installed. We could either have Itch install Mono regardless of .NET, install Mono if .NET is missing, or install .NET when Mono is listed as a prerequisite. To be safe, it would make sense to install Mono regardless.

On MacOS, Mono is available as a PKG package. Once installed, the executable is located at
/Library/Frameworks/Mono.framework/Versions/Current/bin/mono

On Ubuntu & Debian, Itch could just run sudo apt install mono-complete -y to install Mono via apt. For other Linux distributions, Mono is probably also offered through the package manager.
Once installed, the executable is located at /usr/bin/mono

As you’ve already ported the install logic to butler (https://github.com/itchio/itch/issues/1530) this should be implementable now.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:16

github_iconTop GitHub Comments

1reaction
Mailaendercommented, Dec 27, 2020

but they still depend on the system having the correct libraries

That is actually not true. Mono is bundled for both Linux and macOS.

1reaction
aaronfrankecommented, Mar 3, 2018

I believe Mono apps should not have a problem with forwards compatibility. OpenRA, a Mono 3.2 app, runs just fine with Ubuntu 16.04’s Mono, 4.2.1.

EDIT: I also installed Mono 5.8.0.127 (as Godot requires >= 5.4.1) and I can confirm that OpenRA, using Mono 3.2, still works just fine on 5.8.

2nd EDIT: 5.10 also works.

In my experiments with OpenRA, trying to call the system’s Mono directly (/usr/bin/mono) via Itch with an Itch app manifest will set the working directory to /usr/bin which is obviously not right. When I tried to call it indirectly, with Itch calling a script which calls Mono, it just opens the script in a text file.

The method I’m using right now is to have a file called mono which is a symlink to /usr/bin/mono and ship this with the game. Then the Itch manifest calls “mono game.exe” This is obviously not ideal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Download - Stable - Mono Project
1 Add the Mono repository to your system. The package repository hosts the packages you need, add it with the following commands. Note:...
Read more >
Chapter 1. Getting Mono Running - O'Reilly
Users of Gentoo Linux (on x86 or PowerPC) should compile and install Mono like ... The minimum prerequisites for compiling Mono, aside from...
Read more >
Transcript Entry - Liaison International
Complete the Colleges Attended section before entering your courses. Report all courses on your transcripts, not just prerequisites. Be sure to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found