Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Itch app integration on Linux

Open aaronfranke opened this issue 8 years ago • 4 comments

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: https://github.com/itchio/itch/issues/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.

aaronfranke avatar Mar 03 '18 08:03 aaronfranke

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

Sortale avatar Mar 04 '18 04:03 Sortale

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!

Histidine91 avatar Mar 04 '18 04:03 Histidine91

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

Histidine91 avatar Mar 04 '18 12:03 Histidine91

Belongs to infra https://github.com/ZeroK-RTS/Zero-K-Infrastructure/issues/2076

sprunk avatar Mar 09 '18 18:03 sprunk