wheaney / breezy-desktop

XR virtual workspace library for Linux
GNU General Public License v3.0
272 stars 33 forks source link

WIP: Add PKGBUILD file #25

Closed hodasemi closed 4 months ago

hodasemi commented 5 months ago

Hi,

I created a PKGBUILD file (for breezy-desktop the gnome version not the vulkan version) which is a build file for pacman (archlinux and its derivatives). The extensions seems to be working but I currently have problems with the ui. I omitted the xreal-air driver for now (I have a viture one) since it is more like a quick idea, but is the xreal-air driver needed to run the application?

If I start the application it just loops forever (the window doesn't open).

The advantage of using a PKGBUILD file is that everything is tracked via pacman without the reliance on scripts to install/update/uninstall things. (and without using flatpak) It could also be a base to create build files for other common package managers.

hodasemi commented 5 months ago

I added the xr driver to the build file. While testing I came across an error. I created an MR over there.

wheaney commented 5 months ago

Dude that's amazing! I've really wanted to research what it would take to get this into package managers but between apt, pacman, dnf, and probably a million others that probably don't actually reuse or share any configuration, the idea got a little overwhelming. Thanks for taking this first step!

wheaney commented 5 months ago

How does the PKGBUILD file link up with the pacman repo to get distributed? Does it have to be in the root of this package? Since this repo hosts multiple breezy implementations (vulkan vs gnome vs future stuff e.g. kwin effects), it would be nice to have each of those distributed as separate installs.

hodasemi commented 5 months ago

The PKGBUILD file is completely separated from the location in the repo. I don't know about the upstreaming into the arch repo. One actually needs to be accepted as contributor and such ... You can move the file into a separated directory and maybe add it to the releases that users can download it and execute makepkg on the file alone.

hodasemi commented 5 months ago

The installation process does work now. The extension is installed in the system. It shows itself in the gnome-extension ui thingy. The Breezy-Desktop program is installed and can be opened. I still need to add an icon for desktop file (minor thing actually). Where it hangs now: 1) It can't perform the verification step since the verification is not installed. If I skip this check entirely the ui opens. 2) If I enable the trigger in the ui nothing happens. Maybe you have some ideas what to look for here. I'm gonna have a look on my own anyway.

hodasemi commented 5 months ago

I missed the environment variable BREEZY_DESKTOP in the XRLinuxDriver.

I need to add icons. Then 2 issue remain:

1) access rights for the license directory (this is where your issue comes in) 2) Skipping the verification or at least ignoring it in this case

Other than that: both pkg files are ready to go.

wheaney commented 5 months ago

Can you let me know how I can test this myself?

hodasemi commented 5 months ago

Hi, yesterday I made the changes to the license location and I added a command line option to skip the verification process. Breezy-Desktop does currently not work with the new license file location and the desktop file icons are still missing. Apart from that:

1) Download the PKGBUILD file and place it somewhere (I recommend outside of the repo if you clone it) 2) Until it is merged you need to change the url from wheaney to hodasemi, because the changes are obviously not available on your master currently 3) execute makepkg -si (s installs dependencies, i installs the package after building it) in the directory of your PKGBUILD 4) I think you need to reboot (or maybe just login and logout) for the gnome-extension to become available.

hodasemi commented 5 months ago

License location and icons work now. I merged the rayneo changes into XRLinuxDriver, since then enabling doesn't do anything anymore.

hodasemi commented 5 months ago

The same as in the other MR. Installation works as is_productivity_granted does.

hodasemi commented 5 months ago

https://github.com/wheaney/XRLinuxDriver/pull/60/commits/dd449fa96a4f054aaed095e1980e36c76bf94dfb That fixed the issue.