Skip to content

Commit

Permalink
Fix:Binary manager dylib file ext check #3231
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Aug 4, 2024
1 parent 8f9487b commit 06eaee8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/managers/BinaryManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,12 @@ class Binary {
}

getFileName() {
const platform = process.platform

if (this.type === 'executable') {
return this.name + (process.platform == 'win32' ? '.exe' : '')
return this.name + (platform == 'win32' ? '.exe' : '')
} else if (this.type === 'library') {
return this.name + (process.platform == 'win32' ? '.dll' : '.so')
return this.name + (platform == 'win32' ? '.dll' : platform == 'darwin' ? '.dylib' : '.so')
} else {
return this.name
}
Expand Down

0 comments on commit 06eaee8

Please sign in to comment.