add version info to deno downloads
[webi-installers/.git] / _webi / releases.js
index f5ef319dae5bb45af268b46b4282121ddf6afd32..c7b0b519a9008f4060ab0eb36097229460a5d6a2 100644 (file)
@@ -42,6 +42,7 @@ Releases.renderBash = function (
           .replace(/[^+\-]*/, '')
           .replace(/^-/, '')
       };
+      var pkgFile = rel.filename || rel.name;
       return fs.promises
         .readFile(path.join(__dirname, 'template.sh'), 'utf8')
         .then(function (tplTxt) {
@@ -113,7 +114,7 @@ Releases.renderBash = function (
               )
               .replace(
                 /^#?WEBI_PKG_FILE=.*/m,
-                "WEBI_PKG_FILE='" + rel.name + "'"
+                "WEBI_PKG_FILE='" + pkgFile + "'"
               )
               // PKG details
               .replace(/^#?PKG_NAME=.*/m, "PKG_NAME='" + pkg + "'")