#!/bin/bash # Repack extracted app to app.asar # Usage: ./scripts/repack-app.sh set -e echo "Repacking app.asar..." # Check if asar is installed if ! command -v npx &> /dev/null; then echo "Error: npx is required but not installed" exit 1 fi # Check if extraction directory exists if [ ! -d "src/app-extracted" ]; then echo "Error: src/app-extracted directory not found" echo "Run extract-app.sh first" exit 1 fi # Repack app.asar cd src npx asar pack app-extracted app.asar echo "" echo "✅ Repacking complete!" echo "Updated app.asar is in: src/app.asar" echo "" echo "You can now build the .deb package with: ./scripts/build-deb.sh"