first commit
This commit is contained in:
commit
a408df2a76
218 changed files with 52376 additions and 0 deletions
17
packaging/build-deb.sh
Executable file
17
packaging/build-deb.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
|
||||
# Use Linux-native target dir when building from /mnt/* under WSL for speed
|
||||
if [[ "$PROJECT_DIR" == /mnt/* ]]; then
|
||||
export CARGO_TARGET_DIR="${CARGO_TARGET_DIR:-$HOME/.cache/yandex-music-rs-target}"
|
||||
else
|
||||
export CARGO_TARGET_DIR="${CARGO_TARGET_DIR:-$PROJECT_DIR/target}"
|
||||
fi
|
||||
|
||||
cd "$PROJECT_DIR"
|
||||
cargo deb --output "$PROJECT_DIR/target/debian/"
|
||||
ls -lh "$PROJECT_DIR/target/debian/"*.deb
|
||||
10
packaging/debian/postinst
Executable file
10
packaging/debian/postinst
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if command -v update-desktop-database >/dev/null 2>&1; then
|
||||
update-desktop-database -q /usr/share/applications || true
|
||||
fi
|
||||
|
||||
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
|
||||
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
|
||||
fi
|
||||
10
packaging/debian/postrm
Executable file
10
packaging/debian/postrm
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if command -v update-desktop-database >/dev/null 2>&1; then
|
||||
update-desktop-database -q /usr/share/applications || true
|
||||
fi
|
||||
|
||||
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
|
||||
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
|
||||
fi
|
||||
BIN
packaging/icons/128x128.png
Normal file
BIN
packaging/icons/128x128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.6 KiB |
BIN
packaging/icons/256x256.png
Normal file
BIN
packaging/icons/256x256.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
BIN
packaging/icons/64x64.png
Normal file
BIN
packaging/icons/64x64.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
17
packaging/yandex-music-rs.desktop
Normal file
17
packaging/yandex-music-rs.desktop
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=Yandex Music
|
||||
Name[ru]=Яндекс Музыка
|
||||
GenericName=Music Player
|
||||
GenericName[ru]=Музыкальный плеер
|
||||
Comment=Native high-performance Yandex Music desktop client
|
||||
Comment[ru]=Нативный клиент Яндекс Музыки на Rust
|
||||
Exec=/usr/bin/yandex-music-rs %u
|
||||
Icon=yandex-music-rs
|
||||
Terminal=false
|
||||
Categories=AudioVideo;Audio;Player;
|
||||
Keywords=music;yandex;audio;player;музыка;яндекс;
|
||||
MimeType=x-scheme-handler/yandexmusic;
|
||||
StartupNotify=true
|
||||
StartupWMClass=yandex-music-rs
|
||||
Loading…
Add table
Add a link
Reference in a new issue