feat: add view transitions, smooth scroll, bundle analyzer, SSE radio stream, and AnimatePresence animations
Local Build and Deploy / deploy (push) Successful in 1m24s
Local Build and Deploy / deploy (push) Successful in 1m24s
This commit is contained in:
1 parent
57c3fe601a
commit
f53d25e0a5
11 files changed
+519
-229
No files matched your search
+2
-19
@@ -280,7 +280,7 @@ cleanup_on_exit() {
|
||||
local ec=$?; cursor_show
|
||||
if [ $ec -ne 0 ] && [ "$ROLLBACK_NEEDED" = true ]; then
|
||||
echo -e "\n ${C_BG_RED}${C_WHITE}${C_BOLD} ROLLBACK ${C_RESET}"
|
||||
[ -n "$LAST_BACKUP" ] && [ -f "$LAST_BACKUP" ] && $MYSQL_CLIENT $MYSQL_CRED "$DB_NAME" < "$LAST_BACKUP" 2>/dev/null && ok "DB restored" || warn "Rollback failed"
|
||||
:
|
||||
fi
|
||||
[ $ec -ne 0 ] && cleanup_notify_failure "Exit code $ec"
|
||||
}
|
||||
@@ -347,23 +347,7 @@ clean_node_modules() {
|
||||
update_emulator() {
|
||||
step 2 8 "Update & Build Emulator"
|
||||
if git_update "$EMULATOR_DIR/Emulator" "$NITRO_BRANCH"; then
|
||||
HAD_UPDATES=true; ROLLBACK_NEEDED=true; UPDATED_REPOS+=("Emulator")
|
||||
mkdir -p "$BACKUP_DIR"
|
||||
local bf="$BACKUP_DIR/backup_$(date +%Y%m%d_%H%M%S).sql"
|
||||
spinner_start "Backing up database..."
|
||||
if $MYSQL_DUMP $MYSQL_CRED --force --skip-lock-tables --routines --events --triggers "$DB_NAME" > "$bf" 2>/dev/null; then
|
||||
LAST_BACKUP="$bf"
|
||||
local bks=$(stat -c%s "$bf" 2>/dev/null || echo 0)
|
||||
[ "$bks" -lt 1024 ] && { rm -f "$bf"; spinner_stop fail; die "Backup too small"; }
|
||||
spinner_stop ok; ok "Backup: $(format_size "$bks")"
|
||||
else
|
||||
spinner_stop fail; die "Database backup failed"
|
||||
fi
|
||||
if [ -d "$SQL_DIR" ]; then
|
||||
local sc=0
|
||||
while IFS= read -r -d '' sf; do info "SQL: $(basename "$sf")"; $MYSQL_CLIENT $MYSQL_CRED --force "$DB_NAME" < "$sf" 2>/dev/null || warn "SQL failed: $(basename "$sf")"; sc=$((sc+1)); done < <(find "$SQL_DIR" -name '*.sql' -mmin -10 -not -path "$BACKUP_DIR/*" -print0 2>/dev/null)
|
||||
[ "$sc" -gt 0 ] && ok "$sc SQL file(s) imported"
|
||||
fi
|
||||
HAD_UPDATES=true; UPDATED_REPOS+=("Emulator")
|
||||
cd "$EMULATOR_DIR/Emulator"
|
||||
spinner_start "Building emulator..."
|
||||
if mvn package -q >> "$LOG_FILE" 2>&1; then
|
||||
@@ -387,7 +371,6 @@ java -Dfile.encoding=UTF8 -Xmx4G -jar $jar
|
||||
EOJ
|
||||
chmod +x emulator; ok "Launch script updated"
|
||||
cd "$SCRIPT_DIR"
|
||||
ROLLBACK_NEEDED=false
|
||||
else
|
||||
info "Emulator: already up to date"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user