Skip to content

Commit c77e428

Browse files
committed
Fix darwin builds on gog
1 parent b0c9894 commit c77e428

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

gulp/standalone.js

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -215,24 +215,27 @@ function gulptasksStandalone($, gulp) {
215215
() => {
216216
const appFile = path.join(tempDestDir, "shapez-darwin-x64");
217217
const appFileInner = path.join(appFile, "shapez.app");
218-
const appIdDest = path.join(
219-
path.join(appFileInner, "Contents", "MacOS"),
220-
"steam_appid.txt"
221-
);
222-
// console.warn("++ Preparing ++");
223-
// fse.copySync(path.join(tempDestBuildDir, "steam_appid.txt"), appIdDest);
224-
225218
console.warn("++ Signing ++");
226-
console.warn("Signing steam_appid.txt");
227219

228-
execSync(
229-
`codesign --force --verbose --options runtime --timestamp --no-strict --sign "${
230-
process.env.SHAPEZ_CLI_APPLE_CERT_NAME
231-
}" --entitlements "${path.join(__dirname, "entitlements.plist")}" ${appIdDest}`,
232-
{
233-
cwd: appFile,
234-
}
235-
);
220+
if (variantData.steamAppId) {
221+
const appIdDest = path.join(
222+
path.join(appFileInner, "Contents", "MacOS"),
223+
"steam_appid.txt"
224+
);
225+
// console.warn("++ Preparing ++");
226+
// fse.copySync(path.join(tempDestBuildDir, "steam_appid.txt"), appIdDest);
227+
228+
console.warn("Signing steam_appid.txt");
229+
230+
execSync(
231+
`codesign --force --verbose --options runtime --timestamp --no-strict --sign "${
232+
process.env.SHAPEZ_CLI_APPLE_CERT_NAME
233+
}" --entitlements "${path.join(__dirname, "entitlements.plist")}" ${appIdDest}`,
234+
{
235+
cwd: appFile,
236+
}
237+
);
238+
}
236239

237240
console.warn("Base dir:", appFile);
238241

0 commit comments

Comments
 (0)