mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Facilitate Launch Options in ./play.sh
Small modification to play.sh that allows launch options to be passed, i.e. --no-sandbox. This enables the game to work with Steam in a Flatpak or other nosuid environments.
This commit is contained in:
parent
1837e72952
commit
d65a3c9eaf
@ -159,7 +159,7 @@ function gulptasksStandalone($, gulp, buildFolder) {
|
||||
fs.writeFileSync(path.join(appPath, ".itch.toml"), tomlFile);
|
||||
|
||||
if (platform === "linux" || platform === "darwin") {
|
||||
fs.writeFileSync(path.join(appPath, "play.sh"), "#!/usr/bin/env bash\n./shapezio\n");
|
||||
fs.writeFileSync(path.join(appPath, "play.sh"), "#!/usr/bin/env bash\n./shapezio "$@"\n");
|
||||
fs.chmodSync(path.join(appPath, "play.sh"), 0o775);
|
||||
} else if (platform === "win32") {
|
||||
// Optional: Create a playable copy. Shouldn't be required
|
||||
|
Loading…
Reference in New Issue
Block a user