Skip to content

Commit

Permalink
[0.1.0] Only try to use codesign what the platform is darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Dec 1, 2024
1 parent 6748715 commit 0cf4c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ async function buildSEA(target: string) {
fs.mkdirSync(dirname(seaPath), { recursive: true });
fs.copyFileSync(join(tempDir, archiveBase), seaPath);

if (target == 'darwin-arm64') {
if (target == 'darwin-arm64' && process.platform == 'darwin') {
_log('Removing signature:', seaPath);
execSync(`codesign --remove-signature "${seaPath}"`);
}
Expand All @@ -173,7 +173,7 @@ async function buildSEA(target: string) {
sentinelFuse: 'NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2',
});

if (target == 'darwin-arm64') {
if (target == 'darwin-arm64' && process.platform == 'darwin') {
_log('Signing binary:', seaPath);
execSync(`codesign --sign - "${seaPath}"`);
}
Expand Down

0 comments on commit 0cf4c79

Please sign in to comment.