fix: npm download failed when define 'npm_config_platform=mas' (#21801)
This commit is contained in:
parent
09ad1807af
commit
ae49b8be42
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ function getPlatformPath () {
|
|||
const platform = process.env.npm_config_platform || os.platform()
|
||||
|
||||
switch (platform) {
|
||||
case 'mas':
|
||||
case 'darwin':
|
||||
return 'Electron.app/Contents/MacOS/Electron'
|
||||
case 'freebsd':
|
||||
|
|
Loading…
Reference in a new issue