From 0d74af92a75d52efa8a284389f10f26d799b7b4e Mon Sep 17 00:00:00 2001 From: tobspr Date: Mon, 6 Jul 2020 15:29:17 +0200 Subject: [PATCH] Further mac os fixes --- gulp/standalone.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gulp/standalone.js b/gulp/standalone.js index 22a6409c..c4f33417 100644 --- a/gulp/standalone.js +++ b/gulp/standalone.js @@ -158,7 +158,7 @@ function gulptasksStandalone($, gulp, buildFolder) { fs.writeFileSync(path.join(appPath, ".itch.toml"), tomlFile); - if (platform === "linux" || platform === "darwin") { + if (platform === "linux") { fs.writeFileSync( path.join(appPath, "play.sh"), '#!/usr/bin/env bash\n./shapezio --no-sandbox "$@"\n' @@ -181,6 +181,15 @@ function gulptasksStandalone($, gulp, buildFolder) { if (platform === "darwin") { // Clear up framework folders + fs.writeFileSync( + path.join(appPath, "play.sh"), + '#!/usr/bin/env bash\n./shapez.io-standalone.app/Contents/MacOS/shapezio --no-sandbox "$@"\n' + ); + fs.chmodSync(path.join(appPath, "play.sh"), 0o775); + fs.chmodSync( + path.join(appPath, "shapez.io-standalone.app", "Contents", "MacOS", "shapezio"), + 0o775 + ); const finalPath = path.join(appPath, "shapez.io-standalone.app");