Port the installer to Arch/Omarchy - #8
Open
shawnyeager wants to merge 4 commits into
Open
shawnyeager wants to merge 4 commits into
shawnyeager wants to merge 4 commits into
Conversation
The script only told you to `apt install g++-11`, and the compiler search stopped at g++-15, so a current Arch box with plain `g++` 16 worked only by accident. Missing tools now print the matching package command (omarchy pkg add / pacman / apt / dnf), the compiler walk starts at g++-30, and the Electron zip is checked against upstream SHASUMS256.txt before unpack. The launcher asks Electron for Wayland and PipeWire capture, which is what Hyprland/Omarchy actually run. The desktop entry drops the duplicate main category that desktop-file-validate warns about, and .gitignore now covers the .dmg, asar, and .cache the README already claimed it covered. Tested on Omarchy 4.0 (gcc 16, glibc 2.44) with Granola 7.568.0 / Electron 44.0.0: native module smoke test passes, window class is granola on native Wayland, and the login screen comes up.
icon.png in the bundle is a black "g|" glyph on a fully transparent canvas. On a dark launcher that reads as a missing icon. mac-icon.png is the lime squircle Granola actually ships; fall back to icon.png only if it is absent.
xdg-mime default left granola:// in mimeapps.list, and a leftover ~/Applications directory after deleting the app. Strip those on uninstall, and kill only this install's electron rather than any process whose command line happens to mention the path.
packaging/arch/PKGBUILD downloads the official macOS .dmg, patches the Linux-rejected platform string, rebuilds Granola's sqlite fork against distro electron44, and installs /usr/bin/granola. The desktop icon is the lime squircle, not the transparent wordmark. makepkg -si from that directory is the install path on Arch and Omarchy. Built and installed 7.568.0-1 locally.
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.
Makes
granola-linux.shwork as a first-class install on Arch and Omarchy, then documents it.This overlaps with #1 (Electron checksums, Arch README) and #2 (compiler search past g++-15,
Categories=Office;). Happy to drop anything you would rather take from those PRs instead.What changed
omarchy pkg add …on Omarchy,pacman/apt/dnfelsewhere.g++-30down tog++-11, then the unversionedg++. Arch’s currentg++is 16; the old list stopped at 15.SHASUMS256.txtbefore unpack.--ozone-platform-hint=autoplusWebRTCPipeWireCapturerso Hyprland/Omarchy get native Wayland and a PipeWire capture path throughxdg-desktop-portal.StartupNotify,desktop-file-validateclean..gitignorefor.cache/,*.dmg, and*.asar(the README already said this file existed).Tested
Omarchy 4.0.0 (
ID=omarchy, Arch, gcc 16.2, glibc 2.44, x86-64) with the currentGranola - AI Notepad.dmg:g++16better-sqlite3-multiple-ciphers12.9.0, smoke test (SQLCipher +updateHook) passedgranola, native Wayland (xwayland: 0), login screen rendereddesktop-file-validatesilent;granola://registered togranola.desktop7zip was not installed from the repo (no TTY for
sudo); the script’s bundled7zzdownload was the path that ran.Electron 44 logs
'--ozone-platform=wayland' is not compatible with Vulkanon this Intel Ultra box. The window still came up on Wayland and looked correct, so the launcher does not force X11 or disable Vulkan.