Skip to content

Commit 4ecfb1e

Browse files
committed
Fix missing shortcut after install (Linux deb + Windows NSIS)
- Linux: add deb target alongside AppImage so apt/dpkg creates a proper desktop entry and application menu item on installation - Linux: embed .desktop metadata (Name, Comment, Category, WMClass) in both AppImage and deb builds - Windows: explicitly set createDesktopShortcut/createStartMenuShortcut in nsis config (fixes cases where shortcuts were not created) - CI: upload *.deb artifacts to GitHub Release
1 parent ef46b0f commit 4ecfb1e

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ jobs:
4343
cache: 'npm'
4444
cache-dependency-path: electron/package-lock.json
4545

46-
# ── Linux: system libs required by Electron / AppImage ──────────────────
46+
# ── Linux: system libs required by Electron / AppImage / deb ───────────
4747
- name: Install Linux system deps
4848
if: matrix.platform == 'linux'
4949
run: |
5050
sudo apt-get update -qq
5151
sudo apt-get install -y --no-install-recommends \
52-
libgtk-3-dev libglib2.0-dev fuse libfuse2 rpm
52+
libgtk-3-dev libglib2.0-dev fuse libfuse2 rpm dpkg
5353
5454
# ── Python 3.11 for node-gyp ─────────────────────────────────────────────
5555
# distutils was removed in Python 3.12. node-gyp (used to rebuild
@@ -107,6 +107,7 @@ jobs:
107107
name: build-${{ matrix.platform }}
108108
path: |
109109
electron/dist/*.AppImage
110+
electron/dist/*.deb
110111
electron/dist/*.exe
111112
electron/dist/*.dmg
112113
electron/dist/*.zip
@@ -119,6 +120,7 @@ jobs:
119120
with:
120121
files: |
121122
electron/dist/*.AppImage
123+
electron/dist/*.deb
122124
electron/dist/*.exe
123125
electron/dist/*.dmg
124126
electron/dist/*.zip

electron/package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,24 @@
2929
"!test/**"
3030
],
3131
"linux": {
32-
"target": "AppImage",
33-
"icon": "../assets/icon.png"
32+
"target": ["AppImage", "deb"],
33+
"icon": "../assets/icon.png",
34+
"category": "Education",
35+
"desktop": {
36+
"Name": "AutoNote",
37+
"Comment": "Lecture notes generator from Canvas recordings",
38+
"StartupWMClass": "AutoNote"
39+
}
3440
},
3541
"win": {
3642
"target": "nsis",
3743
"icon": "../assets/icon.ico"
3844
},
45+
"nsis": {
46+
"createDesktopShortcut": true,
47+
"createStartMenuShortcut": true,
48+
"shortcutName": "AutoNote"
49+
},
3950
"mac": {
4051
"target": "dmg",
4152
"icon": "../assets/icon.icns"

0 commit comments

Comments
 (0)