Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Itch app integration on Linux #2076

Closed
sprunk opened this issue Mar 9, 2018 · 3 comments
Closed

Itch app integration on Linux #2076

sprunk opened this issue Mar 9, 2018 · 3 comments
Assignees
Labels
distribution Related to Steam, itch, etc enhancement

Comments

@sprunk
Copy link
Member

sprunk commented Mar 9, 2018

See ZeroK-RTS/Zero-K#2820:

@aaronfranke

Currently, the game has an Itch.io page and hosts setup files such as a .deb and a .tar.gz with an installer script, but it cannot be downloaded through the Itch app due to this.

Instead of hosting setup files, you should host archives. A .zip file is recognized by the Itch app, and it will extract and search for an executable file, then run that.

Itch does a pretty good job at this, but unfortunately it currently does not have an official way to launch Mono games on Mac/Linux: itchio/itch#1606 I have a work-around strategy if you wish, otherwise we can wait for Itch to design a better way to launch Mono games.


@Sortale

linux install already come in a zip [the 600-700mb package title Linux portable] which is the default for Linux [last I checked]
and have a bash script that does pretty much the same [I haven't really check what you did so disregard this sentence as required(I am not really a Dev [due to lack of intelligent/skill])] as your solution.

I tried asking appimage Dev for help making a truly portable non root require solution but was declined
https://discourse.appimage.org/t/question-on-creating-mono-appimage/306/2
Monokick start experiment to do the same was a failure, which was not surprising considering it's last updated 3 years ago
though it maybe because of my incompetent as well


@Kingraptor

The portable installer is currently tagged Win only, going by the icon on the page. (If it can't be ensured to install the needed Linux dependencies, should probably stay that way.)

Your Mono launch PR for OpenRA looks like it might do the trick, thanks for the pointer!


@Kingraptor

I've uploaded a portable .zip downloadable through the Itch app, but it seems to have trouble finding the executable:

[2018-03-04 @ 20:50:51.158] [launch] reconfiguring because of problem with cave: game.install.no_executables_found
[2018-03-04 @ 20:50:51.161] [configure] configuring /home/histidine/.config/itch/apps/Zero-K
[2018-03-04 @ 20:51:17.475] [configure] native-configure yielded execs: []
[2018-03-04 @ 20:51:17.482] [configure/compute-size] computing size of /home/histidine/.config/itch/apps/Zero-K
[2018-03-04 @ 20:51:17.564] [configure] total size of /home/histidine/.config/itch/apps/Zero-K: 681.68 MB (714794809 bytes)
[2018-03-04 @ 20:51:17.575] [launch] crashed with The game could not be configured (game.install.no_executables_found)
[2018-03-04 @ 20:51:17.575] [launch] The game could not be configured (game.install.no_executables_found)
[2018-03-04 @ 20:51:17.576] [diego] diego here, looking around
Linux ubuntuHome 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
model name	: Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
model name	: Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
model name	: Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
model name	: Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.4 LTS
Release:	16.04
Codename:	xenial
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1c81 (rev a1)
diego out

Tried with no manifest (this is the latest download) and the following manifest:

# made with help from Aaron Franke

# Windows launch configs
[[actions]]
os = "windows"
name = "play"
path = "Zero-K.exe"
sandbox = true

# Linux launch configs
[[actions]]
os = "linux"
name = "play"
path = "mono"
args = ["Zero-K.exe"]
sandbox = true

[[actions]]
os = "linux"
name = "Play (check dependencies)"
path = "Zero-K.sh"
sandbox = true
console = true

# Website link (all OSes)
[[actions]]
name = "website"
path = "https://zero-k.info"
sandbox = true

# Wiki (all OSes)
[[actions]]
name = "wiki"
path = "https://zero-k.info/mediawiki/"
sandbox = true
@aaronfranke
Copy link

aaronfranke commented Apr 26, 2018

The developer of Itch noticed that the Zero-K.sh file doesn't include a shebang, uses Windows line endings, and uses sudo, and thus isn't compatible. itchio/itch#1608 (comment)

Proper Mono support is still WIP, but this is worth fixing in the meantime.

@Anarchid
Copy link
Member

We've had partial success with getting an mkbundle'd build with a reduced wrapper. Perhaps this is a better approach than trying to find/install/execute mono on all OSes.

@Histidine91 Histidine91 self-assigned this Apr 26, 2018
@Histidine91
Copy link
Member

@Anarchid: Great idea, should have thought of that myself.

With help from itch's Amos, I was able to make a working portable install, which runs off the bat without needing to sudo anything. (Thanks to @aaronfranke as well)

Issue resolved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distribution Related to Steam, itch, etc enhancement
Projects
None yet
Development

No branches or pull requests

4 participants