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 3a2e601
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@ name: Node.js CI

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

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}
release:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Check out Git repository
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.11.0
cache: "npm"
- run: npm ci
- run: npm run build

- name: Unit tests
run: npm run test:unit
- run: npm run package

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: release-windows
path: release
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 3a2e601

Please sign in to comment.