Skip to content

Commit

Permalink
fix: patches
Browse files Browse the repository at this point in the history
  • Loading branch information
tresabhi committed Oct 21, 2024
1 parent c7cb135 commit d8f6e8f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
WOTB_DLC_CDN: ${{ secrets.WOTB_DLC_CDN }}
run: bun scripts/applyPatches.ts --depot
run: bun setup:patches --depot

- name: (ZIP) Download client
if: github.event.inputs.zip_url != ''
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"dev:api": "bun --filter=@blitzkit/api run dev",
"start:bot": "bun dist/bot/index.js",
"setup:depotdownloader": "bun --filter=@blitzkit/scripts run setup:depotdownloader",
"setup:patches": "bun --filter=@blitzkit/scripts run setup:patches",
"start:website": "bun --filter=@blitzkit/website run start",
"host:docs": "vitepress preview docs",
"lint": "tsc",
Expand Down
3 changes: 2 additions & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"build:assets": "bun src/buildAssets/index.ts",
"build:averages": "bun src/averages.ts",
"setup:depotdownloader": "bun src/setupDepotDownloader.ts"
"setup:depotdownloader": "bun src/setupDepotDownloader.ts",
"setup:patches": "bun src/applyPatches.ts"
},
"dependencies": {
"progress": "^2.0.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/scripts/src/buildAssets/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const isDepot = argv.includes('--depot');

export const DATA = isDepot
? await (async () => {
const [installationVersion] = await readdir(`depots/444202`);
return `depots/444202/${installationVersion}/Data`;
const [installationVersion] = await readdir(`../../depots/444202`);
return `../../depots/444202/${installationVersion}/Data`;
})()
: 'C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz/Data';

0 comments on commit d8f6e8f

Please sign in to comment.