mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 10:34:18 +00:00
fix initialize cache_path
This commit is contained in:
parent
9af9d38fe1
commit
98d4676d8e
@ -11,11 +11,11 @@ export async function readManifest(manifest) {
|
|||||||
|
|
||||||
const target = manifest?.remote_url ?? manifest
|
const target = manifest?.remote_url ?? manifest
|
||||||
|
|
||||||
if (urlRegex.test(target)) {
|
if (!fs.existsSync(Vars.cache_path)) {
|
||||||
if (!fs.existsSync(Vars.cache_path)) {
|
fs.mkdirSync(Vars.cache_path, { recursive: true })
|
||||||
fs.mkdirSync(Vars.cache_path, { recursive: true })
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
if (urlRegex.test(target)) {
|
||||||
const { data: code } = await axios.get(target)
|
const { data: code } = await axios.get(target)
|
||||||
|
|
||||||
const manifestChecksum = checksum(code, { algorithm: "md5" })
|
const manifestChecksum = checksum(code, { algorithm: "md5" })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user