From bade0d80c922cec70214412372994bf1e31f2ad8 Mon Sep 17 00:00:00 2001 From: Bryce Gibson Date: Thu, 13 Apr 2023 06:10:34 +1000 Subject: [PATCH] Add support for macOS signing. Using the technique from pkg https://github.com/vercel/pkg/pull/1164. --- src/steps/cli.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/steps/cli.ts b/src/steps/cli.ts index 6f80e15d..3c8e1547 100644 --- a/src/steps/cli.ts +++ b/src/steps/cli.ts @@ -1,8 +1,10 @@ +import { platform } from 'os' import { dirname, normalize, relative, resolve } from 'path' -import { createWriteStream, chmodSync, statSync } from 'fs' +import { createWriteStream, chmodSync, statSync, readFileSync, writeFileSync } from 'fs' import { NexeCompiler } from '../compiler' import { NexeTarget } from '../target' import { STDIN_FLAG } from '../util' +import { patchMachOExecutable } from './mach-o' import mkdirp = require('mkdirp') /** @@ -42,6 +44,10 @@ export default async function cli(compiler: NexeCompiler, next: () => Promise