Commit 3136574
fix(desktop): unblock Linux deb/rpm CI and Windows selftest hang (#97)
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
## Problem
`desktop-v1.0.1` workflow run
[33196314686](https://github.com/DeepSQLAI/deepsql/actions/runs/33196314686):
| Job | Result | Root cause |
|-----|--------|------------|
| **Linux** | Failed | `.deb` build: `Please specify project homepage`
(electron-builder FpmTarget) |
| **Windows** | Cancelled after ~6h | `selftest:tunnel` passed but
process never exited — `fs.rmSync` threw `ENOTEMPTY` on temp dir before
`app.exit()` |
| **macOS** | Success | — |
| **Release attach** | Skipped | Blocked by Linux failure |
## Fix
1. **`desktop/package.json`** — add `homepage` + `repository` (required
for `.deb`/`.rpm` metadata); bump to **1.0.2**
2. **`desktop/scripts/tunnel-selftest.js`** — await server close, retry
temp cleanup, `.catch()` → `app.exit(1)` so CI never hangs
3. **`.github/workflows/desktop-release.yml`** — `apt-get install rpm`
on ubuntu-latest (needed for `.rpm` target)
## Verification
Local (Linux runner equivalent):
- `npm test` — 4/4 pass
- `xvfb-run npm run selftest:tunnel` — 14/14 checks, clean exit
- `electron-builder --linux` — AppImage + deb (amd64/arm64) + rpm built
for v1.0.2
## After merge
Push tag to trigger installers:
```bash
git tag -a desktop-v1.0.2 -m "DeepSQL Desktop v1.0.2"
git push origin desktop-v1.0.2
```
<!-- CURSOR_AGENT_PR_BODY_END -->
<div><a
href="https://cursor.com/agents/bc-8ce91e70-c67b-48c6-84b3-05bb9d06231a?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a
href="https://cursor.com/background-agent?bcId=bc-8ce91e70-c67b-48c6-84b3-05bb9d06231a&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>1 parent cca0d1a commit 3136574
4 files changed
Lines changed: 37 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
230 | 237 | | |
231 | 238 | | |
232 | 239 | | |
233 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
234 | 244 | | |
235 | 245 | | |
236 | 246 | | |
| |||
291 | 301 | | |
292 | 302 | | |
293 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
294 | 314 | | |
295 | 315 | | |
296 | 316 | | |
| |||
0 commit comments