Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ jobs:
ls -la build/index.html || exit 1

- name: Rebuild and verify Electron native modules
timeout-minutes: 10
run: yarn electron:prepare-package

- name: Package Electron app
Expand Down Expand Up @@ -318,6 +319,7 @@ jobs:
ls -la build/index.html || exit 1

- name: Rebuild and verify Electron native modules
timeout-minutes: 10
run: yarn electron:prepare-package

- name: Package Electron app
Expand Down Expand Up @@ -383,6 +385,7 @@ jobs:
ls -la build/index.html || exit 1

- name: Rebuild and verify Electron native modules
timeout-minutes: 10
run: yarn electron:prepare-package

- name: Package Electron app
Expand Down Expand Up @@ -450,6 +453,7 @@ jobs:

- name: Rebuild and verify Electron native modules
shell: bash
timeout-minutes: 10
run: yarn electron:prepare-package

- name: Package Electron app
Expand Down
5 changes: 4 additions & 1 deletion forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ const config = {
},

rebuildConfig: {
force: true,
// Only better-sqlite3 is intentionally prepared and verified before packaging.
// Using `onlyModules` prevents Forge from rebuilding unrelated optional addons
// that inflate Windows package times.
onlyModules: ['better-sqlite3'],
},

hooks: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"electron:no-delete-data": "yarn build:preload && electron .",
"electron:start": "concurrently \"cross-env BROWSER=none yarn start\" \"wait-on http://5chan.localhost:1355 && yarn electron\"",
"electron:start:no-delete-data": "concurrently \"cross-env BROWSER=none yarn start\" \"wait-on http://5chan.localhost:1355 && yarn electron:no-delete-data\"",
"electron:rebuild-native": "electron-rebuild -f -w better-sqlite3",
"electron:rebuild-native": "electron-rebuild -f -o better-sqlite3",
"electron:verify-native": "node scripts/verify-electron-native-modules.js",
"electron:prepare-package": "yarn electron:rebuild-native && yarn electron:verify-native",
"electron:package": "yarn build && yarn build:preload && yarn electron:prepare-package && electron-forge package",
Expand Down
Loading