Fix:Binary manager dylib file ext check #3231

This commit is contained in:
advplyr 2024-08-04 16:51:07 -05:00
parent 8f9487ba70
commit 06eaee8909

View File

@ -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
} }