summaryrefslogtreecommitdiffhomepage
path: root/bin/build-pkg-windows
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-04 21:21:20 +0900
committerAdam Malczewski <[email protected]>2026-06-04 21:21:20 +0900
commit394f1ed37ce860da6fdc385769bf29f9737105cd (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /bin/build-pkg-windows
parent81a9cdbadf8c9d940d4fe9a2a0de607dee1f5f1a (diff)
downloaddispatch-394f1ed37ce860da6fdc385769bf29f9737105cd.tar.gz
dispatch-394f1ed37ce860da6fdc385769bf29f9737105cd.zip
chore: genesis — remove all files to rebuild from scratch (arch rewrite)
Diffstat (limited to 'bin/build-pkg-windows')
-rwxr-xr-xbin/build-pkg-windows38
1 files changed, 0 insertions, 38 deletions
diff --git a/bin/build-pkg-windows b/bin/build-pkg-windows
deleted file mode 100755
index c5760e0..0000000
--- a/bin/build-pkg-windows
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env bash
-# Build the Windows Electron output via electron-builder.
-# Produces an unpacked directory at packages/frontend/release/win-unpacked.
-#
-# Usage:
-# bin/build-pkg-windows
-#
-# Override the API URL the frontend bundle points to:
-# VITE_API_URL="http://your-host:18390" bin/build-pkg-windows
-
-set -euo pipefail
-
-SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
-PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
-FRONTEND_DIR="$PROJECT_DIR/packages/frontend"
-VITE_API_URL="${VITE_API_URL:-http://localhost:18390}"
-
-cd "$PROJECT_DIR"
-
-# Install deps (electron + electron-builder live as frontend devDependencies)
-bun install
-
-# Build the SPA bundle, then package it for Windows (unpacked dir)
-cd "$FRONTEND_DIR"
-VITE_API_URL="$VITE_API_URL" bun run dist:win
-
-WIN_BUILD="$FRONTEND_DIR/release/win-unpacked"
-
-if [ ! -d "$WIN_BUILD" ]; then
- echo "Build failed: no win-unpacked directory found at $WIN_BUILD" >&2
- exit 1
-fi
-
-echo ""
-echo "Windows Electron build ready at:"
-echo " $WIN_BUILD"
-echo ""
-echo "Copy that folder to a Windows machine and run Dispatch.exe."