mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
* fix(rockstar): ship the launcher service as an add-on pack, not inside the APK * fix: ship the DiRT ws2_32 stand-in as an add-on pack and reject Windows executables in the APK * fix(release): reject APK entries under a packed path even when the manifest omits them * fix(dirt): fetch the ws2_32 stand-in pack once the Linux runtime is installed
13 lines
558 B
Bash
13 lines
558 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
here=$(cd "$(dirname "$0")" && pwd)
|
|
out=${1:-"$here/../../app/src/main/assets/linuxfs/usr/local/lib/droiddeck-rockstar"}
|
|
mkdir -p "$out"
|
|
for target in i686-pc-windows-gnu x86_64-pc-windows-gnu; do
|
|
rustup target add "$target" >/dev/null 2>&1 || true
|
|
cargo build --manifest-path "$here/Cargo.toml" --release --locked --target "$target"
|
|
name=Launcher64.exe
|
|
[[ "$target" == i686-* ]] && name=Launcher32.exe
|
|
install -m644 "${CARGO_TARGET_DIR:-$here/target}/$target/release/Launcher.exe" "$out/$name"
|
|
done
|