Skip to content

Commit 7381a0d

Browse files
authored
Merge pull request #144 from cortex-command-community/appstream
Add appstream metainfo and scalable icon
2 parents e817551 + 2fda4b9 commit 7381a0d

3 files changed

+94
-1
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="desktop-application">
3+
<id>io.github.cortex_command_community.Cortex-Command-Community-Project</id>
4+
5+
<name>Cortex Command Community Project</name>
6+
<summary>2D shooter/RTS with fully destructible terrain</summary>
7+
<developer id="io.github.cortex_command_community">
8+
<name>Cortex Command Community</name>
9+
</developer>
10+
<url type="bugtracker">https://github.com/cortex-command-community/Cortex-Command-Community-Project/issues</url>
11+
<url type="homepage">https://cortex-command-community.github.io/</url>
12+
<url type="contribute">https://github.com/cortex-command-community/Cortex-Command-Community-Project</url>
13+
<url type="vcs-browser">https://github.com/cortex-command-community/Cortex-Command-Community-Project</url>
14+
15+
<metadata_license>CC0-1.0</metadata_license>
16+
<project_license>AGPL-3.0-only WITH GPL-3.0-linking-exception</project_license>
17+
18+
<recommends>
19+
<display_length compare="ge">950</display_length>
20+
</recommends>
21+
<supports>
22+
<control>pointing</control>
23+
<control>keyboard</control>
24+
<control>gamepad</control>
25+
</supports>
26+
27+
<description>
28+
<p>
29+
Dig up some gold, order your troops and fight your way through your opponent&apos;s bunker and destroy their brain. But remember to protect yours too!
30+
</p>
31+
<p>
32+
The game features a fully destructible terrain, bunker building, a large number of different game activities and extensive mod support with many mods available at <code>mod.io/g/cccp</code>.
33+
</p>
34+
<p>
35+
The Cortex Command Community Project is an open source continuation of the game Cortex Command by DataRealms.
36+
</p>
37+
</description>
38+
39+
<launchable type="desktop-id">io.github.cortex_command_community.Cortex-Command-Community-Project.desktop</launchable>
40+
<screenshots>
41+
<screenshot type="default">
42+
<image>https://raw.githubusercontent.com/cortex-command-community/flathub/c5087bb255c864c9acc56b32a06440031b7b9bdc/Screenshots/Dummy_Assault.png</image>
43+
<caption>Dummy Assault</caption>
44+
</screenshot>
45+
<screenshot type="default">
46+
<image>https://raw.githubusercontent.com/cortex-command-community/flathub/c5087bb255c864c9acc56b32a06440031b7b9bdc/Screenshots/Main_Menu.png</image>
47+
<caption>Main Menu</caption>
48+
</screenshot>
49+
<screenshot type="default">
50+
<image>https://raw.githubusercontent.com/cortex-command-community/flathub/c5087bb255c864c9acc56b32a06440031b7b9bdc/Screenshots/LookSirFreeCrabs.png</image>
51+
<caption>Look Sir free Crabs!</caption>
52+
</screenshot>
53+
<screenshot type="default">
54+
<image>https://raw.githubusercontent.com/cortex-command-community/flathub/c5087bb255c864c9acc56b32a06440031b7b9bdc/Screenshots/Wave_Defense.png</image>
55+
<caption>Wave Defense</caption>
56+
</screenshot>
57+
</screenshots>
58+
<releases>
59+
<release version="6.2.2" type="stable" date="2024-02-24" />
60+
</releases>
61+
<content_rating type="oars-1.1">
62+
<content_attribute id="violence-cartoon">moderate</content_attribute>
63+
<content_attribute id="violence-fantasy">moderate</content_attribute>
64+
<content_attribute id="violence-bloodshed">mild</content_attribute>
65+
<content_attribute id="violence-desecration">mild</content_attribute>
66+
</content_rating>
67+
</component>
Lines changed: 23 additions & 0 deletions
Loading

Resources/meson.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# User frontend
22
source_inc_dirs += [include_directories('.')]
33
if host_machine.system() == 'linux'
4+
app_id = 'io.github.cortex_command_community.Cortex-Command-Community-Project'
45
desktop_file = files('cccp.desktop')
56
icon_file = files('cccp.xpm')
67
configure_file(input: 'cccp.desktop', output: 'CortexCommand.desktop', install: true, install_dir:get_option('datadir')/'applications', install_mode: 'rw-r--r--', configuration: conf_data)
78
install_data('cccp.xpm', install_dir: get_option('datadir')/'icons/hicolor/32x32/apps', install_mode:'rw-r--r--')
9+
install_data(app_id+'.svg', install_dir: get_option('datadir')/'icons/hicolor/scalable/apps', install_mode: 'rw-r--r--')
10+
install_data(app_id+'.metainfo.xml', install_dir: get_option('datadir')/'share/metainfo', install_mode: 'rw-r--r--')
811
configure_file(input: 'cccp.sh', output:'CortexCommand', install: get_option('install_runner'), install_dir: get_option('bindir'), install_mode:'rwxr-xr-x', configuration: conf_data)
912
elif host_machine.system() == 'windows'
1013
windows = import('windows')
@@ -15,4 +18,4 @@ elif host_machine.system() == 'darwin'
1518
# install_data('Info.plist', install_dir : 'Contents')
1619
configure_file(input: 'Info.plist', output: 'Info.plist', install: true, install_dir:'Contents', install_mode: 'rw-r--r--', configuration: conf_data)
1720
meson.add_install_script('bundle_dylibs.sh', elfname, get_option('dylibbundler_args'))
18-
endif
21+
endif

0 commit comments

Comments
 (0)