From 30e1038339f3182d6d0b184cbf973e6fdef74d07 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 24 May 2021 15:21:29 -0400 Subject: [PATCH] Change bundle name --- scripts/winbundle.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/winbundle.js b/scripts/winbundle.js index 4d43609..dabcf63 100644 --- a/scripts/winbundle.js +++ b/scripts/winbundle.js @@ -6,6 +6,8 @@ const async = require('async'); const nodeUnzip = require('node-unzip-2'); const archiver = require('archiver'); +const bundleName = "nodeodm-windows-x64.zip"; + const download = function(uri, filename, callback) { console.log(`Downloading ${uri}`); request.head(uri, function(err, res, body) { @@ -75,7 +77,7 @@ async.series([ }, cb => { // Zip - const outFile = path.join("dist", "nodeodm.zip"); + const outFile = path.join("dist", bundleName); if (!fs.existsSync("dist")) fs.mkdirSync("dist"); if (fs.existsSync(outFile)) fs.unlinkSync(outFile); @@ -125,7 +127,7 @@ async.series([ } ], (err) => { if (err) console.log(`Bundle failed: ${err}`); - else console.log("Bundle ==> dist/nodeodm.zip"); + else console.log(`Bundle ==> dist/${bundleName}`); });