Commit 599520c
fix(release): unbreak Linux deb + Snap + Windows builds post-monorepo (#47)
Three regressions surfaced when v0.4.0 (the first release-please run
under the new monorepo layout) tried to build:
1. Linux `.deb` — fpm failed with "Parent directory does not exist:
.../release/@etherpad". electron-builder defaults the deb artifact
path + executable name to `package.json#name`, which is now the
scoped `@etherpad/desktop`. The `/` from the scope became a
directory in the output path.
2. Snap — `expected argument for flag '--executable'` followed by
`ERR_ELECTRON_BUILDER_CANNOT_EXECUTE`. Same root cause as deb: the
snap `--executable` argument can't carry a scoped name.
3. Windows — `[fetch-etherpad] failed: spawn pnpm ENOENT`. The
embedded-server fetch script spawned `pnpm` without going through
a shell, but on Windows pnpm resolves to `pnpm.cmd` which Node's
`child_process.spawn` won't find without `shell: true`.
Fixes:
- Add `linux.executableName: etherpad-desktop` to
`packages/desktop/build/electron-builder.yml`. That pins a
slash-free name for both deb and snap targets in one shot.
- Add `shell: process.platform === 'win32'` to the `spawn` call in
`packages/desktop/scripts/fetch-etherpad.mjs`. Same pattern we
used upstream in ether/etherpad's `admin/scripts/gen-api.mjs`.
These are pre-existing post-#29/#30 regressions; v0.3.2 was built
before the monorepo move, so its non-scoped root name shielded it.
The macOS build + Linux AppImage already succeed at v0.4.0, so this
PR's verification is the next tag rebuild.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 150d987 commit 599520c
2 files changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
39 | 48 | | |
40 | 49 | | |
41 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
48 | 57 | | |
49 | 58 | | |
50 | 59 | | |
| |||
0 commit comments