fix: ensure binary is executable after npm install (#229)
This commit is contained in:
@@ -68,7 +68,11 @@ async function downloadFile(url, dest) {
|
||||
async function main() {
|
||||
// Check if binary already exists
|
||||
if (existsSync(binaryPath)) {
|
||||
console.log(`✓ Native binary already exists: ${binaryName}`);
|
||||
// Ensure binary is executable (npm doesn't preserve execute bit)
|
||||
if (platform() !== 'win32') {
|
||||
chmodSync(binaryPath, 0o755);
|
||||
}
|
||||
console.log(`✓ Native binary ready: ${binaryName}`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user