File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 cache : pnpm
3333
3434 - name : Install
35- run : pnpm install --frozen-lockfile
35+ run : env -u ELECTRON_SKIP_BINARY_DOWNLOAD -u ELECTRON_SKIP_DOWNLOAD pnpm install --frozen-lockfile --ignore-scripts=false
36+
37+ - name : Install Electron binary
38+ run : |
39+ env -u ELECTRON_SKIP_BINARY_DOWNLOAD -u ELECTRON_SKIP_DOWNLOAD pnpm -C apps/desktop exec node -e "
40+ const { execFileSync } = require('node:child_process');
41+ const path = require('node:path');
42+ const electronDir = path.dirname(require.resolve('electron/package.json'));
43+ execFileSync(process.execPath, [path.join(electronDir, 'install.js')], { stdio: 'inherit' });
44+ "
45+
46+ - name : Verify Electron binary
47+ run : |
48+ env -u ELECTRON_SKIP_BINARY_DOWNLOAD -u ELECTRON_SKIP_DOWNLOAD pnpm -C apps/desktop exec node -e "
49+ const fs = require('node:fs');
50+ const electronPath = require('electron');
51+ fs.accessSync(electronPath, fs.constants.X_OK);
52+ console.log(electronPath);
53+ "
3654
3755 - name : Lint
3856 run : pnpm lint
You can’t perform that action at this time.
0 commit comments