craft-native 0.0.350 → 0.0.351
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +14 -2
- package/dist/index.cjs +14 -2
- package/dist/index.js +14 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -356,7 +356,19 @@ async function packageMacOS(config, outDir) {
|
|
|
356
356
|
results.push({ success: true, platform: "macos", format: "app", outputPath: appBundlePath });
|
|
357
357
|
if (opts.dmg !== false) {
|
|
358
358
|
const outputPath = join2(outDir, `${name}-${version}.dmg`);
|
|
359
|
-
|
|
359
|
+
let dmgResult = await createDMG({ appBundlePath, outputPath, volumeName: name });
|
|
360
|
+
if (dmgResult.success && opts.signIdentity) {
|
|
361
|
+
const signed = await runTool("codesign", codesignArguments({
|
|
362
|
+
path: outputPath,
|
|
363
|
+
identity: opts.signIdentity,
|
|
364
|
+
keychain: opts.signingKeychain,
|
|
365
|
+
hardenedRuntime: false,
|
|
366
|
+
deep: false
|
|
367
|
+
}));
|
|
368
|
+
const verified = signed.success ? await runTool("codesign", ["--verify", "--strict", outputPath]) : signed;
|
|
369
|
+
if (!verified.success)
|
|
370
|
+
dmgResult = { success: false, error: verified.error };
|
|
371
|
+
}
|
|
360
372
|
results.push({
|
|
361
373
|
success: dmgResult.success,
|
|
362
374
|
platform: "macos",
|
|
@@ -3035,7 +3047,7 @@ function pinCraftNativeDependency(packagePath, craftVersion) {
|
|
|
3035
3047
|
`);
|
|
3036
3048
|
}
|
|
3037
3049
|
// package.json
|
|
3038
|
-
var version = "0.0.
|
|
3050
|
+
var version = "0.0.351";
|
|
3039
3051
|
|
|
3040
3052
|
// bin/cli.ts
|
|
3041
3053
|
var spawnedFrom = process6.env[CRAFT_CLI_SPAWN_MARKER];
|
package/dist/index.cjs
CHANGED
|
@@ -375,7 +375,7 @@ function craftBinaryNotFoundMessage(triedPath) {
|
|
|
375
375
|
`);
|
|
376
376
|
}
|
|
377
377
|
// package.json
|
|
378
|
-
var version = "0.0.
|
|
378
|
+
var version = "0.0.351";
|
|
379
379
|
|
|
380
380
|
// src/sdk-version.ts
|
|
381
381
|
var SDK_VERSION = version;
|
|
@@ -722,7 +722,19 @@ async function packageMacOS(config, outDir) {
|
|
|
722
722
|
results.push({ success: true, platform: "macos", format: "app", outputPath: appBundlePath });
|
|
723
723
|
if (opts.dmg !== false) {
|
|
724
724
|
const outputPath = import_path.join(outDir, `${name}-${version}.dmg`);
|
|
725
|
-
|
|
725
|
+
let dmgResult = await createDMG({ appBundlePath, outputPath, volumeName: name });
|
|
726
|
+
if (dmgResult.success && opts.signIdentity) {
|
|
727
|
+
const signed = await runTool("codesign", codesignArguments({
|
|
728
|
+
path: outputPath,
|
|
729
|
+
identity: opts.signIdentity,
|
|
730
|
+
keychain: opts.signingKeychain,
|
|
731
|
+
hardenedRuntime: false,
|
|
732
|
+
deep: false
|
|
733
|
+
}));
|
|
734
|
+
const verified = signed.success ? await runTool("codesign", ["--verify", "--strict", outputPath]) : signed;
|
|
735
|
+
if (!verified.success)
|
|
736
|
+
dmgResult = { success: false, error: verified.error };
|
|
737
|
+
}
|
|
726
738
|
results.push({
|
|
727
739
|
success: dmgResult.success,
|
|
728
740
|
platform: "macos",
|
package/dist/index.js
CHANGED
|
@@ -117,7 +117,7 @@ function craftBinaryNotFoundMessage(triedPath) {
|
|
|
117
117
|
`);
|
|
118
118
|
}
|
|
119
119
|
// package.json
|
|
120
|
-
var version = "0.0.
|
|
120
|
+
var version = "0.0.351";
|
|
121
121
|
|
|
122
122
|
// src/sdk-version.ts
|
|
123
123
|
var SDK_VERSION = version;
|
|
@@ -478,7 +478,19 @@ async function packageMacOS(config, outDir) {
|
|
|
478
478
|
results.push({ success: true, platform: "macos", format: "app", outputPath: appBundlePath });
|
|
479
479
|
if (opts.dmg !== false) {
|
|
480
480
|
const outputPath = join2(outDir, `${name}-${version}.dmg`);
|
|
481
|
-
|
|
481
|
+
let dmgResult = await createDMG({ appBundlePath, outputPath, volumeName: name });
|
|
482
|
+
if (dmgResult.success && opts.signIdentity) {
|
|
483
|
+
const signed = await runTool("codesign", codesignArguments({
|
|
484
|
+
path: outputPath,
|
|
485
|
+
identity: opts.signIdentity,
|
|
486
|
+
keychain: opts.signingKeychain,
|
|
487
|
+
hardenedRuntime: false,
|
|
488
|
+
deep: false
|
|
489
|
+
}));
|
|
490
|
+
const verified = signed.success ? await runTool("codesign", ["--verify", "--strict", outputPath]) : signed;
|
|
491
|
+
if (!verified.success)
|
|
492
|
+
dmgResult = { success: false, error: verified.error };
|
|
493
|
+
}
|
|
482
494
|
results.push({
|
|
483
495
|
success: dmgResult.success,
|
|
484
496
|
platform: "macos",
|