mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-10-01 09:19:34 +05:30
fix(build): snap config schema — drop invalid 'channels' key
electron-builder 26.x rejected the build with
'configuration.snap should be one of these: null' because
'channels' isn't part of the SnapOptions schema in this
version (it's a snapcraft.yaml / Snap Store publish-side
concept, not a build-time key).
Also relocated 'desktopName' out of linux.* — the warning
says to set it in package.json (done in the prior commit)
and let electron-builder merge it; setting it inline
under linux.* is rejected by the schema too.
What actually silences the warning now:
- package.json: 'desktopName': 'MarkdownConverter' so
Electron sets the same WM_CLASS on the X11/Wayland
window.
- electron-builder.config.js: 'syncDesktopName: true'
inside linux.* so the generated .desktop file's
StartupWMClass matches.
- electron-builder.config.js: 'snap: { confinement,
grade }' at the top level using the valid keys only.
Verified by a fresh linux build producing all three
artifacts (deb, AppImage, snap) without warnings or
schema errors.
Amit Haridas
This commit is contained in:
@@ -125,19 +125,21 @@ module.exports = {
|
|||||||
category: 'Utility',
|
category: 'Utility',
|
||||||
maintainer: 'ConcreteInfo <amit.wh@gmail.com>',
|
maintainer: 'ConcreteInfo <amit.wh@gmail.com>',
|
||||||
extraFiles: toolExtraFiles('linux'),
|
extraFiles: toolExtraFiles('linux'),
|
||||||
// v4.13.0 — set desktopName + sync so installed .desktop entry uses
|
// v4.13.0 — keep the generated .desktop file's StartupWMClass in sync
|
||||||
// a stable WM_CLASS / app_id, otherwise DEs cannot link the running
|
// with the top-level desktopName in package.json so DEs can link the
|
||||||
// window to the launcher icon (electron-builder warning at pack time).
|
// running window to the launcher icon. desktopName itself is read
|
||||||
desktopName: 'MarkdownConverter',
|
// from package.json (electron-builder merges package.json fields into
|
||||||
|
// the linux config automatically).
|
||||||
syncDesktopName: true,
|
syncDesktopName: true,
|
||||||
// Snap channel: latest/edge tracks the auto-updater feed on GitHub
|
},
|
||||||
// releases. `stable` would publish to a manually-managed channel and
|
// v4.13.0 — Snap packaging defaults. `grade: stable` is required for
|
||||||
// break the electron-updater handshake.
|
// the auto-updater to push updates to the stable track from GitHub
|
||||||
|
// releases (electron-updater expects stable-grade snaps). We let
|
||||||
|
// snapcraft pick its default channel set — the publish-side channels
|
||||||
|
// live in `snapcraft.yaml` / the Snap Store, not in this config.
|
||||||
snap: {
|
snap: {
|
||||||
confinement: 'strict',
|
confinement: 'strict',
|
||||||
grade: 'stable',
|
grade: 'stable',
|
||||||
channels: ['latest/edge'],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
deb: {
|
deb: {
|
||||||
depends: ['imagemagick', 'libreoffice-common'],
|
depends: ['imagemagick', 'libreoffice-common'],
|
||||||
|
|||||||
Reference in New Issue
Block a user