build: embed static Linux scanners and deploy them on demand

This commit is contained in:
Tobi Lutke
2026-10-22 16:22:26 -04:00
parent d2cbab6468
commit 2c22ed4d00
9 changed files with 311 additions and 16 deletions
+5 -3
View File
@@ -91,7 +91,9 @@ jobs:
run: cargo xtask test
- name: Build
run: cargo build --release --locked -p disktree-app
run: |
rustup target add x86_64-unknown-linux-musl aarch64-unknown-linux-musl
cargo xtask portable
- name: Package
id: package
@@ -101,8 +103,8 @@ jobs:
run: |
name="disktree-$VERSION-$ARCH-linux"
mkdir -p "dist/$name"
cp target/release/disktree "dist/$name/"
strip "dist/$name/disktree"
# portable strips before appending; stripping again loses helpers.
cp target/portable/disktree "dist/$name/"
cp packaging/install.sh packaging/disktree.desktop.in \
assets/disktree.svg README.md LICENSE "dist/$name/"
echo "$VERSION" > "dist/$name/VERSION"