diff --git a/resources/xkey_helper_4_1_13.sha256 b/resources/xkey_helper_4_1_13.sha256 index 47562e3..b5165c2 100644 --- a/resources/xkey_helper_4_1_13.sha256 +++ b/resources/xkey_helper_4_1_13.sha256 @@ -1 +1 @@ -f1bbd88584075c0e6d3487357a06424949de26d7e6dcad803d210aab83b0cbda xkey_helper_4_1_13 +a35d3fa67387e049cc30bc073f9e65b077aa1db9c5c2b183125dec695fa013b9 xkey_helper_4_1_13 diff --git a/tests/unit/runtime-packaging.test.ts b/tests/unit/runtime-packaging.test.ts index 6811928..8e42f22 100644 --- a/tests/unit/runtime-packaging.test.ts +++ b/tests/unit/runtime-packaging.test.ts @@ -26,7 +26,6 @@ const { validateSherpaRuntime, validateSilkWasmRuntime, findMacosHelperPaths, - isMacosCodeValid, signMacosHelpers, signMacosAppBundle } = nodeRequire('../../scripts/after-pack.cjs') as { @@ -36,7 +35,6 @@ const { validateSherpaRuntime: (runtimeResources: string, platform: NodeJS.Platform, arch: string) => void validateSilkWasmRuntime: (runtimeResources: string) => void findMacosHelperPaths: (runtimeResources: string) => string[] - isMacosCodeValid: (targetPath: string, run?: CodesignRunner) => boolean signMacosHelpers: (runtimeResources: string, run?: CodesignRunner) => string[] signMacosAppBundle: (appBundlePath: string, run?: CodesignRunner) => string } @@ -276,7 +274,9 @@ describe('production runtime packaging', () => { expect(stub.calls).toContainEqual(['--force', '--sign', '-', helperPath]) expect(stub.calls).toContainEqual(['--verify', '--strict', '--arch', 'arm64', helperPath]) expect(stub.calls).toContainEqual(['--verify', '--strict', '--arch', 'x86_64', helperPath]) - expect(statSync(helperPath).mode & 0o777).toBe(0o755) + if (process.platform !== 'win32') { + expect(statSync(helperPath).mode & 0o777).toBe(0o755) + } }) it('keeps helpers that already verify strictly without re-signing them', () => {