mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 04:28:28 +02:00
chore: debug
This commit is contained in:
parent
a99ac77932
commit
dbb8e61d45
22 changed files with 530 additions and 3 deletions
|
@ -1,3 +1,4 @@
|
|||
import { nanoid } from 'nanoid';
|
||||
import fetch from 'node-fetch';
|
||||
import { getArchitecture } from './getAsset.js';
|
||||
|
||||
|
@ -26,7 +27,7 @@ export default async(version: string, token: string, fullRepository: string, cus
|
|||
if (customDownloadUrl) {
|
||||
return {
|
||||
name: 'custom',
|
||||
version: version + Math.random().toString(36).slice(-8),
|
||||
version: `${version}-${nanoid(10)}`,
|
||||
html_url: customDownloadUrl,
|
||||
tag_name: 'custom',
|
||||
assets: [
|
||||
|
|
|
@ -28,11 +28,13 @@ export default async(release: Release, token: string) => {
|
|||
);
|
||||
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}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue