fix: worker url

This commit is contained in:
Innei
2022-05-14 21:16:56 +08:00
parent 9c27f3d32c
commit 66e882b2dd
2 changed files with 6 additions and 6 deletions

View File

@@ -34,9 +34,9 @@ async function main() {
throw new Error('no download url found')
}
const buffer = await fetch(
`https://small-lake-9960.tukon479.workers.dev/${downloadUrl}`,
).then((res) => res.buffer())
const buffer = await fetch(`https://cc.shizuri.net/${downloadUrl}`).then(
(res) => res.buffer(),
)
const tmpName = (Math.random() * 10).toString(16)
fs.writeFileSync(`/tmp/${tmpName}.zip`, buffer, { flag: 'w' })
await $`rm -rf ./run`

View File

@@ -29,9 +29,9 @@ async function main() {
throw new Error('no download url found')
}
const buffer = await fetch(
'https://small-lake-9960.tukon479.workers.dev/' + downloadUrl,
).then((res) => res.buffer())
const buffer = await fetch('https://cc.shizuri.net/' + downloadUrl).then(
(res) => res.buffer(),
)
fs.writeFileSync(`release-downloaded.zip`, buffer, { flag: 'w' })
await $`unzip release-downloaded.zip -d mx-server`
}