diff --git a/_webi/releases.js b/_webi/releases.js index 684b765..8d3157b 100644 --- a/_webi/releases.js +++ b/_webi/releases.js @@ -132,6 +132,12 @@ Releases.renderBash = async function ( /^\s*#?WEBI_PKG_URL=.*/m, "WEBI_PKG_URL='" + rel.download + "'", ) + // TODO replace WEBI_PKG_FILE (which is sometimes a dir) + .replace( + /^\s*#?WEBI_PKG_PATHNAME=.*/m, + "WEBI_PKG_PATHNAME='" + pkgFile + "'", + ) + // TODO deprecate .replace( /^\s*#?WEBI_PKG_FILE=.*/m, "WEBI_PKG_FILE='" + pkgFile + "'", diff --git a/_webi/template.ps1 b/_webi/template.ps1 index f458cdb..ca7f1a7 100644 --- a/_webi/template.ps1 +++ b/_webi/template.ps1 @@ -31,6 +31,7 @@ $Env:WEBI_HOST = 'https://webinstall.dev' #$Env:WEBI_GIT_TAG = 12.16.2 #$Env:WEBI_PKG_URL = "https://.../node-....zip" #$Env:WEBI_PKG_FILE = "node-v12.16.2-win-x64.zip" +#$Env:WEBI_PKG_PATHNAME = "node-v12.16.2-win-x64.zip" # Switch to userprofile Push-Location $Env:USERPROFILE diff --git a/_webi/template.sh b/_webi/template.sh index 55162e7..386d0d3 100644 --- a/_webi/template.sh +++ b/_webi/template.sh @@ -32,6 +32,7 @@ __bootstrap_webi() { #WEBI_FORMATS= #WEBI_PKG_URL= #WEBI_PKG_FILE= + #WEBI_PKG_PATHNAME= #PKG_OSES= #PKG_ARCHES= #PKG_FORMATS=