mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: linux assets
This commit is contained in:
1 parent
912f134eb6
commit
5dc55914ed
2 files changed
+4
-4
No files matched your search
@@ -13,7 +13,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
run: bun scripts/setupDepotDownloader.ts
|
run: bun scripts/setupDepotDownloader.ts
|
||||||
|
|
||||||
- name: Run DepotDownloader
|
- name: Run DepotDownloader
|
||||||
run: ./temp/depotDownloader/DepotDownloader.exe -os windows -app 444200 -username ${{ secrets.DEPOT_DOWNLOADER_USERNAME }} -password "${{ secrets.DEPOT_DOWNLOADER_PASSWORD }}"
|
run: ./temp/depotDownloader/DepotDownloader -os windows -app 444200 -username ${{ secrets.DEPOT_DOWNLOADER_USERNAME }} -password "${{ secrets.DEPOT_DOWNLOADER_PASSWORD }}"
|
||||||
|
|
||||||
- name: Apply patches
|
- name: Apply patches
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -18,13 +18,13 @@ await fetch(
|
|||||||
}>,
|
}>,
|
||||||
)
|
)
|
||||||
.then(({ assets }) => {
|
.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');
|
if (!asset) throw new Error('No asset found');
|
||||||
return fetch(asset.browser_download_url);
|
return fetch(asset.browser_download_url);
|
||||||
})
|
})
|
||||||
.then((response) => response.arrayBuffer())
|
.then((response) => response.arrayBuffer())
|
||||||
.then((arrayBuffer) =>
|
.then((arrayBuffer) =>
|
||||||
writeFile('temp/depotDownloader.zip', Buffer.from(arrayBuffer)),
|
writeFile('temp/depotDownloader.zip', new Uint8Array(arrayBuffer)),
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log('Unzipping...');
|
console.log('Unzipping...');
|
||||||
|
|||||||
Reference in new issue
Block a user