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
config-opts=
run-opts=
prefix=/home/liyaowhen/.cache/gnome-builder/install/song/host
prefix=/home/liyaowhen/.cache/gnome-builder/install/youtubecollector/host
app-id=
postbuild=
prebuild=
+1 -1
View File
@@ -1,3 +1,3 @@
# song
# youtubecollector
A description of this project.
@@ -1,12 +1,12 @@
{
"id" : "com.liyaowhen.Song",
"id" : "com.liyaowhen.YoutubeCollector",
"runtime" : "org.gnome.Platform",
"runtime-version" : "master",
"sdk" : "org.gnome.Sdk",
"sdk-extensions" : [
"org.freedesktop.Sdk.Extension.vala"
],
"command" : "song",
"command" : "youtubecollector",
"finish-args" : [
"--share=network",
"--share=ipc",
@@ -32,13 +32,13 @@
],
"modules" : [
{
"name" : "song",
"name" : "youtubecollector",
"builddir" : true,
"buildsystem" : "meson",
"sources" : [
{
"type" : "git",
"url" : "file:///home/liyaowhen/Documents/Song"
"url" : "file:///home/liyaowhen/Documents/YoutubeCollector/youtubecollector"
}
]
}
@@ -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'
)
+1 -1
View File
@@ -1,4 +1,4 @@
project('song', ['c', 'vala'],
project('youtubecollector', ['c', 'vala'],
version: '0.1.0',
meson_version: '>= 0.62.0',
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.Song.metainfo.xml.in
data/com.liyaowhen.Song.gschema.xml
data/com.liyaowhen.YoutubeCollector.desktop.in
data/com.liyaowhen.YoutubeCollector.metainfo.xml.in
data/com.liyaowhen.YoutubeCollector.gschema.xml
src/main.vala
src/window.vala
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',
'application.vala',
'window.vala',
@@ -16,7 +16,7 @@ song_sources = [
'background.vala',
]
song_deps = [
youtubecollector_deps = [
dependency('gtk4'),
dependency('libadwaita-1', version: '>= 1.4'),
dependency('vte-2.91-gtk4'),
@@ -27,13 +27,13 @@ song_deps = [
]
song_sources += gnome.compile_resources('song-resources',
'song.gresource.xml',
c_name: 'song'
youtubecollector_sources += gnome.compile_resources('youtubecollector-resources',
'youtubecollector.gresource.xml',
c_name: 'youtubecollector'
)
executable('song', song_sources,
dependencies: song_deps,
executable('youtubecollector', youtubecollector_sources,
dependencies: youtubecollector_deps,
install: true,
)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/com/liyaowhen/Song">
<gresource prefix="/com/liyaowhen/YoutubeCollector">
<file preprocess="xml-stripblanks">gtk/help-overlay.ui</file>
<file preprocess="xml-stripblanks">icons/globe-alt2-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/arrow-into-box-symbolic.svg</file>