@@ -215,24 +215,27 @@ function gulptasksStandalone($, gulp) {
215
215
( ) => {
216
216
const appFile = path . join ( tempDestDir , "shapez-darwin-x64" ) ;
217
217
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
-
225
218
console . warn ( "++ Signing ++" ) ;
226
- console . warn ( "Signing steam_appid.txt" ) ;
227
219
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
+ }
236
239
237
240
console . warn ( "Base dir:" , appFile ) ;
238
241
0 commit comments