You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow our package to coexist with the official 'github-desktop' package #13
I use the PKGBUILD from github-desktop, but modify its source URL to github-desktop-plus in order to build from source, and the package works quite well.
I'm wondering if this will break the setup on Arch Linux.
Here are the PKGBUILD I modified and some patches to build for myself.
@Bryan2333 You are correct, the github-desktop PKGBUILD would probably stop working after this change.
When I have some free time, I'll prepare and test our own github-desktop-plus and github-desktop-plus-git AUR packages.
As a side note, why do you want to build the app from source? The github-desktop-plus-bin package (currently, our only AUR package) is more convenient and much faster to install.
@Bryan2333 Your PKGBUILD is very different from the github-desktop AUR package. Could you explain why did you make all those changes? This is a lot more than just "modifying its source URL".
I'll probably base mine on the existing AUR package and add some small tweaks from yours if needed.
@pol-rivero Sorry for the confusion — you’re right, this involves more than just changing the source URL.
I made these changes to improve the packaging process and add missing dependencies.
First, instead of manually copying the build output as in the original PKGBUILD, I extract the .pacman package produced by yarn package. This keeps the file structure consistent with upstream and reduces maintenance.
Second, the original PKGBUILD listed only minimal dependencies. I added libraries commonly required by Electron apps (GTK, X11, audio, fonts, etc.) to ensure it runs on minimal systems without missing libraries.
Lastly, I add the flag file support for the package like visual-studio-code-bin AUR package, which make it more convenient to pass some arguments to the executable.
First, instead of manually copying the build output as in the original PKGBUILD, I extract the .pacman package produced by yarn package. This keeps the file structure consistent with upstream and reduces maintenance.
In which way does this keep the structure consistent with upstream? Wouldn't it be "more consistent" to just keep our PKGBUILD as similar as possible to the upstream?
Second, the original PKGBUILD listed only minimal dependencies. I added libraries commonly required by Electron apps (GTK, X11, audio, fonts, etc.) to ensure it runs on minimal systems without missing libraries.
GTK: I agree, I'll add it to the list of dependencies.
X11: Not a dependency at all. The app runs perfectly on wayland.
Audio: This app has no audio, why would you want this?
Fonts: Already a transitive dependency of GTK, so not needed.
Lastly, I add the flag file support for the package like visual-studio-code-bin AUR package, which make it more convenient to pass some arguments to the executable.
I agree with this one and will add it to our version. I'll name it github-desktop-plus-flags.conf instead of github-desktop-flags.conf, for consistency. Thanks for the suggestion!
Activity
Bryan2333 commentedon Aug 9, 2025
I use the PKGBUILD from github-desktop, but modify its source URL to github-desktop-plus in order to build from source, and the package works quite well.
I'm wondering if this will break the setup on Arch Linux.
Here are the PKGBUILD I modified and some patches to build for myself.
PKGBUILD
Details
build-pacman-package.patch
Details
launch-github-desktop
Details
pol-rivero commentedon Aug 9, 2025
@Bryan2333 You are correct, the
github-desktopPKGBUILD would probably stop working after this change.When I have some free time, I'll prepare and test our own
github-desktop-plusandgithub-desktop-plus-gitAUR packages.As a side note, why do you want to build the app from source? The
github-desktop-plus-binpackage (currently, our only AUR package) is more convenient and much faster to install.pol-rivero commentedon Aug 10, 2025
@Bryan2333 Your PKGBUILD is very different from the
github-desktopAUR package. Could you explain why did you make all those changes? This is a lot more than just "modifying its source URL".I'll probably base mine on the existing AUR package and add some small tweaks from yours if needed.
Bryan2333 commentedon Aug 11, 2025
@pol-rivero Sorry for the confusion — you’re right, this involves more than just changing the source URL.
I made these changes to improve the packaging process and add missing dependencies.
First, instead of manually copying the build output as in the original PKGBUILD, I extract the .pacman package produced by
yarn package. This keeps the file structure consistent with upstream and reduces maintenance.Second, the original PKGBUILD listed only minimal dependencies. I added libraries commonly required by Electron apps (GTK, X11, audio, fonts, etc.) to ensure it runs on minimal systems without missing libraries.
Lastly, I add the flag file support for the package like visual-studio-code-bin AUR package, which make it more convenient to pass some arguments to the executable.
pol-rivero commentedon Aug 11, 2025
In which way does this keep the structure consistent with upstream? Wouldn't it be "more consistent" to just keep our PKGBUILD as similar as possible to the upstream?
I agree with this one and will add it to our version. I'll name it
github-desktop-plus-flags.confinstead ofgithub-desktop-flags.conf, for consistency. Thanks for the suggestion!