Fix architecture mismatch in aarch64 .deb packages

Co-authored-by: sxyazi <17523360+sxyazi@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-09-26 10:23:37 +00:00
parent e72b2a010d
commit 0892ca1cfb
4 changed files with 4 additions and 1 deletions

View file

@ -15,7 +15,10 @@ mv "target/$1/release" target/release
# Package deb
if [[ "$ARTIFACT_NAME" == *-linux-* ]] && { [[ "$ARTIFACT_NAME" == *-aarch64-* ]] || [[ "$ARTIFACT_NAME" == *-x86_64-* ]]; }; then
cargo install cargo-deb
cargo deb -p yazi-packing --no-build -o "$ARTIFACT_NAME.deb"
# For .deb packaging, restore the target-specific path that cargo-deb expects
mkdir -p "target/$1"
cp -r "target/release" "target/$1/"
cargo deb -p yazi-packing --no-build --target "$1" -o "$ARTIFACT_NAME.deb"
fi
# Create the artifact

BIN
yazi-aarch64-test.deb Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.