diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f3320ee78..f9427b41d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: include: - - os: windows-latest + - os: windows-2022 dist: 'dist' installer: 'dist/Better-CrewLink Setup*.exe' - os: ubuntu-latest @@ -45,6 +45,8 @@ jobs: .yarn key: ${{ runner.os }}-3-${{ hashFiles('yarn.lock')}} + - name: Install Python Dependencies + run: python -m pip install setuptools - name: Install Dependencies if: steps.node-cache.outputs.cache-hit != 'true' diff --git a/src/main/GameReader.ts b/src/main/GameReader.ts index b4c8d0f91..c3a8ca7f0 100644 --- a/src/main/GameReader.ts +++ b/src/main/GameReader.ts @@ -98,7 +98,7 @@ export default class GameReader { this.pid = processOpen.th32ProcessID; this.amongUs = openProcess(processOpen.th32ProcessID); this.gameAssembly = findModule('GameAssembly.dll', this.amongUs.th32ProcessID); - this.gamePath = getProcessPath(this.amongUs.handle); + this.gamePath = this.is_linux ? `/proc/${this.pid}/cwd${getProcessPath(this.amongUs.handle)}` : getProcessPath(this.amongUs.handle); this.loadedMod = this.getInstalledMods(this.gamePath); await this.initializeoffsets(); this.sendIPC(IpcRendererMessages.NOTIFY_GAME_OPENED, true);