@@ -2,7 +2,7 @@ import BluebirdPromise from "bluebird-lst"
22import _debug from "debug"
33import { Arch , Target } from "electron-builder-core"
44import { 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"
66import { copyFile } from "electron-builder-util/out/fs"
77import { log , subTask , warn } from "electron-builder-util/out/log"
88import { asyncAll } from "electron-builder-util/out/promise"
@@ -24,9 +24,9 @@ const debugLang = _debug("electron-builder:lang")
2424const ELECTRON_BUILDER_NS_UUID = "50e065bc-3134-11e6-9bab-38c9862bdaf3"
2525
2626// noinspection SpellCheckingInspection
27- const nsisPathPromise = getBinFromBintray ( "nsis" , "3.0.1.13" , "2921dd404ce9b69679088a6f1409a56dd360da2077fe1019573c0712c9edf057" )
27+ const nsisPathPromise = getBinFromGithub ( "nsis" , "3.0.1.13" , "2921dd404ce9b69679088a6f1409a56dd360da2077fe1019573c0712c9edf057" )
2828// noinspection SpellCheckingInspection
29- const nsisResourcePathPromise = getBinFromBintray ( "nsis-resources" , "3.0.0" , "cde0e77b249e29d74250bf006aa355d3e02b32226e1c6431fb48facae41d8a7e" )
29+ const nsisResourcePathPromise = getBinFromGithub ( "nsis-resources" , "3.0.0" , "cde0e77b249e29d74250bf006aa355d3e02b32226e1c6431fb48facae41d8a7e" )
3030
3131const USE_NSIS_BUILT_IN_COMPRESSOR = false
3232
@@ -344,7 +344,7 @@ export class NsisTarget extends Target {
344344 menu = sanitizeFileName ( packager . appInfo . companyName )
345345 }
346346 else {
347- menu = ( < string > options . menuCategory ) . split ( / \/ | \\ / ) . map ( it => sanitizeFileName ( it ) ) . join ( "\\" )
347+ menu = ( < string > options . menuCategory ) . split ( / [ \/ \\ ] / ) . map ( it => sanitizeFileName ( it ) ) . join ( "\\" )
348348 }
349349 if ( ! isEmptyOrSpaces ( menu ) ) {
350350 defines . MENU_FILENAME = menu
0 commit comments