mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Fix:Binary manager dylib file ext check #3231
This commit is contained in:
parent
8f9487ba70
commit
06eaee8909
@ -224,10 +224,12 @@ class Binary {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getFileName() {
|
getFileName() {
|
||||||
|
const platform = process.platform
|
||||||
|
|
||||||
if (this.type === 'executable') {
|
if (this.type === 'executable') {
|
||||||
return this.name + (process.platform == 'win32' ? '.exe' : '')
|
return this.name + (platform == 'win32' ? '.exe' : '')
|
||||||
} else if (this.type === 'library') {
|
} else if (this.type === 'library') {
|
||||||
return this.name + (process.platform == 'win32' ? '.dll' : '.so')
|
return this.name + (platform == 'win32' ? '.dll' : platform == 'darwin' ? '.dylib' : '.so')
|
||||||
} else {
|
} else {
|
||||||
return this.name
|
return this.name
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user