chore: debug
This commit is contained in:
3
dist/utils/install.js
vendored
3
dist/utils/install.js
vendored
@@ -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([
|
||||
|
||||
@@ -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'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user