Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion frontend/src/routes/reports/+page.svelte
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
test
13 changes: 11 additions & 2 deletions scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,17 @@ log "✓ Detected architecture: $ARCH_NAME" 38

# Detect OS
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
log "✓ Detected OS: $OS" 40
OS_NAME="$OS"
log "✓ Detected OS: $OS_NAME" 40

# Check if this is a production environment (Linux only)
if [ "$OS_NAME" != "linux" ]; then
error "Updates are only supported on Linux production systems. Current OS: $OS_NAME. This appears to be a development environment."
fi

# Download the new binaries
log "📥 Downloading backend binary for version ${VERSION}..." 45
BACKEND_URL="https://github.com/${REPO}/releases/download/v${VERSION}/csf-backend-${OS}-${ARCH_NAME}"
BACKEND_URL="https://github.com/${REPO}/releases/download/v${VERSION}/csf-backend-${OS_NAME}-${ARCH_NAME}"
TMP_DIR=$(mktemp -d)

log "ℹ️ Download URL: ${BACKEND_URL}" 47
Expand All @@ -194,6 +200,9 @@ fi

log "✓ Backend binary downloaded ($(du -h "${TMP_DIR}/backend" | cut -f1))" 55

# Make backend executable
chmod +x "${TMP_DIR}/backend"

# Download frontend package
log "📥 Downloading frontend package..." 60
FRONTEND_URL="https://github.com/${REPO}/releases/download/v${VERSION}/csf-frontend-${VERSION}.tar.gz"
Expand Down
Loading