template rady
This commit is contained in:
parent
e26f09084e
commit
38121a8b87
10 changed files with 28 additions and 25 deletions
11
README.md
11
README.md
|
@ -1,8 +1,6 @@
|
|||
# asteroid-game-launcher
|
||||
# aoi-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 an anime role playing game game
|
||||
|
||||
# Dependencies
|
||||
|
||||
|
@ -16,8 +14,13 @@ A launcher for a space themed game
|
|||
|
||||
# Install instructions
|
||||
To build this app
|
||||
|
||||
meson . _build
|
||||
|
||||
To install
|
||||
|
||||
sudo ninja -C _build install
|
||||
|
||||
To uninstall
|
||||
|
||||
sudo ninja -C _build uninstall
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
{
|
||||
"app-id": "asgardius.page.asteroidlauncher",
|
||||
"app-id": "asgardius.page.aoilauncher",
|
||||
"runtime": "org.gnome.Platform",
|
||||
"runtime-version": "45",
|
||||
"sdk": "org.gnome.Sdk",
|
||||
"command": "asteroid-game-launcher",
|
||||
"command": "aoi-game-launcher",
|
||||
"finish-args": [
|
||||
"--socket=wayland"
|
||||
],
|
||||
"modules": [
|
||||
{
|
||||
"name": "asteroid-game-launcher",
|
||||
"name": "aoi-game-launcher",
|
||||
"buildsystem": "meson",
|
||||
"builddir": true,
|
||||
"sources": [
|
8
data/asgardius.page.aoilauncher.desktop
Normal file
8
data/asgardius.page.aoilauncher.desktop
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Name=Aoi Game Launcher
|
||||
Icon=asgardius.page.aoilauncher
|
||||
Exec=aoi-game-launcher
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=
|
||||
StartupNotify=false
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 388 B After Width: | Height: | Size: 388 B |
|
@ -1,8 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Name=Asteroid Game Launcher
|
||||
Icon=asgardius.page.asteroidlauncher
|
||||
Exec=asteroid-game-launcher
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=
|
||||
StartupNotify=false
|
|
@ -1,10 +1,10 @@
|
|||
configure_file(
|
||||
input: 'asgardius.page.asteroidlauncher.desktop',
|
||||
output: 'asgardius.page.asteroidlauncher.desktop',
|
||||
input: 'asgardius.page.aoilauncher.desktop',
|
||||
output: 'asgardius.page.aoilauncher.desktop',
|
||||
copy: true,
|
||||
install: true,
|
||||
install_dir: join_paths(get_option('datadir'), 'applications')
|
||||
)
|
||||
|
||||
install_data('asgardius.page.asteroidlauncher.png',
|
||||
install_data('asgardius.page.aoilauncher.png',
|
||||
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', 'scalable', 'apps'))
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
project('asteroid-game-launcher',
|
||||
project('aoi-game-launcher',
|
||||
version: '0.0.0',
|
||||
meson_version: '>= 0.48.0',
|
||||
)
|
||||
|
|
10
src/main.py
10
src/main.py
|
@ -16,19 +16,19 @@ import os
|
|||
class Application(Gtk.Application):
|
||||
|
||||
def __init__(self):
|
||||
super().__init__(application_id='asgardius.page.asteroidlauncher')
|
||||
GLib.set_application_name('Asteroid Game Launcher')
|
||||
GLib.set_prgname('asgardius.page.asteroidlauncher')
|
||||
super().__init__(application_id='asgardius.page.aoilauncher')
|
||||
GLib.set_application_name('Aoi Game Launcher')
|
||||
GLib.set_prgname('asgardius.page.aoilauncher')
|
||||
|
||||
def do_activate(self):
|
||||
window = Gtk.ApplicationWindow(application=self)
|
||||
window.set_icon_name('asgardius.page.asteroidlauncher')
|
||||
window.set_icon_name('asgardius.page.aoilauncher')
|
||||
|
||||
hbox = Gtk.VBox(spacing=6)
|
||||
window.add(hbox)
|
||||
|
||||
label = Gtk.Label()
|
||||
label.set_markup('<span font="12">Broadcasting with 100000 power watts\nfrom the asteroid belt</span>')
|
||||
label.set_markup('<span font="12">Do you want a healer?\nNow you have one</span>')
|
||||
hbox.pack_start(label, True, True, 0)
|
||||
|
||||
button = Gtk.Button.new_with_label("Install / Update")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
configure_file(
|
||||
input: 'main.py',
|
||||
output: 'asteroid-game-launcher',
|
||||
output: 'aoi-game-launcher',
|
||||
copy: true,
|
||||
install: true,
|
||||
install_dir: get_option('bindir')
|
||||
|
|
Loading…
Reference in a new issue