adds Nsis build artifacts artifacts names to index.js

This commit is contained in:
mdk 2023-10-06 10:05:21 +02:00
parent b8c96ea42a
commit e1434b0bae

90
dist/index.js generated vendored
View File

@ -109,7 +109,7 @@ function buildProject(options) {
'AppImage.tar.gz.sig', 'AppImage.tar.gz.sig',
'deb' '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)*.{${[ const artifactsLookupPattern = `${bundleDir}/*/!(linuxdeploy)*.{${[
...macOSExts, ...macOSExts,
linuxExts, linuxExts,
@ -2669,50 +2669,50 @@ module.exports = globrex;
/***/ ((__unused_webpack_module, exports) => { /***/ ((__unused_webpack_module, exports) => {
"use strict"; "use strict";
exports.__esModule = true; exports.__esModule = true;
function parseArgsStringToArgv(value, env, file) { function parseArgsStringToArgv(value, env, file) {
// ([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*) Matches nested quotes until the first space outside of quotes // ([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*) Matches nested quotes until the first space outside of quotes
// [^\s'"]+ or Match if not a space ' or " // [^\s'"]+ or Match if not a space ' or "
// (['"])([^\5]*?)\5 or Match "quoted text" without quotes // (['"])([^\5]*?)\5 or Match "quoted text" without quotes
// `\3` and `\5` are a backreference to the quote style (' or ") captured // `\3` and `\5` are a backreference to the quote style (' or ") captured
var myRegexp = /([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi; var myRegexp = /([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;
var myString = value; var myString = value;
var myArray = []; var myArray = [];
if (env) { if (env) {
myArray.push(env); myArray.push(env);
} }
if (file) { if (file) {
myArray.push(file); myArray.push(file);
} }
var match; var match;
do { do {
// Each call to exec returns the next regex match as an array // Each call to exec returns the next regex match as an array
match = myRegexp.exec(myString); match = myRegexp.exec(myString);
if (match !== null) { if (match !== null) {
// Index 1 in the array is the captured group if it exists // 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 // Index 0 is the matched text, which we use if no captured group exists
myArray.push(firstString(match[1], match[6], match[0])); myArray.push(firstString(match[1], match[6], match[0]));
} }
} while (match !== null); } while (match !== null);
return myArray; return myArray;
} }
exports["default"] = parseArgsStringToArgv; exports["default"] = parseArgsStringToArgv;
exports.parseArgsStringToArgv = parseArgsStringToArgv; exports.parseArgsStringToArgv = parseArgsStringToArgv;
// Accepts any number of arguments, and returns the first one that is a string // Accepts any number of arguments, and returns the first one that is a string
// (even an empty string) // (even an empty string)
function firstString() { function firstString() {
var args = []; var args = [];
for (var _i = 0; _i < arguments.length; _i++) { for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i]; args[_i] = arguments[_i];
} }
for (var i = 0; i < args.length; i++) { for (var i = 0; i < args.length; i++) {
var arg = args[i]; var arg = args[i];
if (typeof arg === "string") { if (typeof arg === "string") {
return arg; return arg;
} }
} }
} }
/***/ }), /***/ }),