mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Move resources and data to UI crate
This commit is contained in:
parent
fdc5bc72a8
commit
3e130985c4
35 changed files with 5 additions and 5 deletions
|
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
|
@ -1,7 +1,7 @@
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
|
|
||||||
pub fn init() -> Result<()> {
|
pub fn init() -> Result<()> {
|
||||||
let bytes = glib::Bytes::from(include_bytes!("/home/johrpan/.var/app/org.gnome.Builder/cache/gnome-builder/projects/musicus/builds/de.johrpan.musicus.json-flatpak-org.gnome.Platform-x86_64-master-master/res/musicus.gresource").as_ref());
|
let bytes = glib::Bytes::from(include_bytes!("/home/johrpan/.var/app/org.gnome.Builder/cache/gnome-builder/projects/musicus/builds/de.johrpan.musicus.json-flatpak-org.gnome.Platform-x86_64-master-master/crates/musicus/res/musicus.gresource").as_ref());
|
||||||
let resource = gio::Resource::from_data(&bytes)?;
|
let resource = gio::Resource::from_data(&bytes)?;
|
||||||
gio::resources_register(&resource);
|
gio::resources_register(&resource);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ dependency('glib-2.0', version: '>= 2.56')
|
||||||
dependency('gio-2.0', version: '>= 2.56')
|
dependency('gio-2.0', version: '>= 2.56')
|
||||||
dependency('gstreamer-1.0', version: '>= 1.12')
|
dependency('gstreamer-1.0', version: '>= 1.12')
|
||||||
dependency('gtk4', version: '>= 4.0')
|
dependency('gtk4', version: '>= 4.0')
|
||||||
#dependency('libcurl', version: '>= 7.24.0')
|
dependency('libcurl', version: '>= 7.24.0')
|
||||||
dependency('libdiscid', version: '>= 0.6.2')
|
dependency('libdiscid', version: '>= 0.6.2')
|
||||||
dependency('libadwaita-1', version: '>= 1.0')
|
dependency('libadwaita-1', version: '>= 1.0')
|
||||||
dependency('pango', version: '>= 1.0')
|
dependency('pango', version: '>= 1.0')
|
||||||
|
|
@ -17,9 +17,9 @@ dependency('sqlite3', version: '>= 3.20')
|
||||||
|
|
||||||
i18n = import('i18n')
|
i18n = import('i18n')
|
||||||
|
|
||||||
subdir('data')
|
subdir('crates/musicus/data')
|
||||||
subdir('po')
|
subdir('crates/musicus/po')
|
||||||
subdir('res')
|
subdir('crates/musicus/res')
|
||||||
subdir('crates/musicus/src')
|
subdir('crates/musicus/src')
|
||||||
|
|
||||||
meson.add_install_script('build-aux/postinstall.py')
|
meson.add_install_script('build-aux/postinstall.py')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue