From b68c49118a4328990f221317fdc1689f91d0a06d Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Mon, 25 Mar 2024 08:12:00 +0100 Subject: [PATCH] parse http path with string vars --- src/main/generic_steps/http.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/generic_steps/http.js b/src/main/generic_steps/http.js index 4fe6975..471dc45 100644 --- a/src/main/generic_steps/http.js +++ b/src/main/generic_steps/http.js @@ -8,6 +8,7 @@ import humanFormat from "human-format" import got from "got" +import parseStringVars from "../utils/parseStringVars" import sendToRender from "../utils/sendToRender" import extractFile from "../utils/extractFile" @@ -18,6 +19,8 @@ function convertSize(size) { } export default async (manifest, step) => { + step.path = await parseStringVars(step.path, manifest) + let _path = path.resolve(manifest.install_path, step.path ?? ".") sendToRender(`pkg:update:status:${manifest.id}`, { @@ -94,7 +97,7 @@ export default async (manifest, step) => { if (step.delete_after_extract) { console.log(`[${manifest.id}] steps.http() | Deleting temporal file [${_path}]...`) - + sendToRender(`pkg:update:status:${manifest.id}`, { statusText: `Deleting temporal files...`, })