From d65a3c9eaf1ce54edd5f3dc27d47bbb1490f1766 Mon Sep 17 00:00:00 2001 From: Joshua Fern Date: Sat, 4 Jul 2020 15:55:37 -0700 Subject: [PATCH] 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. --- gulp/standalone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulp/standalone.js b/gulp/standalone.js index f5126780..3d97efd1 100644 --- a/gulp/standalone.js +++ b/gulp/standalone.js @@ -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