Skip to content

Commit

Permalink
Add project files
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-mo committed Dec 26, 2022
1 parent e90a797 commit f5c1012
Show file tree
Hide file tree
Showing 39 changed files with 2,588 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/subprojects/blueprint-compiler
/src/__pycache__
8 changes: 8 additions & 0 deletions data/hu.kramo.GameShelf.desktop.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Name=Game Shelf
Exec=gameshelf
Icon=hu.kramo.GameShelf
Terminal=false
Type=Application
Categories=Game;
StartupNotify=true
21 changes: 21 additions & 0 deletions data/hu.kramo.GameShelf.gschema.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="gameshelf">
<schema id="hu.kramo.GameShelf" path="/hu/kramo/GameShelf/">
<key name="exit-after-launch" type="b">
<default>false</default>
</key>
<key name="steam-location" type="s">
<default>"~/.steam/"</default>
</key>
<key name="sort-mode" type="s">
<choices>
<choice value="a-z"/>
<choice value="z-a"/>
<choice value="newest"/>
<choice value="oldest"/>
<choice value="last_played"/>
</choices>
<default>"a-z"</default>
</key>
</schema>
</schemalist>
13 changes: 13 additions & 0 deletions data/hu.kramo.GameShelf.metainfo.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>hu.kramo.GameShelf.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<name>Game Shelf</name>
<summary>Launch all your games</summary>
<description>
<p>Game Shelf is a simple game launcher. It has support for importing your games from Steam with organizational features such as hiding and sorting by date added or last played.</p>
</description>
<launchable type="desktop-id">hu.kramo.GameShelf.desktop</launchable>
<developer_name>kramo</developer_name>
</component>
22 changes: 22 additions & 0 deletions data/icons/hicolor/scalable/apps/hu.kramo.GameShelf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions data/icons/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
application_id = 'hu.kramo.GameShelf'

scalable_dir = join_paths('hicolor', 'scalable', 'apps')
install_data(
join_paths(scalable_dir, ('@[email protected]').format(application_id)),
install_dir: join_paths(get_option('datadir'), 'icons', scalable_dir)
)

symbolic_dir = join_paths('hicolor', 'symbolic', 'apps')
install_data(
join_paths(symbolic_dir, ('@[email protected]').format(application_id)),
install_dir: join_paths(get_option('datadir'), 'icons', symbolic_dir)
)
39 changes: 39 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
desktop_file = i18n.merge_file(
input: 'hu.kramo.GameShelf.desktop.in',
output: 'hu.kramo.GameShelf.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)

desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
test('Validate desktop file', desktop_utils, args: [desktop_file])
endif

appstream_file = i18n.merge_file(
input: 'hu.kramo.GameShelf.metainfo.xml.in',
output: 'hu.kramo.GameShelf.metainfo.xml',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'metainfo')
)

appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test('Validate appstream file', appstream_util, args: ['validate', appstream_file])
endif

install_data('hu.kramo.GameShelf.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
)

compile_schemas = find_program('glib-compile-schemas', required: false)
if compile_schemas.found()
test('Validate schema file',
compile_schemas,
args: ['--strict', '--dry-run', meson.current_source_dir()])
endif

subdir('icons')
40 changes: 40 additions & 0 deletions hu.kramo.GameShelf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"app-id" : "hu.kramo.GameShelf",
"runtime" : "org.gnome.Platform",
"runtime-version" : "master",
"sdk" : "org.gnome.Sdk",
"command" : "gameshelf",
"finish-args" : [
"--share=ipc",
"--socket=fallback-x11",
"--device=dri",
"--socket=wayland",
"--socket=session-bus",
"--filesystem=xdg-run/gvfsd",
"--filesystem=~/.steam/steam/"
],
"cleanup" : [
"/include",
"/lib/pkgconfig",
"/man",
"/share/doc",
"/share/gtk-doc",
"/share/man",
"/share/pkgconfig",
"*.la",
"*.a"
],
"modules" : [
{
"name" : "gameshelf",
"builddir" : true,
"buildsystem" : "meson",
"sources" : [
{
"type" : "git",
"url" : "file:///home/kramo/Projects"
}
]
}
]
}
20 changes: 20 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
project('gameshelf',
version: '0.1.0',
meson_version: '>= 0.59.0',
default_options: [ 'warning_level=2', 'werror=false', ],
)

i18n = import('i18n')
gnome = import('gnome')



subdir('data')
subdir('src')
subdir('po')

gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)
1 change: 1 addition & 0 deletions po/LINGUAS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hu
14 changes: 14 additions & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
data/hu.kramo.GameShelf.desktop.in
data/hu.kramo.GameShelf.metainfo.xml.in

src/main.py
src/window.py
src/window.blp
src/game.py
src/preferences.py

src/gtk/game.blp
src/gtk/preferences.blp

src/utils/create_details_window.py
src/utils/create_dialog.py
Loading

0 comments on commit f5c1012

Please sign in to comment.