mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 10:34:18 +00:00
parse http path with string vars
This commit is contained in:
parent
70056e82a1
commit
b68c49118a
@ -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}`, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user