Skip to content

A high-performance Android storage analyzer that bypasses MTP using a native C++ daemon, a Rust TCP bridge, and a React Treemap UI.

Rust

Use Tauri's Windows configuration for bundled ADB (#127)

Vishnu Srivatsava6c94c97068e8
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index fcea402..43d9169 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -126,22 +126,6 @@ jobs:
Remove-Item -Recurse -Force platform-tools, platform-tools.zip
Write-Host "✓ ADB binaries ready for Windows"
- # Windows ADB is adb.exe and requires companion DLLs.
- # Patch tauri.conf.json to bundle the correct filenames.
- - name: Patch Tauri config for Windows ADB
- if: runner.os == 'Windows'
- shell: pwsh
- run: |
- $conf = Get-Content src-tauri/tauri.conf.json -Raw | ConvertFrom-Json
- $conf.bundle.resources = @(
- "bin/adb.exe",
- "bin/AdbWinApi.dll",
- "bin/AdbWinUsbApi.dll",
- "bin/daemon"
- )
- $conf | ConvertTo-Json -Depth 10 | Set-Content src-tauri/tauri.conf.json
- Write-Host "✓ tauri.conf.json patched for Windows"
-
- name: Update version from Git tag
if: startsWith(github.ref, 'refs/tags/v')
shell: node {0}
diff --git a/.gitignore b/.gitignore
index 41f7124..1a4ebf4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,6 +25,9 @@ dist-ssr
# SocketSweep custom ignores
engine/daemon
+/src-tauri/bin/adb.exe
+/src-tauri/bin/AdbWinApi.dll
+/src-tauri/bin/AdbWinUsbApi.dll
engine/.daemon-build.*/
output.json
diff --git a/README.md b/README.md
index ce9fc5e..e6f3018 100644
--- a/README.md
+++ b/README.md
@@ -290,10 +290,18 @@ Current startup also requires the rebuilt daemon for
[owned session files, allocated ports, and lifetime cleanup](docs/daemon-sessions.md).
-### 2. Install Frontend Dependencies
+### 2. Prepare ADB and install frontend dependencies
+
+On Linux and macOS, copy `adb` from your installed Android SDK's
+`platform-tools` directory to `src-tauri/bin/adb`. On Windows, copy
+`adb.exe`, `AdbWinApi.dll`, and `AdbWinUsbApi.dll` from the same
+`platform-tools` installation to `src-tauri/bin/`. Tauri picks up the
+Windows resource list automatically.
+
+From the repository root:
+
```bash
-cd ..
-npm install
+npm ci
```
### 3. Run the App
diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json
new file mode 100644
index 0000000..2236652
--- /dev/null
+++ b/src-tauri/tauri.windows.conf.json
@@ -0,0 +1,10 @@
+{
+ "bundle": {
+ "resources": [
+ "bin/adb.exe",
+ "bin/AdbWinApi.dll",
+ "bin/AdbWinUsbApi.dll",
+ "bin/daemon"
+ ]
+ }
+}