feat: promote linux native audio path
This commit is contained in:
@@ -12,6 +12,7 @@ STAGE_DIR="$(mktemp -d "${TMPDIR:-/tmp}/chanora-linux-deb.XXXXXX")"
|
||||
PKG_ROOT="$STAGE_DIR/package"
|
||||
INSTALL_ROOT="$PKG_ROOT/opt/chanora"
|
||||
ICON_SRC="$APP_DIR/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png"
|
||||
ONNXRUNTIME_SHARED_LIB="${CHANORA_ONNXRUNTIME_SHARED_LIB:-}"
|
||||
|
||||
cleanup() {
|
||||
rm -rf "$STAGE_DIR"
|
||||
@@ -67,6 +68,9 @@ main() {
|
||||
require_cmd dpkg-deb
|
||||
require_file "$PUBSPEC" "Flutter pubspec"
|
||||
require_file "$ICON_SRC" "launcher icon"
|
||||
if [[ -n "$ONNXRUNTIME_SHARED_LIB" ]]; then
|
||||
require_file "$ONNXRUNTIME_SHARED_LIB" "Linux ONNX Runtime shared library"
|
||||
fi
|
||||
|
||||
if [[ ! -f "$OBOE_DIR/Cargo.toml" ]]; then
|
||||
cat >&2 <<EOF
|
||||
@@ -106,6 +110,9 @@ EOF
|
||||
local bundle_dir="$APP_DIR/build/linux/$flutter_arch/release/bundle"
|
||||
local app_binary="$bundle_dir/chanora_flutter"
|
||||
require_file "$app_binary" "Linux release bundle binary"
|
||||
if [[ -n "$ONNXRUNTIME_SHARED_LIB" ]]; then
|
||||
require_file "$bundle_dir/lib/libonnxruntime.so" "bundled Linux ONNX Runtime shared library"
|
||||
fi
|
||||
|
||||
mkdir -p \
|
||||
"$PKG_ROOT/DEBIAN" \
|
||||
@@ -123,7 +130,7 @@ Section: net
|
||||
Priority: optional
|
||||
Architecture: $arch
|
||||
Maintainer: Chanora Project Contributors
|
||||
Depends: libasound2, libgtk-3-0, libpulse0, libsdl2-2.0-0, libstdc++6
|
||||
Depends: libasound2, libgtk-3-0, libpipewire-0.3-0, libpulse0, libstdc++6
|
||||
Description: Chanora voice client for TeamSpeak-compatible servers
|
||||
Chanora is a Flutter + Rust voice client for TeamSpeak-compatible servers.
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user