You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Building from Source section duplicated everything the build
scripts already do (apt deps, cargo-xwin install, rustup target,
manual cargo tauri build commands). Replace it with a tight set
of three-line recipes that just clone the repo and run
scripts/build-linux-local.sh or scripts/build-windows-local.sh —
the scripts handle prerequisite checks/installs, version stamping,
and working-tree cleanup interactively.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+21-57Lines changed: 21 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,87 +58,51 @@ Most portfolio tracking services store your data on their servers, where third p
58
58
59
59
## Building from Source
60
60
61
-
### Prerequisites
61
+
The only host requirement is **Rust** ([install via rustup](https://rustup.rs/)). The build scripts under `scripts/` take care of everything else — system packages, the Windows cross-compile toolchain, Tauri CLI — and prompt before installing anything (default **Y**).
62
62
63
-
**All platforms:**
64
-
-[Rust](https://rustup.rs/) 1.95.0 or newer (MSRV pinned in `src-tauri/Cargo.toml`)
65
-
- Tauri CLI v2:
66
-
```bash
67
-
cargo install tauri-cli --version "^2" --locked
68
-
```
63
+
> Both scripts run on Debian/Ubuntu-based hosts: Linux directly, or Windows via WSL.
69
64
70
-
> The frontend is plain vanilla JS — Tauri 2's CLI is a Rust binary, so **Node.js is not required**.
71
-
72
-
**Linux (Ubuntu/Debian):**
73
-
```bash
74
-
sudo apt update
75
-
sudo apt install -y \
76
-
libwebkit2gtk-4.1-dev \
77
-
libgtk-3-dev \
78
-
libayatana-appindicator3-dev \
79
-
librsvg2-dev \
80
-
patchelf
81
-
```
82
-
83
-
**Windows:**
84
-
-[WebView2 Runtime](https://developer.microsoft.com/en-us/microsoft-edge/webview2/) (bundled in Windows 11)
85
-
-[Visual Studio Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) with the **Desktop development with C++** workload
> To run on another Ubuntu machine, the package `libwebkit2gtk-4.1-0` must be present on the target system.
109
76
110
-
The repo includes [`scripts/build-windows-local.sh`](scripts/build-windows-local.sh) which automates the whole cross-compilation flow — it verifies prerequisites (offering to install any that are missing), stamps the version from the latest `v*` git tag plus the short HEAD SHA (e.g. `0.7.1-beta-69e6f13`), runs the build, and restores the source files afterwards:
77
+
### Windows portable `.exe` (cross-compiled from Linux/WSL)
111
78
112
79
```bash
113
-
./scripts/build-windows-local.sh # latest v* tag
114
-
./scripts/build-windows-local.sh v0.7.0-beta # specific tag
The script uses [`cargo-xwin`](https://github.com/rust-cross/cargo-xwin), which fetches Microsoft's MSVC SDK on demand (MIT-licensed) — no Windows VM or Visual Studio install required.
- Verify prerequisites and offer to install anything missing (`apt`, `rustup target add`, `cargo install`).
92
+
- Stamp the binary version from the latest `v*` git tag plus the short HEAD SHA — e.g. `0.7.2-beta-37c3484` — so the version shown in the desktop UI uniquely identifies the build.
93
+
- Accept a specific tag as an argument: `bash scripts/build-linux-local.sh v0.7.0-beta`.
94
+
- Restore the working tree after the build via a `trap`, even on failure or Ctrl+C.
0 commit comments