mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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
|
# Define output paths
|
||||||
OUTPUT_DIR="../../../out/launcher"
|
OUTPUT_DIR="../../../out/launcher"
|
||||||
LAUNCHER_DIR="$OUTPUT_DIR/anki-launcher"
|
LAUNCHER_DIR="$OUTPUT_DIR/anki-linux"
|
||||||
|
|
||||||
# Clean existing output directory
|
# Clean existing output directory
|
||||||
rm -rf "$LAUNCHER_DIR"
|
rm -rf "$LAUNCHER_DIR"
|
||||||
|
@ -76,10 +76,9 @@ chmod +x \
|
||||||
# Set proper permissions and create tarball
|
# Set proper permissions and create tarball
|
||||||
chmod -R a+r "$LAUNCHER_DIR"
|
chmod -R a+r "$LAUNCHER_DIR"
|
||||||
|
|
||||||
# Create tarball using the same options as the Rust template
|
|
||||||
ZSTD="zstd -c --long -T0 -18"
|
ZSTD="zstd -c --long -T0 -18"
|
||||||
TRANSFORM="s%^.%anki-launcher%S"
|
TRANSFORM="s%^.%anki-linux%S"
|
||||||
TARBALL="$OUTPUT_DIR/anki-launcher.tar.zst"
|
TARBALL="$OUTPUT_DIR/anki-linux.tar.zst"
|
||||||
|
|
||||||
tar -I "$ZSTD" --transform "$TRANSFORM" -cf "$TARBALL" -C "$LAUNCHER_DIR" .
|
tar -I "$ZSTD" --transform "$TRANSFORM" -cf "$TARBALL" -C "$LAUNCHER_DIR" .
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue