Repository navigation
Add Ubuntu .deb packaging for Basil - #2
Closed
michaelstaake wants to merge 2 commits into
Closed
michaelstaake wants to merge 2 commits into
michaelstaake wants to merge 2 commits into
Conversation
electron-builder produces Basil-<version>-amd64.deb for x64, with a desktop entry, MIME types, and hicolor icons. Windows portable and NSIS builds stay on the existing scripts. Linux skips attrib and the registry theme probe, uses a PNG tray icon, and writes an XDG autostart file for start-with-boot.
Electron 43's highest glibc symbol is 2.25, and the binary links libudev directly. Ubuntu 26.04's glibc 2.43 still satisfies that dependency.
Owner
Author
|
Superseded by #3 / v26.10.1, which includes the Ubuntu .deb packaging on main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an x64 Debian package for Basil alongside the existing Windows portable and NSIS builds. AppImage, snap, and Flatpak are not targets.
npm run buildandnpm run build:dirstill pass--win.npm run build:debruns the same version wrapper with--linux deb --x64and writesrelease/Basil-<version>-amd64.deb.The package installs as
basil(/usr/bin/basil, files under/opt/Basil). electron-builder installscom.basil.editor.desktop(applications menu,StartupWMClass, and Open With for common text types) plus hicolor icons. Locale packs other thanen-USare still stripped inafterPack.Ubuntu 26.04 dropped transitional library names such as
libgtk-3-0, so Depends lists thet64packages first, with the older name as an alternative. The Electron 43 binary's highest glibc symbol is 2.25, and it linkslibudevdirectly, so the package depends onlibc6 (>= 2.25)andlibudev1. Ubuntu 26.04 ships glibc 2.43.Linux behavior
nativeTheme. The WindowsAppsUseLightThemeregistry probe still returns immediately off win32.attrib +hon~/.basilruns only on Windows. The leading dot hides the folder on Linux..ico.~/.config/autostart/com.basil.editor.desktop($XDG_CONFIG_HOMEwhen set) that launches/opt/Basil/basil --hidden. Electron's login-item API is Windows/macOS only, so the Windows NSIS Run key is unchanged.npm run devremoves that autostart file so a dev Electron binary is not registered. Sessions that ignore XDG autostart, or that have no StatusNotifier tray, will not show a hidden Basil. Ubuntu's desktop provides a tray host;libayatana-appindicator3-1is recommended.CI
release.ymlgains abuild-linuxjob that uploads the.debwhen a GitHub Release is published. The Windows job is unchanged.linux-deb.ymlbuilds the.debon pull requests andworkflow_dispatchand uploads it as a workflow artifact. It does not publish a release.Test plan
npm test,npm run typecheck, andnpm run lintnpm run build:debon Linux producedrelease/Basil-26.7.1-amd64.debbasil, archamd64, maintainer Michael Staake, sectioneditors, t64 Depends,libudev1, glibc>= 2.25resources/icon.png, and onlyen-US.pakapt-get install -s ./Basil-26.7.1-amd64.debresolved on Ubuntu 24.04 (t64 packages already present; it would pull the recommended ayatana tray library)sudo apt install ./Basil-<version>-amd64.deb, launch Basil from the menu, confirm Open With on a.txt, and toggle Start with boot