fix post build script

This commit is contained in:
HolographicHat 2022-11-23 14:40:57 +08:00
parent ddf1e96e9b
commit b15db8cdc3
No known key found for this signature in database
GPG Key ID: 12C8B5B85E5CE5C3

View File

@ -10,9 +10,10 @@ const utils = require("./utils");
} }
for (const path of fs.readdirSync("out")) { for (const path of fs.readdirSync("out")) {
console.log(`upload ${path}...`) console.log(`upload ${path}...`)
await utils.uploadReleaseAsset(releaseInfo["upload_url"], path) await utils.uploadReleaseAsset(releaseInfo["upload_url"], `out/${path}`)
} }
} catch (e) { } catch (e) {
console.log(e) console.log(e)
} }
})() })()