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 -1
View File
@@ -4,7 +4,7 @@ runtime=host
toolchain=default toolchain=default
config-opts= config-opts=
run-opts= run-opts=
prefix=/home/liyaowhen/.cache/gnome-builder/install/song/host prefix=/home/liyaowhen/.cache/gnome-builder/install/youtubecollector/host
app-id= app-id=
postbuild= postbuild=
prebuild= prebuild=
+1 -1
View File
@@ -1,3 +1,3 @@
# song # youtubecollector
A description of this project. A description of this project.
@@ -1,12 +1,12 @@
{ {
"id" : "com.liyaowhen.Song", "id" : "com.liyaowhen.YoutubeCollector",
"runtime" : "org.gnome.Platform", "runtime" : "org.gnome.Platform",
"runtime-version" : "master", "runtime-version" : "master",
"sdk" : "org.gnome.Sdk", "sdk" : "org.gnome.Sdk",
"sdk-extensions" : [ "sdk-extensions" : [
"org.freedesktop.Sdk.Extension.vala" "org.freedesktop.Sdk.Extension.vala"
], ],
"command" : "song", "command" : "youtubecollector",
"finish-args" : [ "finish-args" : [
"--share=network", "--share=network",
"--share=ipc", "--share=ipc",
@@ -32,13 +32,13 @@
], ],
"modules" : [ "modules" : [
{ {
"name" : "song", "name" : "youtubecollector",
"builddir" : true, "builddir" : true,
"buildsystem" : "meson", "buildsystem" : "meson",
"sources" : [ "sources" : [
{ {
"type" : "git", "type" : "git",
"url" : "file:///home/liyaowhen/Documents/Song" "url" : "file:///home/liyaowhen/Documents/YoutubeCollector/youtubecollector"
} }
] ]
} }
@@ -1,7 +1,7 @@
[Desktop Entry] [Desktop Entry]
Name=song Name=youtubecollector
Exec=song Exec=youtubecollector
Icon=com.liyaowhen.Song Icon=com.liyaowhen.YoutubeCollector
Terminal=false Terminal=false
Type=Application Type=Application
Categories=GTK; Categories=GTK;
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="song"> <schemalist gettext-domain="youtubecollector">
<schema id="com.liyaowhen.Song" path="/com/liyaowhen/Song/"> <schema id="com.liyaowhen.YoutubeCollector" path="/com/liyaowhen/YoutubeCollector/">
<key name="window-width" type="i"> <key name="window-width" type="i">
<default>600</default> <default>600</default>
</key> </key>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<component type="desktop"> <component type="desktop">
<id>com.liyaowhen.Song.desktop</id> <id>com.liyaowhen.YoutubeCollector.desktop</id>
<metadata_license>CC0-1.0</metadata_license> <metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license> <project_license>GPL-3.0-or-later</project_license>
<description> <description>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="song"> <schemalist gettext-domain="youtubecollector">
<schema id="com.liyaowhen.Song.playlists" path="/com/liyaowhen/Song/"> <schema id="com.liyaowhen.YoutubeCollector.playlists" path="/com/liyaowhen/YoutubeCollector/">
<key name="playlists" type="as"> <!--whenever you deal with playlists, <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, 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--> 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' scalable_dir = 'hicolor' / 'scalable' / 'apps'
install_data( install_data(
+6 -6
View File
@@ -1,6 +1,6 @@
desktop_file = i18n.merge_file( desktop_file = i18n.merge_file(
input: 'com.liyaowhen.Song.desktop.in', input: 'com.liyaowhen.YoutubeCollector.desktop.in',
output: 'com.liyaowhen.Song.desktop', output: 'com.liyaowhen.YoutubeCollector.desktop',
type: 'desktop', type: 'desktop',
po_dir: '../po', po_dir: '../po',
install: true, install: true,
@@ -13,7 +13,7 @@ if desktop_utils.found()
endif endif
schemas_dir = get_option('prefix') / get_option('datadir') / 'glib-2.0' / 'schemas' 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) install_data(settings_schemas, install_dir: schemas_dir)
@@ -23,8 +23,8 @@ gnome = import('gnome')
gnome.compile_schemas(depend_files: files(settings_schemas)) gnome.compile_schemas(depend_files: files(settings_schemas))
appstream_file = i18n.merge_file( appstream_file = i18n.merge_file(
input: 'com.liyaowhen.Song.metainfo.xml.in', input: 'com.liyaowhen.YoutubeCollector.metainfo.xml.in',
output: 'com.liyaowhen.Song.metainfo.xml', output: 'com.liyaowhen.YoutubeCollector.metainfo.xml',
po_dir: '../po', po_dir: '../po',
install: true, install: true,
install_dir: get_option('datadir') / 'metainfo' install_dir: get_option('datadir') / 'metainfo'
@@ -34,7 +34,7 @@ appstreamcli = find_program('appstreamcli', required: false, disabler: true)
test('Validate appstream file', appstreamcli, test('Validate appstream file', appstreamcli,
args: ['validate', '--no-net', '--explain', appstream_file]) 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' install_dir: get_option('datadir') / 'glib-2.0' / 'schemas'
) )
+1 -1
View File
@@ -1,4 +1,4 @@
project('song', ['c', 'vala'], project('youtubecollector', ['c', 'vala'],
version: '0.1.0', version: '0.1.0',
meson_version: '>= 0.62.0', meson_version: '>= 0.62.0',
default_options: [ 'warning_level=2', 'werror=false', 'buildtype=debugoptimized', default_options: [ 'warning_level=2', 'werror=false', 'buildtype=debugoptimized',
+3 -3
View File
@@ -1,6 +1,6 @@
data/com.liyaowhen.Song.desktop.in data/com.liyaowhen.YoutubeCollector.desktop.in
data/com.liyaowhen.Song.metainfo.xml.in data/com.liyaowhen.YoutubeCollector.metainfo.xml.in
data/com.liyaowhen.Song.gschema.xml data/com.liyaowhen.YoutubeCollector.gschema.xml
src/main.vala src/main.vala
src/window.vala src/window.vala
src/window.ui src/window.ui
+1 -1
View File
@@ -1 +1 @@
i18n.gettext('song', preset: 'glib') i18n.gettext('youtubecollector', preset: 'glib')
+7 -7
View File
@@ -1,4 +1,4 @@
song_sources = [ youtubecollector_sources = [
'main.vala', 'main.vala',
'application.vala', 'application.vala',
'window.vala', 'window.vala',
@@ -16,7 +16,7 @@ song_sources = [
'background.vala', 'background.vala',
] ]
song_deps = [ youtubecollector_deps = [
dependency('gtk4'), dependency('gtk4'),
dependency('libadwaita-1', version: '>= 1.4'), dependency('libadwaita-1', version: '>= 1.4'),
dependency('vte-2.91-gtk4'), dependency('vte-2.91-gtk4'),
@@ -27,13 +27,13 @@ song_deps = [
] ]
song_sources += gnome.compile_resources('song-resources', youtubecollector_sources += gnome.compile_resources('youtubecollector-resources',
'song.gresource.xml', 'youtubecollector.gresource.xml',
c_name: 'song' c_name: 'youtubecollector'
) )
executable('song', song_sources, executable('youtubecollector', youtubecollector_sources,
dependencies: song_deps, dependencies: youtubecollector_deps,
install: true, install: true,
) )
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<gresources> <gresources>
<gresource prefix="/com/liyaowhen/Song"> <gresource prefix="/com/liyaowhen/YoutubeCollector">
<file preprocess="xml-stripblanks">gtk/help-overlay.ui</file> <file preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
<file preprocess="xml-stripblanks">icons/globe-alt2-symbolic.svg</file> <file preprocess="xml-stripblanks">icons/globe-alt2-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/arrow-into-box-symbolic.svg</file> <file preprocess="xml-stripblanks">icons/arrow-into-box-symbolic.svg</file>