Skip to content

Commit dd9c9ad

Browse files
committed
Remove desktop workspace due to packager not recognizing hoisted modules
1 parent c5330d0 commit dd9c9ad

File tree

6 files changed

+5858
-10
lines changed

6 files changed

+5858
-10
lines changed

.github/workflows/build-desktop.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
build:
1616
strategy:
1717
matrix:
18-
os: [windows-latest, ubuntu-latest]
18+
os: [windows-latest, ubuntu-latest, macos-latest]
1919
runs-on: ${{ matrix.os }}
2020

2121
steps:
@@ -43,10 +43,12 @@ jobs:
4343
run: npm install --workspace=web
4444

4545
- name: Install desktop dependencies
46-
run: npm install --workspace=desktop
46+
run: npm install
47+
working-directory: desktop
4748

4849
- name: Rebuild native modules
49-
run: npm run rebuild-native --workspace=desktop
50+
run: npm run rebuild-native
51+
working-directory: desktop
5052

5153
- name: Build Electron App
5254
run: |

.github/workflows/build-mobile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
- name: Checkout
2626
uses: actions/checkout@v4
2727

28-
- name: Set up JDK 17
28+
- name: Set up JDK 21
2929
uses: actions/setup-java@v3
3030
with:
31-
java-version: "17"
31+
java-version: "21"
3232
distribution: "temurin"
3333

3434
- name: Setup Android SDK

desktop/forge.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const config: ForgeConfig = {
2020
icon: path.join(__dirname, "../shared-assets/icons/electron/pulse_editor"),
2121
// Copy the electron modules and the nextjs build to the electron build.
2222
extraResource: electronModules
23-
.map((module) => `../node_modules/${module}`)
23+
.map((module) => `./node_modules/${module}`)
2424
.concat("../build/next"),
2525
afterComplete: [
2626
(extractPath, electronVersion, platform, arch, done) => {

0 commit comments

Comments
 (0)