feat: linux assets

This commit is contained in:
TrèsAbhi committed 2024-08-23 19:50:48 -05:00
1 parent 912f134eb6
commit 5dc55914ed
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -18,13 +18,13 @@ await fetch(
}>,
)
.then(({ assets }) => {
const asset = assets.find(({ name }) => name.includes('windows-x64'));
const asset = assets.find(({ name }) => name.includes('linux-x64'));
if (!asset) throw new Error('No asset found');
return fetch(asset.browser_download_url);
})
.then((response) => response.arrayBuffer())
.then((arrayBuffer) =>
writeFile('temp/depotDownloader.zip', Buffer.from(arrayBuffer)),
writeFile('temp/depotDownloader.zip', new Uint8Array(arrayBuffer)),
);
console.log('Unzipping...');