chore: debug
This commit is contained in:
3
dist/utils/getGithubRelease.js
vendored
3
dist/utils/getGithubRelease.js
vendored
@@ -1,3 +1,4 @@
|
||||
import { nanoid } from 'nanoid';
|
||||
import fetch from 'node-fetch';
|
||||
import { getArchitecture } from './getAsset.js';
|
||||
export default async (version, token, fullRepository, customDownloadUrl, miscTestBuilds) => {
|
||||
@@ -12,7 +13,7 @@ export default async (version, token, fullRepository, customDownloadUrl, miscTes
|
||||
if (customDownloadUrl) {
|
||||
return {
|
||||
name: 'custom',
|
||||
version: version + Math.random().toString(36).slice(-8),
|
||||
version: `${version}-${nanoid(10)}`,
|
||||
html_url: customDownloadUrl,
|
||||
tag_name: 'custom',
|
||||
assets: [
|
||||
|
||||
2
dist/utils/install.js
vendored
2
dist/utils/install.js
vendored
@@ -18,7 +18,9 @@ export default async (release, token) => {
|
||||
'Authorization': new URL(asset.asset.browser_download_url).host.includes('github.com') ? `token ${token}` : ''
|
||||
});
|
||||
const extracted = await extractZip(zipPath, join(homedir(), '.bun', 'bin'));
|
||||
console.log(extracted);
|
||||
const newCache = await cacheDir(extracted, 'bun', release.version);
|
||||
console.log(newCache, join(extracted, asset.name));
|
||||
await saveCache([
|
||||
join(extracted, asset.name)
|
||||
], `bun-${process.platform}-${asset.name}-${release.version}`);
|
||||
|
||||
Reference in New Issue
Block a user