cedarstalking with keyboard shortcuts
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: use binary

+10
assets/auth-browser-bin

This is a binary file and will not be displayed.

+10
src/auth.ts
··· 67 67 } 68 68 69 69 async function ensureBinary(): Promise<string> { 70 + if (!environment.isDevelopment) { 71 + // Production: use the pre-compiled universal binary bundled in assets. 72 + // Re-sign ad-hoc if the signature was stripped (e.g. by Raycast's distribution pipeline). 73 + const binaryPath = path.join(environment.assetsPath, "auth-browser-bin"); 74 + const valid = await execAsync(`codesign --verify "${binaryPath}"`).then(() => true).catch(() => false); 75 + if (!valid) await execAsync(`codesign --sign - --force "${binaryPath}"`); 76 + return binaryPath; 77 + } 78 + 79 + // Development: compile from source so changes to the Swift file are picked up 70 80 const swiftSrc = path.join(environment.assetsPath, "auth-browser.swift"); 71 81 const binaryPath = path.join(environment.supportPath, "auth-browser"); 72 82