From b8c96ea42a50cb23700573b25f168fe57b6e0b4f Mon Sep 17 00:00:00 2001 From: mdk Date: Fri, 6 Oct 2023 10:03:34 +0200 Subject: [PATCH 1/2] fixes the names of the Nsis build artifacts --- src/build-project.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build-project.ts b/src/build-project.ts index 7da812a..2e1d135 100644 --- a/src/build-project.ts +++ b/src/build-project.ts @@ -70,7 +70,7 @@ export async function buildProject(options: BuildOptions): Promise { 'AppImage.tar.gz.sig', 'deb' ] - const windowsExts = ['exe', 'exe.zip', 'exe.zip.sig', 'msi', 'msi.zip', 'msi.zip.sig'] + const windowsExts = ['exe', 'nsis.zip', 'nsis.zip.sig', 'msi', 'msi.zip', 'msi.zip.sig'] const artifactsLookupPattern = `${bundleDir}/*/!(linuxdeploy)*.{${[ ...macOSExts, From e1434b0bae79ceb3f1448a518120a34889bc9a4a Mon Sep 17 00:00:00 2001 From: mdk Date: Fri, 6 Oct 2023 10:05:21 +0200 Subject: [PATCH 2/2] adds Nsis build artifacts artifacts names to index.js --- dist/index.js | 90 +++++++++++++++++++++++++-------------------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/dist/index.js b/dist/index.js index bc4d965..f336821 100644 --- a/dist/index.js +++ b/dist/index.js @@ -109,7 +109,7 @@ function buildProject(options) { 'AppImage.tar.gz.sig', 'deb' ]; - const windowsExts = ['msi', 'msi.zip', 'msi.zip.sig']; + const windowsExts = ['exe', 'nsis.zip', 'nsis.zip.sig', 'msi', 'msi.zip', 'msi.zip.sig']; const artifactsLookupPattern = `${bundleDir}/*/!(linuxdeploy)*.{${[ ...macOSExts, linuxExts, @@ -2669,50 +2669,50 @@ module.exports = globrex; /***/ ((__unused_webpack_module, exports) => { "use strict"; - -exports.__esModule = true; -function parseArgsStringToArgv(value, env, file) { - // ([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*) Matches nested quotes until the first space outside of quotes - // [^\s'"]+ or Match if not a space ' or " - // (['"])([^\5]*?)\5 or Match "quoted text" without quotes - // `\3` and `\5` are a backreference to the quote style (' or ") captured - var myRegexp = /([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi; - var myString = value; - var myArray = []; - if (env) { - myArray.push(env); - } - if (file) { - myArray.push(file); - } - var match; - do { - // Each call to exec returns the next regex match as an array - match = myRegexp.exec(myString); - if (match !== null) { - // Index 1 in the array is the captured group if it exists - // Index 0 is the matched text, which we use if no captured group exists - myArray.push(firstString(match[1], match[6], match[0])); - } - } while (match !== null); - return myArray; -} -exports["default"] = parseArgsStringToArgv; -exports.parseArgsStringToArgv = parseArgsStringToArgv; -// Accepts any number of arguments, and returns the first one that is a string -// (even an empty string) -function firstString() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - for (var i = 0; i < args.length; i++) { - var arg = args[i]; - if (typeof arg === "string") { - return arg; - } - } -} + +exports.__esModule = true; +function parseArgsStringToArgv(value, env, file) { + // ([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*) Matches nested quotes until the first space outside of quotes + // [^\s'"]+ or Match if not a space ' or " + // (['"])([^\5]*?)\5 or Match "quoted text" without quotes + // `\3` and `\5` are a backreference to the quote style (' or ") captured + var myRegexp = /([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi; + var myString = value; + var myArray = []; + if (env) { + myArray.push(env); + } + if (file) { + myArray.push(file); + } + var match; + do { + // Each call to exec returns the next regex match as an array + match = myRegexp.exec(myString); + if (match !== null) { + // Index 1 in the array is the captured group if it exists + // Index 0 is the matched text, which we use if no captured group exists + myArray.push(firstString(match[1], match[6], match[0])); + } + } while (match !== null); + return myArray; +} +exports["default"] = parseArgsStringToArgv; +exports.parseArgsStringToArgv = parseArgsStringToArgv; +// Accepts any number of arguments, and returns the first one that is a string +// (even an empty string) +function firstString() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + for (var i = 0; i < args.length; i++) { + var arg = args[i]; + if (typeof arg === "string") { + return arg; + } + } +} /***/ }),