mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Set execution permission for downloaded binaries
This commit is contained in:
parent
c3f3fca896
commit
3d2b2e43b1
@ -78,6 +78,12 @@ class GithubAssetDownloader {
|
|||||||
const outputPath = path.join(destDir, file.outputFileName)
|
const outputPath = path.join(destDir, file.outputFileName)
|
||||||
await zip.extract(file.pathInsideZip, outputPath)
|
await zip.extract(file.pathInsideZip, outputPath)
|
||||||
Logger.debug(`[GithubAssetDownloader] Extracted file ${file.pathInsideZip} to ${outputPath}`)
|
Logger.debug(`[GithubAssetDownloader] Extracted file ${file.pathInsideZip} to ${outputPath}`)
|
||||||
|
|
||||||
|
// Set executable permission for Linux
|
||||||
|
if (process.platform !== 'win32') {
|
||||||
|
await fs.chmod(outputPath, 0o755)
|
||||||
|
console.log(`Set executable permissions for ${outputPath}`)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await zip.close()
|
await zip.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user