M5 step 5, first part. app/shell is a Tauri 2 crate (jarvis.exe): one
window over app/ui whose invoke("admin") goes to AdminApi::call. Its
WebView2 data sits next to the location file; closing the window stops
the services and waits for a cancelled start (AdminApi::shutdown).
app/shell/package.sh cross-builds it on Linux (x86_64-pc-windows-gnu)
and lays out Jarvis/ with WebView2Loader.dll and python-src/
(voice_worker, jarvis). The worker's default sources are python-src next
to the executable when present, else the repository's src/.
The bot screen now shows the masked token right after saving.
Checked on the win-ci VM: the window and wizard, PC check, uv and worker
venv installed, a cancel leaving no uv/Python process, the token stored
DPAPI-encrypted, a start failing with its reason, logs, error copy, zip
export, closing the window ending the process, nothing under %APPDATA% or
%LOCALAPPDATA%; the core's unit tests on Windows (156/157, the one
Linux-path assumption fixed).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
1.1 KiB
Bash
Executable File
21 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
# Build the Windows management app from Linux and lay it out ready to zip (admin.spec.md, "Windows build"):
|
|
# Jarvis/jarvis.exe, Jarvis/WebView2Loader.dll, Jarvis/python-src/{voice_worker,jarvis}
|
|
# Needs the x86_64-pc-windows-gnu Rust target, mingw-w64 and cmake (for Opus).
|
|
# app/shell/package.sh <output folder>
|
|
set -eu
|
|
here=$(cd "$(dirname "$0")" && pwd)
|
|
out=${1:?output folder}
|
|
target=${CARGO_TARGET_DIR:-$here/target}
|
|
cargo build --release --locked --target x86_64-pc-windows-gnu --manifest-path "$here/Cargo.toml"
|
|
rel="$target/x86_64-pc-windows-gnu/release"
|
|
rm -rf "$out/Jarvis"
|
|
mkdir -p "$out/Jarvis/python-src"
|
|
cp "$rel/jarvis.exe" "$rel/WebView2Loader.dll" "$out/Jarvis/"
|
|
# The worker and brain sources only (the worker venv gets its packages from the requirement files).
|
|
for pkg in voice_worker jarvis; do
|
|
(cd "$here/../../src" && find "$pkg" -name __pycache__ -prune -o -name '*.spec.md' -prune -o -type f -print) |
|
|
while read -r f; do mkdir -p "$out/Jarvis/python-src/$(dirname "$f")"; cp "$here/../../src/$f" "$out/Jarvis/python-src/$f"; done
|
|
done
|
|
echo "$out/Jarvis"
|