first commit

This commit is contained in:
marwy 2026-11-27 13:16:36 +03:00
commit a408df2a76
218 changed files with 52376 additions and 0 deletions

17
packaging/build-deb.sh Executable file
View 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