1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Update standalone build script

This commit is contained in:
tobspr
2020-07-06 08:14:44 +02:00
parent 4896e9b89e
commit 6c6ad6af22
2 changed files with 6 additions and 3 deletions

View File

@@ -159,7 +159,10 @@ 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 --no-sandbox "$@"\n'
);
fs.chmodSync(path.join(appPath, "play.sh"), 0o775);
} else if (platform === "win32") {
// Optional: Create a playable copy. Shouldn't be required