@@ -2,7 +2,7 @@ import BluebirdPromise from "bluebird-lst"
2
2
import _debug from "debug"
3
3
import { Arch , Target } from "electron-builder-core"
4
4
import { asArray , debug , doSpawn , exec , getPlatformIconFileName , handleProcess , isEmptyOrSpaces , use } from "electron-builder-util"
5
- import { getBinFromBintray } from "electron-builder-util/out/binDownload"
5
+ import { getBinFromGithub } from "electron-builder-util/out/binDownload"
6
6
import { copyFile } from "electron-builder-util/out/fs"
7
7
import { log , subTask , warn } from "electron-builder-util/out/log"
8
8
import { asyncAll } from "electron-builder-util/out/promise"
@@ -24,9 +24,9 @@ const debugLang = _debug("electron-builder:lang")
24
24
const ELECTRON_BUILDER_NS_UUID = "50e065bc-3134-11e6-9bab-38c9862bdaf3"
25
25
26
26
// noinspection SpellCheckingInspection
27
- const nsisPathPromise = getBinFromBintray ( "nsis" , "3.0.1.13" , "2921dd404ce9b69679088a6f1409a56dd360da2077fe1019573c0712c9edf057" )
27
+ const nsisPathPromise = getBinFromGithub ( "nsis" , "3.0.1.13" , "2921dd404ce9b69679088a6f1409a56dd360da2077fe1019573c0712c9edf057" )
28
28
// noinspection SpellCheckingInspection
29
- const nsisResourcePathPromise = getBinFromBintray ( "nsis-resources" , "3.0.0" , "cde0e77b249e29d74250bf006aa355d3e02b32226e1c6431fb48facae41d8a7e" )
29
+ const nsisResourcePathPromise = getBinFromGithub ( "nsis-resources" , "3.0.0" , "cde0e77b249e29d74250bf006aa355d3e02b32226e1c6431fb48facae41d8a7e" )
30
30
31
31
const USE_NSIS_BUILT_IN_COMPRESSOR = false
32
32
@@ -344,7 +344,7 @@ export class NsisTarget extends Target {
344
344
menu = sanitizeFileName ( packager . appInfo . companyName )
345
345
}
346
346
else {
347
- menu = ( < string > options . menuCategory ) . split ( / \/ | \\ / ) . map ( it => sanitizeFileName ( it ) ) . join ( "\\" )
347
+ menu = ( < string > options . menuCategory ) . split ( / [ \/ \\ ] / ) . map ( it => sanitizeFileName ( it ) ) . join ( "\\" )
348
348
}
349
349
if ( ! isEmptyOrSpaces ( menu ) ) {
350
350
defines . MENU_FILENAME = menu
0 commit comments