chore: debug

This commit is contained in:
xHyroM 2022-07-28 08:35:10 +02:00
parent f5a14b237f
commit b3fb4f3421
2 changed files with 4 additions and 2 deletions

View File

@ -19,13 +19,14 @@ export default async (release, token) => {
headers: {
'Authorization': `token ${token}`
}
})).text();
})).arrayBuffer();
console.log(new URL(asset.asset.browser_download_url).host.includes('github.com'));
const zipPath = await downloadTool(asset.asset.browser_download_url, `token ${token}`,
// @ts-expect-error
{
'Authorization': `token ${token}`
});
console.log(zipPath);
const extracted = await extractZip(zipPath, join(homedir(), '.bun', 'bin'));
const newCache = await cacheDir(extracted, 'bun', release.version);
await saveCache([

View File

@ -23,7 +23,7 @@ export default async(release: Release, token: string) => {
headers: {
'Authorization': `token ${token}`
}
})).text()
})).arrayBuffer()
console.log(new URL(asset.asset.browser_download_url).host.includes('github.com'));
const zipPath = await downloadTool(
@ -34,6 +34,7 @@ export default async(release: Release, token: string) => {
'Authorization': `token ${token}`
}
);
console.log(zipPath)
const extracted = await extractZip(zipPath, join(homedir(), '.bun', 'bin'));