mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Rename tarball folder to match tarball name
This commit is contained in:
parent
11c3e60615
commit
84658e9cec
1 changed files with 3 additions and 4 deletions
|
@ -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" .
|
||||
|
||||
|
|
Loading…
Reference in a new issue