projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add version info to deno downloads
[webi-installers/.git]
/
_webi
/
releases.js
diff --git
a/_webi/releases.js
b/_webi/releases.js
index f5ef319dae5bb45af268b46b4282121ddf6afd32..c7b0b519a9008f4060ab0eb36097229460a5d6a2 100644
(file)
--- a/
_webi/releases.js
+++ b/
_webi/releases.js
@@
-42,6
+42,7
@@
Releases.renderBash = function (
.replace(/[^+\-]*/, '')
.replace(/^-/, '')
};
.replace(/[^+\-]*/, '')
.replace(/^-/, '')
};
+ var pkgFile = rel.filename || rel.name;
return fs.promises
.readFile(path.join(__dirname, 'template.sh'), 'utf8')
.then(function (tplTxt) {
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,
)
.replace(
/^#?WEBI_PKG_FILE=.*/m,
- "WEBI_PKG_FILE='" +
rel.nam
e + "'"
+ "WEBI_PKG_FILE='" +
pkgFil
e + "'"
)
// PKG details
.replace(/^#?PKG_NAME=.*/m, "PKG_NAME='" + pkg + "'")
)
// PKG details
.replace(/^#?PKG_NAME=.*/m, "PKG_NAME='" + pkg + "'")