peachsim 0.1.746 → 0.1.747
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/cli/cloud-client.ts +28 -12
- package/cli/commands/install-desktop.ts +0 -25
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +31 -7
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +31 -7
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +2 -1
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/desktop-host-delivery.ts +23 -0
package/cli/cloud-client.ts
CHANGED
|
@@ -499,18 +499,31 @@ interface MetroAssetSearch {
|
|
|
499
499
|
*
|
|
500
500
|
* a verified placement's bytes reproduce Metro's own digest, so it is the right
|
|
501
501
|
* content wherever it was read from and two directories that both verified it
|
|
502
|
-
* are not in conflict.
|
|
503
|
-
*
|
|
504
|
-
*
|
|
502
|
+
* are not in conflict. unverified choices are keyed by content for each
|
|
503
|
+
* descriptor and scale: nested candidates can choose different byte-identical
|
|
504
|
+
* copies. keeping descriptor positions prevents swapped assets from agreeing.
|
|
505
505
|
*/
|
|
506
|
-
function
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
)
|
|
512
|
-
|
|
513
|
-
|
|
506
|
+
function unverifiedContentKey(
|
|
507
|
+
dest: MetroAssetDest,
|
|
508
|
+
fileDigests: Map<string, string>,
|
|
509
|
+
): string {
|
|
510
|
+
return JSON.stringify(
|
|
511
|
+
dest.placements.map((placement) =>
|
|
512
|
+
placement.verified
|
|
513
|
+
? null
|
|
514
|
+
: [...placement.files]
|
|
515
|
+
.map(([scale, relative]): [number, string] => {
|
|
516
|
+
const file = join(dest.directory, relative)
|
|
517
|
+
let digest = fileDigests.get(file)
|
|
518
|
+
if (digest === undefined) {
|
|
519
|
+
digest = createHash('sha256').update(readFileSync(file)).digest('hex')
|
|
520
|
+
fileDigests.set(file, digest)
|
|
521
|
+
}
|
|
522
|
+
return [scale, digest]
|
|
523
|
+
})
|
|
524
|
+
.sort(([first], [second]) => first - second),
|
|
525
|
+
),
|
|
526
|
+
)
|
|
514
527
|
}
|
|
515
528
|
|
|
516
529
|
/**
|
|
@@ -596,7 +609,10 @@ function searchMetroAssetDest(
|
|
|
596
609
|
// a directory that confirmed nothing cannot outrank one that confirmed
|
|
597
610
|
// something, and when nothing anywhere confirmed, every claimant is a rival.
|
|
598
611
|
const rivals = holders.filter((holder) => holder.verified === best)
|
|
599
|
-
const
|
|
612
|
+
const fileDigests = new Map<string, string>()
|
|
613
|
+
const distinct = new Set(
|
|
614
|
+
rivals.map((rival) => unverifiedContentKey(rival.dest, fileDigests)),
|
|
615
|
+
)
|
|
600
616
|
const winner = rivals[0]
|
|
601
617
|
if (!winner) return { dest: null, searched, truncated, unconfirmed: false }
|
|
602
618
|
if (distinct.size > 1) {
|
|
@@ -415,11 +415,6 @@ examples:
|
|
|
415
415
|
console.log(' peach open <target> Open a demo or bundle in it')
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
// the native host's identity, checked on the installed copy: the manifest
|
|
419
|
-
// checksum proves the bytes are the published ones, this proves who signed them.
|
|
420
|
-
const NATIVE_HOST_REQUIREMENT =
|
|
421
|
-
'=anchor apple generic and identifier "dev.contrast.peach-desktop" and certificate leaf[subject.OU] = "399WY8X9HY" and certificate leaf[field.1.2.840.113635.100.6.1.13] exists'
|
|
422
|
-
|
|
423
418
|
async function installNativeHost(args: string[], force: boolean): Promise<void> {
|
|
424
419
|
const channelIndex = args.indexOf('--channel')
|
|
425
420
|
const channel = channelIndex >= 0 ? args[channelIndex + 1] : undefined
|
|
@@ -440,30 +435,10 @@ async function installNativeHost(args: string[], force: boolean): Promise<void>
|
|
|
440
435
|
version,
|
|
441
436
|
channel: resolvedChannel,
|
|
442
437
|
force,
|
|
443
|
-
// the installed copy becomes active only once its signature checks out
|
|
444
|
-
setActive: false,
|
|
445
438
|
quiet: true,
|
|
446
439
|
}),
|
|
447
440
|
)
|
|
448
441
|
const app = join(result.runtimeDir, 'PeachDesktop.app')
|
|
449
|
-
if (result.installed) {
|
|
450
|
-
const signature = spawnSync('codesign', [
|
|
451
|
-
'--verify',
|
|
452
|
-
'--deep',
|
|
453
|
-
'--strict',
|
|
454
|
-
'-R',
|
|
455
|
-
NATIVE_HOST_REQUIREMENT,
|
|
456
|
-
app,
|
|
457
|
-
])
|
|
458
|
-
const notarization = spawnSync('spctl', ['--assess', '--type', 'execute', app])
|
|
459
|
-
if (signature.status !== 0 || notarization.status !== 0) {
|
|
460
|
-
rmSync(result.runtimeDir, { recursive: true, force: true })
|
|
461
|
-
throw new Error(
|
|
462
|
-
`version ${result.version} failed Developer ID or notarization verification`,
|
|
463
|
-
)
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
delivery.product.writeActiveRuntime(result.version)
|
|
467
442
|
console.log(
|
|
468
443
|
` ${success('✓')} Native desktop host ${result.version} ${result.installed ? 'installed' : 'already installed'} at ${app}`,
|
|
469
444
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -4555,10 +4555,20 @@ function placeMetroDescriptor(listing, descriptor) {
|
|
|
4555
4555
|
}
|
|
4556
4556
|
return { files, ambiguous, verified: false, mismatched: true };
|
|
4557
4557
|
}
|
|
4558
|
-
function
|
|
4559
|
-
return
|
|
4560
|
-
|
|
4561
|
-
|
|
4558
|
+
function unverifiedContentKey(dest, fileDigests) {
|
|
4559
|
+
return JSON.stringify(
|
|
4560
|
+
dest.placements.map(
|
|
4561
|
+
(placement) => placement.verified ? null : [...placement.files].map(([scale, relative2]) => {
|
|
4562
|
+
const file = (0, import_node_path25.join)(dest.directory, relative2);
|
|
4563
|
+
let digest = fileDigests.get(file);
|
|
4564
|
+
if (digest === void 0) {
|
|
4565
|
+
digest = (0, import_node_crypto11.createHash)("sha256").update((0, import_node_fs25.readFileSync)(file)).digest("hex");
|
|
4566
|
+
fileDigests.set(file, digest);
|
|
4567
|
+
}
|
|
4568
|
+
return [scale, digest];
|
|
4569
|
+
}).sort(([first], [second]) => first - second)
|
|
4570
|
+
)
|
|
4571
|
+
);
|
|
4562
4572
|
}
|
|
4563
4573
|
function searchMetroAssetDest(bundlePath, descriptors) {
|
|
4564
4574
|
const bundleDirectory = (0, import_node_path25.dirname)((0, import_node_path25.resolve)(bundlePath));
|
|
@@ -4624,7 +4634,10 @@ function searchMetroAssetDest(bundlePath, descriptors) {
|
|
|
4624
4634
|
}
|
|
4625
4635
|
const best = Math.max(...holders.map((holder) => holder.verified));
|
|
4626
4636
|
const rivals = holders.filter((holder) => holder.verified === best);
|
|
4627
|
-
const
|
|
4637
|
+
const fileDigests = /* @__PURE__ */ new Map();
|
|
4638
|
+
const distinct = new Set(
|
|
4639
|
+
rivals.map((rival) => unverifiedContentKey(rival.dest, fileDigests))
|
|
4640
|
+
);
|
|
4628
4641
|
const winner = rivals[0];
|
|
4629
4642
|
if (!winner) return { dest: null, searched, truncated, unconfirmed: false };
|
|
4630
4643
|
if (distinct.size > 1) {
|
|
@@ -8111,6 +8124,15 @@ function createRuntimeDelivery(product) {
|
|
|
8111
8124
|
}
|
|
8112
8125
|
return { version, channel, entry };
|
|
8113
8126
|
}
|
|
8127
|
+
function isVerifiedInstall(dir) {
|
|
8128
|
+
if (!import_node_fs9.default.existsSync(import_node_path9.default.join(dir, product.installedMarker))) return false;
|
|
8129
|
+
try {
|
|
8130
|
+
product.verifyInstall?.(dir);
|
|
8131
|
+
return true;
|
|
8132
|
+
} catch {
|
|
8133
|
+
return false;
|
|
8134
|
+
}
|
|
8135
|
+
}
|
|
8114
8136
|
async function install(opts = {}) {
|
|
8115
8137
|
product.ensureHome();
|
|
8116
8138
|
const cdnOrigin = resolveCdnOrigin(opts.cdnOrigin);
|
|
@@ -8120,7 +8142,7 @@ function createRuntimeDelivery(product) {
|
|
|
8120
8142
|
const setActive = opts.setActive !== false;
|
|
8121
8143
|
const protectVersions = [version, ...opts.protectVersions ?? []];
|
|
8122
8144
|
pruneLocalRetention({ protectVersions });
|
|
8123
|
-
if (!opts.force &&
|
|
8145
|
+
if (!opts.force && isVerifiedInstall(destDir)) {
|
|
8124
8146
|
if (setActive) product.writeActiveRuntime(version);
|
|
8125
8147
|
pruneLocalRetention({ protectVersions });
|
|
8126
8148
|
return {
|
|
@@ -8141,6 +8163,7 @@ function createRuntimeDelivery(product) {
|
|
|
8141
8163
|
digest: { algorithm: "sha256", encoding: "hex", value: entry.sha256 },
|
|
8142
8164
|
destDir,
|
|
8143
8165
|
installedMarker: product.installedMarker,
|
|
8166
|
+
verify: product.verifyInstall,
|
|
8144
8167
|
label: `runtime ${version}`
|
|
8145
8168
|
});
|
|
8146
8169
|
if (setActive) product.writeActiveRuntime(version);
|
|
@@ -8353,6 +8376,7 @@ async function installVerifiedTarball(tarball) {
|
|
|
8353
8376
|
if (!import_node_fs9.default.existsSync(import_node_path9.default.join(tmpDir, installedMarker))) {
|
|
8354
8377
|
throw new Error(`extracted tarball for ${label} is missing ${installedMarker}`);
|
|
8355
8378
|
}
|
|
8379
|
+
tarball.verify?.(tmpDir);
|
|
8356
8380
|
try {
|
|
8357
8381
|
import_node_fs9.default.renameSync(tmpDir, destDir);
|
|
8358
8382
|
} catch (err) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/menu.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/plist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/plist.mjs
CHANGED
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -23281,6 +23281,15 @@ function createRuntimeDelivery(product) {
|
|
|
23281
23281
|
}
|
|
23282
23282
|
return { version, channel, entry };
|
|
23283
23283
|
}
|
|
23284
|
+
function isVerifiedInstall(dir) {
|
|
23285
|
+
if (!import_node_fs9.default.existsSync(import_node_path9.default.join(dir, product.installedMarker))) return false;
|
|
23286
|
+
try {
|
|
23287
|
+
product.verifyInstall?.(dir);
|
|
23288
|
+
return true;
|
|
23289
|
+
} catch {
|
|
23290
|
+
return false;
|
|
23291
|
+
}
|
|
23292
|
+
}
|
|
23284
23293
|
async function install(opts = {}) {
|
|
23285
23294
|
product.ensureHome();
|
|
23286
23295
|
const cdnOrigin = resolveCdnOrigin(opts.cdnOrigin);
|
|
@@ -23290,7 +23299,7 @@ function createRuntimeDelivery(product) {
|
|
|
23290
23299
|
const setActive = opts.setActive !== false;
|
|
23291
23300
|
const protectVersions = [version, ...opts.protectVersions ?? []];
|
|
23292
23301
|
pruneLocalRetention({ protectVersions });
|
|
23293
|
-
if (!opts.force &&
|
|
23302
|
+
if (!opts.force && isVerifiedInstall(destDir)) {
|
|
23294
23303
|
if (setActive) product.writeActiveRuntime(version);
|
|
23295
23304
|
pruneLocalRetention({ protectVersions });
|
|
23296
23305
|
return {
|
|
@@ -23311,6 +23320,7 @@ function createRuntimeDelivery(product) {
|
|
|
23311
23320
|
digest: { algorithm: "sha256", encoding: "hex", value: entry.sha256 },
|
|
23312
23321
|
destDir,
|
|
23313
23322
|
installedMarker: product.installedMarker,
|
|
23323
|
+
verify: product.verifyInstall,
|
|
23314
23324
|
label: `runtime ${version}`
|
|
23315
23325
|
});
|
|
23316
23326
|
if (setActive) product.writeActiveRuntime(version);
|
|
@@ -23523,6 +23533,7 @@ async function installVerifiedTarball(tarball) {
|
|
|
23523
23533
|
if (!import_node_fs9.default.existsSync(import_node_path9.default.join(tmpDir, installedMarker))) {
|
|
23524
23534
|
throw new Error(`extracted tarball for ${label} is missing ${installedMarker}`);
|
|
23525
23535
|
}
|
|
23536
|
+
tarball.verify?.(tmpDir);
|
|
23526
23537
|
try {
|
|
23527
23538
|
import_node_fs9.default.renameSync(tmpDir, destDir);
|
|
23528
23539
|
} catch (err) {
|
|
@@ -33127,10 +33138,20 @@ function placeMetroDescriptor(listing, descriptor) {
|
|
|
33127
33138
|
}
|
|
33128
33139
|
return { files, ambiguous, verified: false, mismatched: true };
|
|
33129
33140
|
}
|
|
33130
|
-
function
|
|
33131
|
-
return
|
|
33132
|
-
|
|
33133
|
-
|
|
33141
|
+
function unverifiedContentKey(dest, fileDigests) {
|
|
33142
|
+
return JSON.stringify(
|
|
33143
|
+
dest.placements.map(
|
|
33144
|
+
(placement) => placement.verified ? null : [...placement.files].map(([scale, relative3]) => {
|
|
33145
|
+
const file = (0, import_node_path25.join)(dest.directory, relative3);
|
|
33146
|
+
let digest = fileDigests.get(file);
|
|
33147
|
+
if (digest === void 0) {
|
|
33148
|
+
digest = (0, import_node_crypto11.createHash)("sha256").update((0, import_node_fs25.readFileSync)(file)).digest("hex");
|
|
33149
|
+
fileDigests.set(file, digest);
|
|
33150
|
+
}
|
|
33151
|
+
return [scale, digest];
|
|
33152
|
+
}).sort(([first], [second]) => first - second)
|
|
33153
|
+
)
|
|
33154
|
+
);
|
|
33134
33155
|
}
|
|
33135
33156
|
function searchMetroAssetDest(bundlePath, descriptors) {
|
|
33136
33157
|
const bundleDirectory = (0, import_node_path25.dirname)((0, import_node_path25.resolve)(bundlePath));
|
|
@@ -33196,7 +33217,10 @@ function searchMetroAssetDest(bundlePath, descriptors) {
|
|
|
33196
33217
|
}
|
|
33197
33218
|
const best = Math.max(...holders.map((holder) => holder.verified));
|
|
33198
33219
|
const rivals = holders.filter((holder) => holder.verified === best);
|
|
33199
|
-
const
|
|
33220
|
+
const fileDigests = /* @__PURE__ */ new Map();
|
|
33221
|
+
const distinct = new Set(
|
|
33222
|
+
rivals.map((rival) => unverifiedContentKey(rival.dest, fileDigests))
|
|
33223
|
+
);
|
|
33200
33224
|
const winner = rivals[0];
|
|
33201
33225
|
if (!winner) return { dest: null, searched, truncated, unconfirmed: false };
|
|
33202
33226
|
if (distinct.size > 1) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -2500,6 +2500,7 @@ async function installVerifiedTarball(tarball) {
|
|
|
2500
2500
|
if (!import_node_fs4.default.existsSync(import_node_path5.default.join(tmpDir, installedMarker))) {
|
|
2501
2501
|
throw new Error(`extracted tarball for ${label} is missing ${installedMarker}`);
|
|
2502
2502
|
}
|
|
2503
|
+
tarball.verify?.(tmpDir);
|
|
2503
2504
|
try {
|
|
2504
2505
|
import_node_fs4.default.renameSync(tmpDir, destDir);
|
|
2505
2506
|
} catch (err) {
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.747 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// engine runtime. each channel publishes its own manifest per platform, so the
|
|
6
6
|
// staging and production queues never write the same object.
|
|
7
7
|
|
|
8
|
+
import { spawnSync } from 'node:child_process'
|
|
8
9
|
import path from 'node:path'
|
|
9
10
|
import { createRuntimeDelivery, type RuntimeDelivery } from '@contrast/runtime-delivery'
|
|
10
11
|
import {
|
|
@@ -38,6 +39,27 @@ export function activeDesktopHostApp(): string | null {
|
|
|
38
39
|
return version ? path.join(desktopHostDir(version), 'PeachDesktop.app') : null
|
|
39
40
|
}
|
|
40
41
|
|
|
42
|
+
// the host's identity: the manifest checksum proves the bytes are the published
|
|
43
|
+
// ones, this proves who signed them
|
|
44
|
+
const HOST_REQUIREMENT =
|
|
45
|
+
'=anchor apple generic and identifier "dev.contrast.peach-desktop" and certificate leaf[subject.OU] = "399WY8X9HY" and certificate leaf[field.1.2.840.113635.100.6.1.13] exists'
|
|
46
|
+
|
|
47
|
+
function verifyHost(dir: string): void {
|
|
48
|
+
const app = path.join(dir, 'PeachDesktop.app')
|
|
49
|
+
const signature = spawnSync('codesign', [
|
|
50
|
+
'--verify',
|
|
51
|
+
'--deep',
|
|
52
|
+
'--strict',
|
|
53
|
+
'-R',
|
|
54
|
+
HOST_REQUIREMENT,
|
|
55
|
+
app,
|
|
56
|
+
])
|
|
57
|
+
const notarization = spawnSync('spctl', ['--assess', '--type', 'execute', app])
|
|
58
|
+
if (signature.status !== 0 || notarization.status !== 0) {
|
|
59
|
+
throw new Error(`${app} failed Developer ID or notarization verification`)
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
41
63
|
function isChannel(value: string): value is DesktopHostChannel {
|
|
42
64
|
return DESKTOP_HOST_CHANNELS.some((channel) => channel === value)
|
|
43
65
|
}
|
|
@@ -63,6 +85,7 @@ export function desktopHostDelivery(channelInput?: string): RuntimeDelivery {
|
|
|
63
85
|
tarballPath: (version) =>
|
|
64
86
|
`${prefix}/${version}/PeachDesktop-${version}-${platform}.zip`,
|
|
65
87
|
installedMarker: desktopHostExecutable(),
|
|
88
|
+
verifyInstall: verifyHost,
|
|
66
89
|
env: {
|
|
67
90
|
cdnOrigin: 'PEACH_DESKTOP_CDN_ORIGIN',
|
|
68
91
|
channel: CHANNEL_ENV,
|