starting port towards new name

This commit is contained in:
liyaowhen
2024-08-08 16:47:50 -07:00
parent bff04b0d40
commit 60cfb31919
16 changed files with 34 additions and 34 deletions
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=song
Exec=song
Icon=com.liyaowhen.Song
Name=youtubecollector
Exec=youtubecollector
Icon=com.liyaowhen.YoutubeCollector
Terminal=false
Type=Application
Categories=GTK;
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="song">
<schema id="com.liyaowhen.Song" path="/com/liyaowhen/Song/">
<schemalist gettext-domain="youtubecollector">
<schema id="com.liyaowhen.YoutubeCollector" path="/com/liyaowhen/YoutubeCollector/">
<key name="window-width" type="i">
<default>600</default>
</key>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>com.liyaowhen.Song.desktop</id>
<id>com.liyaowhen.YoutubeCollector.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<description>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="song">
<schema id="com.liyaowhen.Song.playlists" path="/com/liyaowhen/Song/">
<schemalist gettext-domain="youtubecollector">
<schema id="com.liyaowhen.YoutubeCollector.playlists" path="/com/liyaowhen/YoutubeCollector/">
<key name="playlists" type="as"> <!--whenever you deal with playlists,
make sure to always affect the playlist's list of songs as well to avoid bugs,
for example renaming a playlist here also needs to rename the key in which it has songs-->

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

+1 -1
View File
@@ -1,4 +1,4 @@
application_id = 'com.liyaowhen.Song'
application_id = 'com.liyaowhen.YoutubeCollector'
scalable_dir = 'hicolor' / 'scalable' / 'apps'
install_data(
+6 -6
View File
@@ -1,6 +1,6 @@
desktop_file = i18n.merge_file(
input: 'com.liyaowhen.Song.desktop.in',
output: 'com.liyaowhen.Song.desktop',
input: 'com.liyaowhen.YoutubeCollector.desktop.in',
output: 'com.liyaowhen.YoutubeCollector.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
@@ -13,7 +13,7 @@ if desktop_utils.found()
endif
schemas_dir = get_option('prefix') / get_option('datadir') / 'glib-2.0' / 'schemas'
settings_schemas = [ 'com.liyaowhen.Song.gschema.xml', 'com.liyaowhen.Song.playlists.gschema.xml' ]
settings_schemas = [ 'com.liyaowhen.YoutubeCollector.gschema.xml', 'com.liyaowhen.YoutubeCollector.playlists.gschema.xml' ]
install_data(settings_schemas, install_dir: schemas_dir)
@@ -23,8 +23,8 @@ gnome = import('gnome')
gnome.compile_schemas(depend_files: files(settings_schemas))
appstream_file = i18n.merge_file(
input: 'com.liyaowhen.Song.metainfo.xml.in',
output: 'com.liyaowhen.Song.metainfo.xml',
input: 'com.liyaowhen.YoutubeCollector.metainfo.xml.in',
output: 'com.liyaowhen.YoutubeCollector.metainfo.xml',
po_dir: '../po',
install: true,
install_dir: get_option('datadir') / 'metainfo'
@@ -34,7 +34,7 @@ appstreamcli = find_program('appstreamcli', required: false, disabler: true)
test('Validate appstream file', appstreamcli,
args: ['validate', '--no-net', '--explain', appstream_file])
install_data('com.liyaowhen.Song.gschema.xml',
install_data('com.liyaowhen.YoutubeCollector.gschema.xml',
install_dir: get_option('datadir') / 'glib-2.0' / 'schemas'
)