1
0
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:
Joshua Fern 2020-07-04 15:55:37 -07:00 committed by GitHub
parent 1837e72952
commit d65a3c9eaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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