Commit b04683a
ci(desktop): fix unsigned macOS builds and Linux Electron sandbox (#89)
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
## Summary
Fixes the `desktop-v1.0.0` CI failures that blocked publishing DeepSQL
Desktop installers. After this lands, re-tag / re-run `desktop-release`
so `/download` has assets.
## Root causes (from failed run)
| Platform | Failure |
|----------|---------|
| Linux | Tunnel selftest: Electron aborts — `chrome-sandbox` lacks
root:4755 on hosted runners |
| macOS | `electron-builder` treated empty `CSC_LINK` (unset secret →
empty string) as a file path → `…/desktop not a file` |
| Windows | Cancelled after sibling failures; never reached builder |
## Changes
- Selftest: `ELECTRON_DISABLE_SANDBOX=1` (sandbox irrelevant for
headless CI)
- Build: only export `CSC_*` when `DESKTOP_CSC_LINK` is non-empty;
otherwise `CSC_IDENTITY_AUTO_DISCOVERY=false` for unsigned installers
- `desktop/README.md`: document the CI behavior
## After merge
```bash
# Option A — new patch tag from main
git checkout main && git pull
git tag -a desktop-v1.0.1 -m "DeepSQL Desktop v1.0.1"
git push origin desktop-v1.0.1
# Option B — re-run workflow_dispatch on main, then attach assets manually
```
Then confirm the `desktop-v*` GitHub Release has
dmg/zip/exe/AppImage/deb and `/download` lists them.
## Test plan
- [ ] CI green on this PR
- [ ] After merge: desktop-release succeeds on macOS + Linux + Windows
- [ ] Release assets appear; `/download` no longer shows empty state
<!-- 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 61e1d57 commit b04683a
2 files changed
Lines changed: 33 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
| 56 | + | |
| 57 | + | |
50 | 58 | | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
60 | 71 | | |
61 | 72 | | |
62 | 73 | | |
63 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
64 | 85 | | |
65 | 86 | | |
66 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
| |||
0 commit comments