ProtonUp-Qt icon indicating copy to clipboard operation
ProtonUp-Qt copied to clipboard

Pacstall

Open trymeouteh opened this issue 2 years ago • 11 comments

Please add this app into the pacstall repository. Pacstall is the AUR for Ubuntu which will allow Ubuntu users to easily install the app and receive updates very shortly after an update is released.

https://pacstall.dev/

trymeouteh avatar Jun 20 '22 21:06 trymeouteh

I currently provide ProtonUp-Qt as an AppImage and on Flathub. This is to ensure every source is up to date and to keep it simple (don't confuse anyone). They work fine on most distros (Ubuntu doesn't ship with Flatpak preinstalled, only AppImage support).

There also was a discussion about providing a deb file. But maybe having a repo like PPA/Pacstall/Snap for Ubuntu makes more sense. For Arch, there is an AUR package available, currently maintained by yochananmarqos.

Are there enough people who would use an official Pacstall repo? Is there anyone who want's to create and maintain a Pacstall package? Is it possible to automatically update the package, e.g. using GitHub Actions and pacup?

DavidoTek avatar Jun 21 '22 13:06 DavidoTek

If a package is in repology, pacup is the easiest method of updating a package. All that needs to be done is to declare a repology array in a pacscript, then run pacup -s path/to/pacscript, and it will update to the latest version from repology, and update the hash. If there are other things that need to be done, like a new dependency, updated installation process, etc, then you can just make a new commit in the PR.

Elsie19 avatar Jun 22 '22 16:06 Elsie19

What's the recommended way to install python dependencies and where? @Henryws

The script could automatically download the newest release version (latest tag) and install the dependencies from the requirements.txt. This way maintenance would be minimal.

url="https://github.com/DavidoTek/ProtonUp-Qt.git"
pkgver() {
    # get the latest tag (newest release version)
    git ls-remote --tags "https://github.com/DavidoTek/ProtonUp-Qt" | tail -n1 | cut -f1 | cut -c1-8
}
version="$(pkgver)"

DavidoTek avatar Jun 22 '22 19:06 DavidoTek

The way to work with python deps is to install them with pip, then in removescript, use pip to remove them.

Elsie19 avatar Jun 22 '22 19:06 Elsie19

Okay. Should the dependencies be installed globally or in the ${STOWDIR} only for the app? (Removing the globally would most likely break other apps).

DavidoTek avatar Jun 22 '22 19:06 DavidoTek

Preferably in STOWDIR

Elsie19 avatar Jun 22 '22 20:06 Elsie19

Alright. I created a Pacscript, maybe someone could try (and if necessary fix) it: https://gist.github.com/DavidoTek/b6a7c723c9017a20cab0a16fae6bf0ee

DavidoTek avatar Jun 22 '22 20:06 DavidoTek

Your removescript is empty

Elsie19 avatar Jun 22 '22 20:06 Elsie19

Now creates a symlink to /usr/bin/protonup-qt and removes it again. The STOWDIR/name should be removed by Pacstall, right? https://gist.github.com/DavidoTek/b6a7c723c9017a20cab0a16fae6bf0ee

DavidoTek avatar Jun 22 '22 20:06 DavidoTek

yes, pacstall removes $STOWDIR/$name.

-------- Original Message -------- On Jun 22, 2022, 15:45, DavidoTek wrote:

Now creates a symlink to /usr/bin/protonup-qt and removes it again. The STOWDIR/name should be removed by Pacstall, right?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

Elsie19 avatar Jun 22 '22 20:06 Elsie19

Not related to this issue but I personally prefer https://mpr.makedeb.org/ instead, because IMO this one is the AUR in ubuntu, while Pacstall is not really the AUR for Ubuntu (yes, they do mean inspired but not exactly the AUR equivalent), you can't just upload your package there but have to upload in their GitHub repository instead, while both AUR & mpr.makedeb.org allow that, and a mpr package has the same structure as an AUR package

teppyboy avatar Jul 26 '22 20:07 teppyboy

Maybe this could be opened as a package request on the Pacstall repo, if it's still desired?

sonic2kk avatar Nov 24 '22 16:11 sonic2kk

Yeah, I wonder is there much to consider regarding maintainance?

The script I created here automatically uses the newest Git release and installs dependencies from the requirements.txt.

If this is basically maintainance-free, I think we can put it over there.

DavidoTek avatar Nov 24 '22 16:11 DavidoTek

ProtonUp-Qt was added to the Pacstall repository in https://github.com/pacstall/pacstall-programs/pull/2069 and should be available shortly.

Feel free to do some testing and report issues/ideas here.

DavidoTek avatar Jan 02 '23 21:01 DavidoTek

Should this be closed now?

Elsie19 avatar Jul 05 '23 16:07 Elsie19