Adds build and packaging scripts for proper apps.
This commit is contained in:
18
scripts/build-gui.sh
Executable file
18
scripts/build-gui.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Nextcloud Upload Tool — Tauri GUI Packaging Helper Script
|
||||
# Builds production frontend and packages native desktop installer/bundles
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
ROOT_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||
GUI_DIR="${ROOT_DIR}/gui"
|
||||
|
||||
echo "==> Building frontend assets..."
|
||||
cd "${GUI_DIR}"
|
||||
npm run build
|
||||
|
||||
echo "==> Packaging native desktop bundle with Tauri..."
|
||||
npm run tauri build
|
||||
|
||||
echo "✓ Native desktop bundle packaged in: ${GUI_DIR}/src-tauri/target/release/bundle/"
|
||||
Reference in New Issue
Block a user