Merge branch 'main' into pr/257
This commit is contained in:
@@ -79,7 +79,7 @@ template $CartridgesWindow: Adw.ApplicationWindow {
|
||||
sidebar-width-fraction: .2;
|
||||
|
||||
[sidebar]
|
||||
Adw.NavigationPage {
|
||||
Adw.NavigationPage sidebar_navigation_page {
|
||||
title: _("Cartridges");
|
||||
|
||||
Adw.ToolbarView {
|
||||
@@ -94,6 +94,8 @@ template $CartridgesWindow: Adw.ApplicationWindow {
|
||||
}
|
||||
|
||||
ScrolledWindow {
|
||||
hscrollbar-policy: never;
|
||||
|
||||
ListBox sidebar {
|
||||
Box all_games_row_box {
|
||||
margin-top: 12;
|
||||
@@ -109,6 +111,8 @@ template $CartridgesWindow: Adw.ApplicationWindow {
|
||||
Label {
|
||||
halign: start;
|
||||
label: _("All Games");
|
||||
wrap: true;
|
||||
wrap-mode: char;
|
||||
}
|
||||
|
||||
Label all_games_no_label {
|
||||
@@ -135,6 +139,8 @@ template $CartridgesWindow: Adw.ApplicationWindow {
|
||||
halign: start;
|
||||
label: _("Added");
|
||||
margin-end: 6;
|
||||
wrap: true;
|
||||
wrap-mode: char;
|
||||
}
|
||||
|
||||
Label added_games_no_label {
|
||||
@@ -175,15 +181,11 @@ template $CartridgesWindow: Adw.ApplicationWindow {
|
||||
[top]
|
||||
Adw.HeaderBar header_bar {
|
||||
[start]
|
||||
Revealer {
|
||||
transition-type: slide_right;
|
||||
reveal-child: bind overlay_split_view.show-sidebar inverted;
|
||||
|
||||
Button show_sidebar_button {
|
||||
icon-name: "sidebar-show-symbolic";
|
||||
action-name: "win.show_sidebar";
|
||||
tooltip-text: _("Toggle Sidebar");
|
||||
}
|
||||
Button show_sidebar_button {
|
||||
icon-name: "sidebar-show-symbolic";
|
||||
action-name: "win.show_sidebar";
|
||||
tooltip-text: _("Toggle Sidebar");
|
||||
visible: bind overlay_split_view.show-sidebar inverted;
|
||||
}
|
||||
|
||||
[start]
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
scalable_dir = join_paths('hicolor', 'scalable', 'apps')
|
||||
install_data(
|
||||
join_paths(scalable_dir, ('@0@.svg').format(app_id)),
|
||||
install_dir: join_paths(get_option('datadir'), 'icons', scalable_dir)
|
||||
install_dir: join_paths(get_option('datadir'), 'icons', scalable_dir),
|
||||
)
|
||||
|
||||
symbolic_dir = join_paths('hicolor', 'symbolic', 'apps')
|
||||
install_data(
|
||||
join_paths(symbolic_dir, ('@0@-symbolic.svg').format(app_id)),
|
||||
install_dir: join_paths(get_option('datadir'), 'icons', symbolic_dir)
|
||||
install_dir: join_paths(get_option('datadir'), 'icons', symbolic_dir),
|
||||
)
|
||||
|
||||
@@ -1,20 +1,28 @@
|
||||
blueprints = custom_target('blueprints',
|
||||
blueprints = custom_target(
|
||||
'blueprints',
|
||||
input: files(
|
||||
'gtk/help-overlay.blp',
|
||||
'gtk/window.blp',
|
||||
'gtk/details-dialog.blp',
|
||||
'gtk/game.blp',
|
||||
'gtk/help-overlay.blp',
|
||||
'gtk/preferences.blp',
|
||||
'gtk/details-dialog.blp'
|
||||
'gtk/window.blp',
|
||||
),
|
||||
output: '.',
|
||||
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
||||
command: [
|
||||
find_program('blueprint-compiler'),
|
||||
'batch-compile',
|
||||
'@OUTPUT@',
|
||||
'@CURRENT_SOURCE_DIR@',
|
||||
'@INPUT@',
|
||||
],
|
||||
)
|
||||
|
||||
gnome.compile_resources('cartridges',
|
||||
gnome.compile_resources(
|
||||
'cartridges',
|
||||
configure_file(
|
||||
input: 'cartridges.gresource.xml.in',
|
||||
output: 'cartridges.gresource.xml',
|
||||
configuration: conf
|
||||
configuration: conf,
|
||||
),
|
||||
gresource_bundle: true,
|
||||
install: true,
|
||||
@@ -22,27 +30,26 @@ gnome.compile_resources('cartridges',
|
||||
dependencies: blueprints,
|
||||
)
|
||||
|
||||
|
||||
if host_machine.system() == 'windows'
|
||||
desktop_file = configure_file(
|
||||
input: 'page.kramo.Cartridges.desktop.in',
|
||||
output: app_id + '.desktop.in',
|
||||
configuration: conf,
|
||||
install: true,
|
||||
install_dir: join_paths(get_option('datadir'), 'applications')
|
||||
install_dir: join_paths(get_option('datadir'), 'applications'),
|
||||
)
|
||||
else
|
||||
desktop_file = i18n.merge_file(
|
||||
input: configure_file(
|
||||
input: 'page.kramo.Cartridges.desktop.in',
|
||||
output: app_id + '.desktop.in',
|
||||
configuration: conf
|
||||
configuration: conf,
|
||||
),
|
||||
output: app_id + '.desktop',
|
||||
type: 'desktop',
|
||||
po_dir: '../po',
|
||||
install: true,
|
||||
install_dir: join_paths(get_option('datadir'), 'applications')
|
||||
install_dir: join_paths(get_option('datadir'), 'applications'),
|
||||
)
|
||||
endif
|
||||
|
||||
@@ -59,29 +66,30 @@ if host_machine.system() == 'windows'
|
||||
output: app_id + '.metainfo.xml',
|
||||
configuration: conf,
|
||||
install: true,
|
||||
install_dir: join_paths(get_option('datadir'), 'metainfo')
|
||||
install_dir: join_paths(get_option('datadir'), 'metainfo'),
|
||||
)
|
||||
else
|
||||
appstream_file = i18n.merge_file(
|
||||
input: configure_file(
|
||||
input: 'page.kramo.Cartridges.metainfo.xml.in',
|
||||
output: app_id + '.metainfo.xml.in',
|
||||
configuration: conf
|
||||
configuration: conf,
|
||||
),
|
||||
output: app_id + '.metainfo.xml',
|
||||
po_dir: '../po',
|
||||
install: true,
|
||||
install_dir: join_paths(get_option('datadir'), 'metainfo')
|
||||
install_dir: join_paths(get_option('datadir'), 'metainfo'),
|
||||
)
|
||||
endif
|
||||
|
||||
if host_machine.system() != 'windows'
|
||||
appstreamcli = find_program('appstreamcli', required: false)
|
||||
if appstreamcli.found()
|
||||
test('Validate appstream file',
|
||||
test(
|
||||
'Validate appstream file',
|
||||
appstreamcli,
|
||||
args: ['validate', '--no-net', '--explain', appstream_file],
|
||||
workdir: meson.current_build_dir()
|
||||
workdir: meson.current_build_dir(),
|
||||
)
|
||||
endif
|
||||
endif
|
||||
@@ -90,16 +98,18 @@ install_data(
|
||||
configure_file(
|
||||
input: 'page.kramo.Cartridges.gschema.xml.in',
|
||||
output: app_id + '.gschema.xml',
|
||||
configuration: conf
|
||||
configuration: conf,
|
||||
),
|
||||
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
|
||||
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()])
|
||||
test(
|
||||
'Validate schema file',
|
||||
compile_schemas,
|
||||
args: ['--strict', '--dry-run', meson.current_source_dir()],
|
||||
)
|
||||
endif
|
||||
|
||||
subdir('icons')
|
||||
|
||||
@@ -31,9 +31,9 @@
|
||||
<control>keyboard</control>
|
||||
<control>touch</control>
|
||||
</supports>
|
||||
<recommends>
|
||||
<requires>
|
||||
<display_length compare="ge">360</display_length>
|
||||
</recommends>
|
||||
</requires>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image>https://raw.githubusercontent.com/kra-mo/cartridges/main/data/screenshots/1.png</image>
|
||||
@@ -54,12 +54,18 @@
|
||||
</screenshots>
|
||||
<content_rating type="oars-1.1" />
|
||||
<releases>
|
||||
<release version="2.8.4" date="2024-04-16">
|
||||
<release version="2.9.3" date="2024-07-18">
|
||||
<description translate="no">
|
||||
<ul>
|
||||
<li>Fixed an issue with the import dialog not closing</li>
|
||||
<li>Fixed an issue with Lutris games not importing</li>
|
||||
<li>Cartrdiges builds are available for Windows again!</li>
|
||||
<li>Fixed incorrect modifiers being used for keyboard shortcuts</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
<release version="2.9" date="2024-07-10">
|
||||
<description translate="no">
|
||||
<ul>
|
||||
<li>Cartridges is now available on macOS! You can download it from GitHub.</li>
|
||||
<li>Updated translations</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
|
||||
Reference in New Issue
Block a user