
download_latest.py: automatic github release downloader (1)
English version below
Hallo,
heute habe ich mal meinen ganzen Frust gechannelt, dass es keine offizielle Signal Desktop Quelle im Fedora-Paketmanager gibt. Habe also durch googlen eine Möglichkeit gefunden, die Github API zu querien, und das ganze in ein Python-Skript gepackt. Auch, um mal wieder Übung zu kriegen.
Schaut es euch gerne an, probiert es aus. Ich habe gerade noch die Version zum Laufen gebracht. Schiebt das Skript in einen Unterordner, und ruft es folgendermaßen auf:
$ ./download_latest.py signalapp/Signal-Desktop tarball_url tgz
Ich bin mir nicht sicher, ob das der richtige Ansatz ist zum Lösen dieses Problems, aber im Idealfall kann ich dem Skript jedes Github-Projekt mit Release Tarballs oÄ geben und es lädt diesen automatisch herunter, wenn es eine neuere Version gibt!
Hat Spaß gemacht!
Wie das Skript genau funktioniert, werde ich euch hoffentlich morgen erklären können; jetzt muss ich angesichts anstehender Weihnachtsfestlichkeiten ganz dringend ein Bett aufsuchen.
Auf Wiedersehen!
English version
Hello,
today I channeled all my frustration that there is no official Signal Desktop source in the Fedora package manager. So by googling I found a way to source the Github API and put the whole thing into a Python script. Also to get some practice.
Feel free to check it out, give it a try. I just got the version to work. Move the script to a subfolder, and call it like this:
$ ./download_latest.py signalapp/signal-desktop tarball_url tgz
I'm not sure if this is the right approach to solving this problem, but ideally I can give the script any github project with release tarballs orÄ and it will download this automatically if there is a newer version!.
Fun stuff!
I'll hopefully be able to explain exactly how the script works tomorrow; right now, with Christmas coming up, I really need to find a bed.
Goodbye!
Leave download_latest.py: automatic github release downloader (1) to:
Read more #proofofbrain posts
Best Posts From t-nil
We have not curated any of t-nil's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From t-nil
- fish as a non-interactive shell / fish als nicht-interaktive Shell
- Telekom PostSkriptum
- Die Sache mit der Telekom
- Videokonvertierungsmagie, -wahnsinn und -aberglaube (3)
- Videokonvertierungsmagie, -wahnsinn und -aberglaube (2)
- Videokonvertierungsmagie, -wahnsinn und -aberglaube (1)
- Probleme mit Chargie / Problems with Chargie
- Verschiedene Dinge Pt. 1
- Hotline-Spaß (1)
- Fixing the windows key under Gnome
- publish calendar informations; free/busy; evolution gnome
- I can't get Pipewire to correctly start a loopback device
- Android battery (things under/Dinge unter) GrapheneOS
- StreetComplete: Gamified OpenStreetMap data updates / Kartendaten aktualisieren als Spiel
- lesspass: stateless password manager (no sync needed / keine Synchronisation benötigt)
- REST API DEVELOPER HASSEN DIESEN EINEN TRICK!! (sarcastic title) / REST API DEVELOPERS HATE THIS ONE WEIRD TRICK!! (sarcastic title)
- stop charging with wireless controlled outlet + automation app (1)
- Trying to use a Dockerfile build environment from an open source project / Der Versuch, eine Build-Umgebung aus einem Dockerfile zu bauen (2)
- Trying to use a Dockerfile build environment from an open source project / Der Versuch, eine Build-Umgebung aus einem Dockerfile zu bauen
- download_latest.py: automatic github release downloader (3)