18 行
523 B
Bash
18 行
523 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||
|
|
. "$ROOT_DIR/scripts/lib.sh"
|
||
|
|
|
||
|
|
OUT_DIR="${1:-$ROOT_DIR/dist}"
|
||
|
|
mkdir -p "$OUT_DIR"
|
||
|
|
|
||
|
|
audit "export-offline-bundle" "STARTED" "$OUT_DIR"
|
||
|
|
progress "export-offline-bundle" "STARTED" "$OUT_DIR"
|
||
|
|
|
||
|
|
tar --exclude='data' --exclude='dist' --exclude='.git' -czf "$OUT_DIR/xuqm-private-$(cat "$ROOT_DIR/VERSION").tar.gz" -C "$ROOT_DIR" .
|
||
|
|
|
||
|
|
audit "export-offline-bundle" "DONE" "$OUT_DIR"
|
||
|
|
progress "export-offline-bundle" "DONE" "$OUT_DIR"
|
||
|
|
|