This commit is contained in:
Page Asgardius 2024-01-18 08:33:20 -07:00
parent 8290440a6f
commit 5ee4121fcc
5 changed files with 72 additions and 4 deletions

View file

@ -1,3 +1,23 @@
# asteroid-game-launcher # asteroid-game-launcher
<img src=https://git.asgardius.company/asgardius/asteroid-game-launcher/raw/branch/master/data/asgardius.page.asteroidlauncher.png>
A launcher for a space themed game A launcher for a space themed game
# Dependencies
* python
* GTK 3
* VTE 3
# Build dependencies
* Meson
* Ninja
# Install instructions
To build this app
meson . _build
To install
sudo ninja -C _build install
To uninstall
sudo ninja -C _build uninstall

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

View file

@ -6,5 +6,5 @@ configure_file(
install_dir: join_paths(get_option('datadir'), 'applications') install_dir: join_paths(get_option('datadir'), 'applications')
) )
install_data('asgardius.page.asteroidlauncher.svg', install_data('asgardius.page.asteroidlauncher.png',
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', 'scalable', 'apps')) install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', 'scalable', 'apps'))

View file

@ -7,8 +7,10 @@
import sys import sys
import gi import gi
import subprocess
gi.require_version('Gtk', '3.0') gi.require_version('Gtk', '3.0')
from gi.repository import GLib, Gtk from gi.repository import GLib, Gtk, Vte
import os
class Application(Gtk.Application): class Application(Gtk.Application):
@ -22,11 +24,43 @@ class Application(Gtk.Application):
window = Gtk.ApplicationWindow(application=self) window = Gtk.ApplicationWindow(application=self)
window.set_icon_name('asgardius.page.asteroidlauncher') window.set_icon_name('asgardius.page.asteroidlauncher')
hbox = Gtk.VBox(spacing=6)
window.add(hbox)
label = Gtk.Label() label = Gtk.Label()
label.set_markup('<span font="40">Hello World!</span>') label.set_markup('<span font="12">Broadcasting with 100000 power watts\nfrom the asteroid belt</span>')
window.add(label) hbox.pack_start(label, True, True, 0)
button = Gtk.Button.new_with_label("Install / Update")
button.connect("clicked", self.on_install_clicked)
hbox.pack_start(button, True, True, 0)
button = Gtk.Button.new_with_label("Play")
button.connect("clicked", self.on_play_clicked)
hbox.pack_start(button, True, True, 0)
#window.add(label)
window.show_all() window.show_all()
def on_install_clicked(self, button):
home = os.path.expanduser("~")
terminal = Vte.Terminal()
terminal.spawn_sync(
Vte.PtyFlags.DEFAULT,
None,
['/bin/bash', '-c', ' wget https://lily.asgardius.company/r3gamedlx64 -O '+home+'/.r3game && chmod +x '+home+'/.r3game && echo \"Game Installed\"'],
None,
GLib.SpawnFlags.DEFAULT,
)
win = Gtk.Window()
win.connect('delete-event', Gtk.main_quit)
win.add(terminal)
win.show_all()
def on_play_clicked(self, button):
home = os.path.expanduser("~")
subprocess.run([home+'/.r3game'])
if __name__ == "__main__": if __name__ == "__main__":

14
src/wget-log Normal file
View file

@ -0,0 +1,14 @@
--2024-01-18 08:31:59-- https://lily.asgardius.company/r3gamedlx64
Cargado certificado CA '/etc/ssl/certs/ca-certificates.crt'
Resolviendo lily.asgardius.company (lily.asgardius.company)... 51.15.171.11
Conectando con lily.asgardius.company (lily.asgardius.company)[51.15.171.11]:443... conectado.
Petición HTTP enviada, esperando respuesta... 301 Moved Permanently
Localización: https://git.asgardius.company/attachments/ad5a7e87-ed8e-4ec5-8270-be316eafc2e5 [siguiendo]
--2024-01-18 08:32:01-- https://git.asgardius.company/attachments/ad5a7e87-ed8e-4ec5-8270-be316eafc2e5
Resolviendo git.asgardius.company (git.asgardius.company)... 51.15.171.11
Conectando con git.asgardius.company (git.asgardius.company)[51.15.171.11]:443... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 295254768 (282M) [application/octet-stream]
Grabando a: «/home/asgardius/.r3game»
/home/asgardius/.r3 7%[> ] 21.98M 3.14MB/s eta 1m 40s /home/asgardius/.r3 7%[> ] 22.15M 2.73MB/s eta 97s /home/asgardius/.r3 8%[> ] 23.04M 2.60MB/s eta 97s /home/asgardius/.r3 9%[> ] 25.39M 2.86MB/s eta 97s /home/asgardius/.r3 9%[> ] 26.06M 2.94MB/s eta 97s /home/asgardius/.r3 9%[> ] 27.12M 2.92MB/s eta 88s /home/asgardius/.r3 10%[=> ] 28.25M 2.92MB/s eta 88s /home/asgardius/.r3 10%[=> ] 28.95M 2.84MB/s eta 88s /home/asgardius/.r3 10%[=> ] 29.23M 2.48MB/s eta 93s /home/asgardius/.r3 10%[=> ] 29.23M 2.12MB/s eta 93s /home/asgardius/.r3 10%[=> ] 29.23M 1.86MB/s eta 1m 50s /home/asgardius/.r3 10%[=> ] 29.25M 1.69MB/s eta 1m 50s /home/asgardius/.r3 11%[=> ] 31.17M 1.84MB/s eta 1m 51s /home/asgardius/.r3 11%[=> ] 31.31M 1.65MB/s eta 1m 51s /home/asgardius/.r3 11%[=> ] 31.37M 1.50MB/s eta 2m 5s /home/asgardius/.r3 11%[=> ] 31.37M 1.37MB/s eta 2m 5s /home/asgardius/.r3 11%[=> ] 31.37M 1.26MB/s eta 2m 20s /home/asgardius/.r3 11%[=> ] 31.37M 1.17MB/s eta 2m 20s /home/asgardius/.r3 11%[=> ] 31.37M 1.09MB/s eta 2m 36s /home/asgardius/.r3 11%[=> ] 31.37M --.-KB/s eta 2m 36s /home/asgardius/.r3 11%[=> ] 31.37M --.-KB/s eta 2m 51s /home/asgardius/.r3 11%[=> ] 31.37M --.-KB/s eta 2m 51s /home/asgardius/.r3 11%[=> ] 31.39M 16.0KB/s eta 3m 1s /home/asgardius/.r3 11%[=> ] 31.40M 21.8KB/s eta 3m 1s /home/asgardius/.r3 11%[=> ] 31.44M 34.9KB/s eta 3m 1s /home/asgardius/.r3 11%[=> ] 31.47M 43.6KB/s eta 3m 10s /home/asgardius/.r3 11%[=> ] 31.48M 44.6KB/s eta 3m 10s /home/asgardius/.r3 11%[=> ] 31.54M 50.1KB/s eta 3m 20s /home/asgardius/.r3 11%[=> ] 31.54M 39.4KB/s eta 3m 20s /home/asgardius/.r3 11%[=> ] 31.54M 32.5KB/s eta 3m 35s /home/asgardius/.r3 11%[=> ] 31.54M 27.6KB/s eta 3m 35s /home/asgardius/.r3 11%[=> ] 31.54M 24.0KB/s eta 3m 50s /home/asgardius/.r3 11%[=> ] 31.54M --.-KB/s eta 3m 50s /home/asgardius/.r3 11%[=> ] 31.54M --.-KB/s eta 4m 5s /home/asgardius/.r3 11%[=> ] 31.54M --.-KB/s eta 4m 5s /home/asgardius/.r3 11%[=> ] 31.56M 16.0KB/s eta 4m 19s /home/asgardius/.r3 11%[=> ] 31.58M 18.6KB/s eta 4m 19s /home/asgardius/.r3 11%[=> ] 31.61M 31.7KB/s eta 4m 27s /home/asgardius/.r3 11%[=> ] 31.65M 41.8KB/s eta 4m 27s /home/asgardius/.r3 11%[=> ] 31.70M 51.6KB/s eta 4m 35s /home/asgardius/.r3 11%[=> ] 31.78M 70.7KB/s eta 4m 35s /home/asgardius/.r3 11%[=> ] 31.81M 75.2KB/s eta 4m 35s /home/asgardius/.r3 11%[=> ] 32.45M 243KB/s eta 4m 35s /home/asgardius/.r3 11%[=> ] 32.83M 320KB/s eta 4m 32s /home/asgardius/.r3 12%[=> ] 34.59M 723KB/s eta 4m 32s /home/asgardius/.r3 12%[=> ] 34.64M 691KB/s eta 4m 32s /home/asgardius/.r3 12%[=> ] 34.67M 669KB/s eta 4m 32s /home/asgardius/.r3 12%[=> ] 34.72M 648KB/s eta 4m 32s /home/asgardius/.r3 12%[=> ] 34.76M 624KB/s eta 4m 23s /home/asgardius/.r3 12%[=> ] 34.81M 608KB/s eta 4m 23s /home/asgardius/.r3 12%[=> ] 34.86M 595KB/s eta 4m 23s /home/asgardius/.r3 12%[=> ] 34.92M 699KB/s eta 4m 23s /home/asgardius/.r3 12%[=> ] 34.98M 791KB/s eta 4m 23s /home/asgardius/.r3 12%[=> ] 35.04M 815KB/s eta 4m 28s /home/asgardius/.r3 12%[=> ] 35.11M 912KB/s eta 4m 28s