-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
9,947 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[default] | ||
name=Default | ||
runtime=host | ||
toolchain=default | ||
config-opts= | ||
run-opts= | ||
prefix=/home/gmg/.cache/gnome-builder/install/netease-cloud-music-gtk4/host | ||
app-id= | ||
postbuild= | ||
prebuild= | ||
default=true | ||
|
||
[default.environment] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/target | ||
/build | ||
**/*.rs.bk | ||
Cargo.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "netease-cloud-music-gtk4" | ||
version = "2.0.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
gettext-rs = { version = "0.7", features = ["gettext-system"] } | ||
gtk = { version = "0.4.7", package = "gtk4" } | ||
once_cell = "*" | ||
qrcode-generator = "^4.1" | ||
ncm-api = { git = "https://github.com/gmg137/netease-cloud-music-api.git", version = "*", package = "netease-cloud-music-api" } | ||
anyhow = "*" | ||
gstreamer = "*" | ||
gstreamer-player = "*" | ||
fragile = "*" | ||
fastrand = "*" | ||
mpris-player = "0.6.1" | ||
regex = "*" | ||
|
||
[dependencies.adw] | ||
package = "libadwaita" | ||
version = "0.1.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
export MESON_BUILD_ROOT="$1" | ||
export MESON_SOURCE_ROOT="$2" | ||
export CARGO_TARGET_DIR="$MESON_BUILD_ROOT"/target | ||
export CARGO_HOME="$MESON_BUILD_ROOT"/cargo-home | ||
export CARGO_HOME="$HOME"/.cargo | ||
export OUTPUT="$3" | ||
export BUILDTYPE="$4" | ||
export APP_BIN="$5" | ||
|
||
if [ $BUILDTYPE = "release" ] | ||
then | ||
echo "RELEASE MODE" | ||
cargo build --manifest-path \ | ||
"$MESON_SOURCE_ROOT"/Cargo.toml --release && \ | ||
cp "$CARGO_TARGET_DIR"/release/"$APP_BIN" "$OUTPUT" | ||
else | ||
echo "DEBUG MODE" | ||
cargo build --manifest-path \ | ||
"$MESON_SOURCE_ROOT"/Cargo.toml && \ | ||
cp "$CARGO_TARGET_DIR"/debug/"$APP_BIN" "$OUTPUT" | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"app-id" : "com.gitee.gmg137.NeteaseCloudMusicGtk4", | ||
"runtime" : "org.gnome.Platform", | ||
"runtime-version" : "42", | ||
"sdk" : "org.gnome.Sdk", | ||
"sdk-extensions" : [ | ||
"org.freedesktop.Sdk.Extension.rust-stable" | ||
], | ||
"command" : "netease-cloud-music-gtk4", | ||
"finish-args" : [ | ||
"--share=network", | ||
"--share=ipc", | ||
"--socket=fallback-x11", | ||
"--device=dri", | ||
"--socket=wayland", | ||
"--socket=pulseaudio", | ||
"--persist=.lyrics", | ||
"--own-name=org.mpris.MediaPlayer2.com.gitee.gmg137.NeteaseCloudMusicGtk4" | ||
], | ||
"build-options" : { | ||
"append-path" : "/usr/lib/sdk/rust-stable/bin", | ||
"build-args" : [ | ||
"--share=network" | ||
], | ||
"env" : { | ||
"RUST_BACKTRACE" : "1", | ||
"RUST_LOG" : "netease-cloud-music-gtk4=debug" | ||
} | ||
}, | ||
"cleanup" : [ | ||
"/include", | ||
"/lib/pkgconfig", | ||
"/man", | ||
"/share/doc", | ||
"/share/gtk-doc", | ||
"/share/man", | ||
"/share/pkgconfig", | ||
"*.la", | ||
"*.a" | ||
], | ||
"modules" : [ | ||
{ | ||
"name" : "netease-cloud-music-gtk4", | ||
"builddir" : true, | ||
"buildsystem" : "meson", | ||
"sources" : [ | ||
{ | ||
"type" : "git", | ||
"url" : "file:///home/gmg/projects/netease-cloud-music-gtk4" | ||
} | ||
], | ||
"config-opts" : [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<component type="desktop"> | ||
<id>com.gitee.gmg137.NeteaseCloudMusicGtk4.desktop</id> | ||
<metadata_license>CC0-1.0</metadata_license> | ||
<project_license>GPL-3.0-or-later</project_license> | ||
<description> | ||
<p>No description</p> | ||
</description> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Desktop Entry] | ||
Name=NetEase Cloud Music | ||
Name[zh_CN]=网易云音乐 | ||
Name[zh_TW]=網易雲音樂 | ||
Comment=NetEase Cloud Music | ||
Comment[zh_CN]=网易云音乐 | ||
Comment[zh_TW]=網易雲音樂 | ||
Exec=netease-cloud-music-gtk4 | ||
Icon=com.gitee.gmg137.NeteaseCloudMusicGtk4 | ||
Terminal=false | ||
Type=Application | ||
Categories=GTK; | ||
StartupNotify=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<schemalist gettext-domain="netease-cloud-music-gtk4"> | ||
<schema id="com.gitee.gmg137.NeteaseCloudMusicGtk4" path="/com/gitee/gmg137/NeteaseCloudMusicGtk4/"> | ||
<key name="style-variant" type="s"> | ||
<choices> | ||
<choice value='system' /> | ||
<choice value='light' /> | ||
<choice value='dark' /> | ||
</choices> | ||
<default>'system'</default> | ||
<summary>Settings theme</summary> | ||
</key> | ||
<key name="repeat-variant" type="s"> | ||
<choices> | ||
<choice value='none' /> | ||
<choice value='one' /> | ||
<choice value='loop' /> | ||
<choice value='shuffle' /> | ||
</choices> | ||
<default>'none'</default> | ||
<summary>Settings player loop</summary> | ||
</key> | ||
<key name="exit-switch" type="b"> | ||
<default>false</default> | ||
<summary>Set exit key behavior</summary> | ||
</key> | ||
<key name="proxy-address" type="s"> | ||
<default>''</default> | ||
<summary>Settings proxy address</summary> | ||
</key> | ||
<key name="music-rate" type="u"> | ||
<default>0</default> | ||
<summary>Settings music rate</summary> | ||
</key> | ||
</schema> | ||
</schemalist> |
Oops, something went wrong.