Skip to content

Commit

Permalink
custom build
Browse files Browse the repository at this point in the history
  • Loading branch information
silentrald committed Jan 2, 2025
1 parent 2991ff4 commit 30d845a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Node.js CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
# branches: ["master"]
# pull_request:
# branches: ["master"]

jobs:
build:
Expand Down
10 changes: 10 additions & 0 deletions src/main/services/mods/bs-mods-manager.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ export class BsModsManagerService {
const bsPath = await this.bsLocalService.getVersionPath(version);
const modsPath = path.join(bsPath, modsDir);

log.info("MARKER getModsInDir", modsPath);

if (!pathExistsSync(modsPath)) {
log.info("MARKER modsPath does not exist");
return [];
}

Expand Down Expand Up @@ -102,6 +105,9 @@ export class BsModsManagerService {
});

const mods = await Promise.all(promises);

log.info("MARKER filtered mods", mods.filter(Boolean));

return mods.filter(Boolean);
}

Expand Down Expand Up @@ -307,6 +313,8 @@ export class BsModsManagerService {
}

public async getInstalledMods(version: BSVersion): Promise<BbmModVersion[]> {
log.info("MARKER getInstalledMods");

this.manifestMatches = [];

const bsipa = await this.getBsipaInstalled(version);
Expand All @@ -316,6 +324,8 @@ export class BsModsManagerService {

const dirMods = pluginsMods.flat().concat(libsMods.flat());

log.info("MARKER got mods", pluginsMods, libsMods, dirMods);

const modsDict = new Map<number, BbmModVersion>();

if (bsipa) {
Expand Down

0 comments on commit 30d845a

Please sign in to comment.