Skip to content

Commit

Permalink
⚡ Make sure Linux/MacOS binaries are always marked as executables
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Dec 18, 2024
1 parent df3cbbf commit c2df8b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ module.exports.downloadAndUpdateBinaries = async (latest = false) => {
let binaryFile = constants.files.binaries[platform][arch];
if (fse.existsSync(`.tmp/${binaryFile}`)) {
fse.copySync(`.tmp/${binaryFile}`, `bin/${binaryFile}`);
// Ensure that correct permissions are set
// Non-applicable on Windows platform and not needed for Windows executables
if (process.platform !== 'win32' && platform !== 'win32') {
fse.chmodSync(`bin/${binaryFile}`, '755');
}
}
}
}
Expand Down

0 comments on commit c2df8b8

Please sign in to comment.