Files
julyx10 07173f327d ci: handle commented-out GDK_BACKEND in the bundled GTK AppImage hook
A newer @tauri-apps/cli (2.12.0, the floating `v2` tag tauri-action installs)
ships linuxdeploy-plugin-gtk.sh with `export GDK_BACKEND=x11` commented out, so
the patch step matched zero assignments and aborted the AppImage post-processing.
Match an optional leading '#' so the commented (or active) line is replaced with
our `export GDK_BACKEND="${GDK_BACKEND-wayland,x11}"` default; keep requiring
exactly one match so further upstream changes still surface for review.
2026-09-28 19:27:01 +08:00
..

Scripts

Utility scripts for the Lap project.

1. download_models

Downloads AI model files (CLIP + InsightFace) required for the app to src-tauri/resources/models/. Already downloaded files are skipped automatically.

Usage

macOS / Linux:

./scripts/download_models.sh

Windows (PowerShell):

.\scripts\download_models.ps1

Models Downloaded

Model Source Purpose
tokenizer.json OpenAI CLIP ViT-B/32 Text tokenization
text_model.onnx CLIP ViT-B/32 (quantized) Text embedding
vision_model.onnx CLIP ViT-B/32 (quantized) Image embedding
det_500m.onnx InsightFace Buffalo-S Face detection
w600k_mbf.onnx InsightFace Buffalo-S Face recognition

2. download_ffmpeg_sidecar

Downloads FFmpeg and FFprobe sidecar binaries for the current platform into src-tauri/resources/ffmpeg/. This ensures the packaged app can include the sidecar binaries with releases built from source.

Usage

macOS / Linux:

./scripts/download_ffmpeg_sidecar.sh

Windows (PowerShell):

.\scripts\download_ffmpeg_sidecar.ps1

Sidecar Files Downloaded

Platform Files
macOS Intel ffmpeg-x86_64-apple-darwin, ffprobe-x86_64-apple-darwin
macOS Apple Silicon ffmpeg-aarch64-apple-darwin, ffprobe-aarch64-apple-darwin
Linux x86_64 ffmpeg-x86_64-unknown-linux-gnu, ffprobe-x86_64-unknown-linux-gnu
Linux aarch64 ffmpeg-aarch64-unknown-linux-gnu, ffprobe-aarch64-unknown-linux-gnu
Windows x86_64 ffmpeg-x86_64-pc-windows-msvc.exe, ffprobe-x86_64-pc-windows-msvc.exe