feat: windows

This commit is contained in:
TrèsAbhi committed 2024-02-19 21:10:13 -06:00
1 parent c0670e9025
commit 46f11af717
2 files changed
+3 -6

No files matched your search

+2 -5
View File
@@ -7,7 +7,7 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: windows-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
@@ -34,8 +34,5 @@ jobs:
- name: Setup DepotDownloader - name: Setup DepotDownloader
run: yarn setup:depotdownloader run: yarn setup:depotdownloader
- name: Add DepotDownloader
run: git update-index --add --chmod=+x ./temp/depotDownloader/DepotDownloader
- name: Run DepotDownloader - name: Run DepotDownloader
run: ./temp/depotDownloader/DepotDownloader -app 444200 run: ./temp/depotDownloader/DepotDownloader.exe -app 444200
+1 -1
View File
@@ -18,7 +18,7 @@ await fetch(
}>, }>,
) )
.then(({ assets }) => { .then(({ assets }) => {
const asset = assets.find(({ name }) => name.includes('linux-x64')); const asset = assets.find(({ name }) => name.includes('windows-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);
}) })