Improved progress display
Previously, the progress bar updated only after completing an entire table. For large tables such as LIBARC, this could make the application appear to have stopped responding. Phase 10 updates the interface while rows are being exported.
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
PHASE="${1:?Usage: release-dbsyn.sh PHASE NAME}"
|
||||
NAME="${2:?Usage: release-dbsyn.sh PHASE NAME}"
|
||||
cd "$ROOT"
|
||||
mkdir -p releases
|
||||
xcodebuild -project DBSyn.xcodeproj -scheme DBSyn -configuration Release -destination 'platform=macOS' -derivedDataPath "$ROOT/build" clean build
|
||||
APP="$ROOT/build/Build/Products/Release/DBSyn.app"
|
||||
test -d "$APP"
|
||||
SOURCE="DBSyn-Phase${PHASE}-${NAME}-Source.zip"
|
||||
BINARY="DBSyn-Phase${PHASE}-${NAME}-App-Unsigned.zip"
|
||||
/usr/bin/zip -qr "releases/$SOURCE" DBSyn DBSyn.xcodeproj docs scripts -x '*.DS_Store'
|
||||
(cd "$ROOT/build/Build/Products/Release" && /usr/bin/zip -qr "$ROOT/releases/$BINARY" DBSyn.app)
|
||||
/usr/bin/unzip -tq "releases/$SOURCE" >/dev/null
|
||||
/usr/bin/unzip -tq "releases/$BINARY" >/dev/null
|
||||
printf 'Created:\n %s\n %s\n' "releases/$SOURCE" "releases/$BINARY"
|
||||
Reference in New Issue
Block a user