feat: Linux release packaging

Tarball, .deb and AppImage from tool/bundle-linux.sh, and an Arch PKGBUILD.
The window carries the dev.musyx.Musyx app id so desktops match it to the
installed desktop entry and icons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
yuriy.pandClaude Opus 5.5 committed 2026-10-16 12:27:50 +06:00
1 parent 28e273c31e
commit f80de805c2
9 files changed
+303 -2

No files matched your search

+56
View File
@@ -0,0 +1,56 @@
# Maintainer: Yuriy Panov <uriy.panov@gmail.com>
# Builds the checked-out commit of this repository: run `makepkg -si` in this directory.
pkgname=musyx
pkgver=0.2.0
pkgrel=1
pkgdesc='Desktop player for Yandex Music (unofficial)'
arch=('x86_64' 'aarch64')
license=('MIT' 'OFL-1.1' 'ISC')
depends=('alsa-lib' 'dbus' 'gcc-libs' 'glibc' 'libxkbcommon' 'wayland' 'hicolor-icon-theme')
optdepends=('gnome-keyring: keeps the sign-in (any Secret Service provider works)'
'vulkan-driver: GPU rendering')
makedepends=('cargo' 'git' 'imagemagick')
options=('!lto' '!debug')
source=("$pkgname::git+file://${startdir%/packaging/arch}")
sha256sums=('SKIP')
app_id=dev.musyx.Musyx
pkgver() {
cd "$pkgname"
sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -1
}
prepare() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable CARGO_TARGET_DIR=target
cargo build --frozen --release -p musyx
}
check() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable CARGO_TARGET_DIR=target
cargo test --frozen --release --workspace
}
package() {
cd "$pkgname"
install -Dm755 target/release/musyx "$pkgdir/usr/bin/musyx"
install -Dm644 "packaging/linux/$app_id.desktop" "$pkgdir/usr/share/applications/$app_id.desktop"
install -Dm644 "packaging/linux/$app_id.metainfo.xml" "$pkgdir/usr/share/metainfo/$app_id.metainfo.xml"
for size in 16 32 48 64 128 256 512; do
install -dm755 "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps"
magick crates/musyx/assets/icon/musyx.png -resize "${size}x${size}" \
"$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/$app_id.png"
done
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 crates/musyx/assets/fonts/OFL-*.txt -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 crates/musyx/assets/icons/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE-lucide.txt"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
+15
View File
@@ -0,0 +1,15 @@
[Desktop Entry]
Type=Application
Name=Musyx
GenericName=Music Player
GenericName[ru]=Музыкальный проигрыватель
Comment=Desktop player for Yandex Music
Comment[ru]=Настольный проигрыватель для Яндекс Музыки
Exec=musyx
Icon=dev.musyx.Musyx
Terminal=false
Categories=AudioVideo;Audio;Player;
Keywords=music;yandex;player;audio;
Keywords[ru]=музыка;яндекс;плеер;аудио;
StartupWMClass=dev.musyx.Musyx
SingleMainWindow=true
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>dev.musyx.Musyx</id>
<name>Musyx</name>
<summary>Desktop player for Yandex Music</summary>
<summary xml:lang="ru">Настольный проигрыватель для Яндекс Музыки</summary>
<metadata_license>MIT</metadata_license>
<project_license>MIT</project_license>
<developer id="dev.musyx">
<name>Yuriy Panov</name>
</developer>
<description>
<p>
An unofficial client for Yandex Music: My Wave, search, your collection, podcasts,
lyrics and lossless streaming. Not affiliated with or endorsed by Yandex.
</p>
</description>
<launchable type="desktop-id">dev.musyx.Musyx.desktop</launchable>
<categories>
<category>AudioVideo</category>
<category>Audio</category>
<category>Player</category>
</categories>
<content_rating type="oars-1.1"/>
<releases>
<release version="0.2.0" date="2026-10-16"/>
</releases>
</component>