Rename tarball folder to match tarball name

This commit is contained in:
Damien Elmes 2025-07-08 00:35:47 +07:00
parent 11c3e60615
commit 84658e9cec

View file

@ -13,7 +13,7 @@ HOST_ARCH=$(uname -m)
# Define output paths
OUTPUT_DIR="../../../out/launcher"
LAUNCHER_DIR="$OUTPUT_DIR/anki-launcher"
LAUNCHER_DIR="$OUTPUT_DIR/anki-linux"
# Clean existing output directory
rm -rf "$LAUNCHER_DIR"
@ -76,10 +76,9 @@ chmod +x \
# Set proper permissions and create tarball
chmod -R a+r "$LAUNCHER_DIR"
# Create tarball using the same options as the Rust template
ZSTD="zstd -c --long -T0 -18"
TRANSFORM="s%^.%anki-launcher%S"
TARBALL="$OUTPUT_DIR/anki-launcher.tar.zst"
TRANSFORM="s%^.%anki-linux%S"
TARBALL="$OUTPUT_DIR/anki-linux.tar.zst"
tar -I "$ZSTD" --transform "$TRANSFORM" -cf "$TARBALL" -C "$LAUNCHER_DIR" .