Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(tauri): stop exempting desktop_update from mobile native gates (#8697)

Eric Hayes4c5ba447f66c
diff --git a/.github/workflows/ios-app-store-release.yml b/.github/workflows/ios-app-store-release.yml
index f164c52457..fa3a6789bb 100644
--- a/.github/workflows/ios-app-store-release.yml
+++ b/.github/workflows/ios-app-store-release.yml
@@ -54,11 +54,13 @@ jobs:
# apps/web/tauri except the paths that never reach the iOS binary, recognised
# by the same naming convention the Android gate uses (android-native.mjs,
# which excludes iOS/macOS/linux/windows/apple/desktop-named paths): a path
- # component that is `android`, `macos`, `linux`, `windows` or `desktop`,
- # starts with that name plus `_`, `.` or `-`, or an extension-style
- # `.android.` / `.macos.` / `.linux.` / `.windows.` infix (the android_*
- # plugins, tauri.android.conf.json and tauri.macos.conf.json, desktop_update
- # and the desktop_* modules, linux_notification, the macos icons; the Rust
+ # component that is `android`, `macos`, `linux` or `windows` or starts with
+ # that name plus `_`, `.` or `-`; one that is `desktop` or starts with
+ # `desktop.` / `desktop-` (not `desktop_`: desktop_update and its Status type
+ # compile into mobile, only desktop_update/desktop/ is cfg(desktop)); or an
+ # extension-style `.android.` / `.macos.` / `.linux.` / `.windows.` infix (the
+ # android_* plugins, tauri.android.conf.json and tauri.macos.conf.json,
+ # src/desktop/, desktop-cef, linux_notification, the macos icons; the Rust
# ones are all behind cfg(target_os) / cfg(desktop)) — plus the desktop
# updater manifest, editor config and Markdown docs. `apple`/`ios` paths
# stay included: gen/apple is the Xcode project. Plus one thing outside that tree: the
@@ -73,7 +75,7 @@ jobs:
# detection (web_app_check_main/ios_native_check.rs).
NATIVE_TREE_PATH=apps/web/tauri
CACHE_WASM_MANIFEST=crates/client/cache-wasm/Cargo.toml
- export NATIVE_TREE_EXCLUDE='(^|/)(android|macos|linux|windows|desktop)([_./-]|$)|\.(android|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix/'
+ export NATIVE_TREE_EXCLUDE='(^|/)(android|macos|linux|windows)([_./-]|$)|(^|/)desktop([./-]|$)|\.(android|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix/'
# native_tree_listing <commit>: what the hash covers — the filtered ls-tree
# lines plus the cache wasm version — fails if the path is missing.
@@ -441,11 +443,13 @@ jobs:
# apps/web/tauri except the paths that never reach the iOS binary, recognised
# by the same naming convention the Android gate uses (android-native.mjs,
# which excludes iOS/macOS/linux/windows/apple/desktop-named paths): a path
- # component that is `android`, `macos`, `linux`, `windows` or `desktop`,
- # starts with that name plus `_`, `.` or `-`, or an extension-style
- # `.android.` / `.macos.` / `.linux.` / `.windows.` infix (the android_*
- # plugins, tauri.android.conf.json and tauri.macos.conf.json, desktop_update
- # and the desktop_* modules, linux_notification, the macos icons; the Rust
+ # component that is `android`, `macos`, `linux` or `windows` or starts with
+ # that name plus `_`, `.` or `-`; one that is `desktop` or starts with
+ # `desktop.` / `desktop-` (not `desktop_`: desktop_update and its Status type
+ # compile into mobile, only desktop_update/desktop/ is cfg(desktop)); or an
+ # extension-style `.android.` / `.macos.` / `.linux.` / `.windows.` infix (the
+ # android_* plugins, tauri.android.conf.json and tauri.macos.conf.json,
+ # src/desktop/, desktop-cef, linux_notification, the macos icons; the Rust
# ones are all behind cfg(target_os) / cfg(desktop)) — plus the desktop
# updater manifest, editor config and Markdown docs. `apple`/`ios` paths
# stay included: gen/apple is the Xcode project. Plus one thing outside that tree: the
@@ -460,7 +464,7 @@ jobs:
# detection (web_app_check_main/ios_native_check.rs).
NATIVE_TREE_PATH=apps/web/tauri
CACHE_WASM_MANIFEST=crates/client/cache-wasm/Cargo.toml
- export NATIVE_TREE_EXCLUDE='(^|/)(android|macos|linux|windows|desktop)([_./-]|$)|\.(android|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix/'
+ export NATIVE_TREE_EXCLUDE='(^|/)(android|macos|linux|windows)([_./-]|$)|(^|/)desktop([./-]|$)|\.(android|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix/'
# native_tree_listing <commit>: what the hash covers — the filtered ls-tree
# lines plus the cache wasm version — fails if the path is missing.
diff --git a/.github/workflows/ios-release-drift.yml b/.github/workflows/ios-release-drift.yml
index 2c9982759b..89abfb2942 100644
--- a/.github/workflows/ios-release-drift.yml
+++ b/.github/workflows/ios-release-drift.yml
@@ -33,11 +33,13 @@ jobs:
# apps/web/tauri except the paths that never reach the iOS binary, recognised
# by the same naming convention the Android gate uses (android-native.mjs,
# which excludes iOS/macOS/linux/windows/apple/desktop-named paths): a path
- # component that is `android`, `macos`, `linux`, `windows` or `desktop`,
- # starts with that name plus `_`, `.` or `-`, or an extension-style
- # `.android.` / `.macos.` / `.linux.` / `.windows.` infix (the android_*
- # plugins, tauri.android.conf.json and tauri.macos.conf.json, desktop_update
- # and the desktop_* modules, linux_notification, the macos icons; the Rust
+ # component that is `android`, `macos`, `linux` or `windows` or starts with
+ # that name plus `_`, `.` or `-`; one that is `desktop` or starts with
+ # `desktop.` / `desktop-` (not `desktop_`: desktop_update and its Status type
+ # compile into mobile, only desktop_update/desktop/ is cfg(desktop)); or an
+ # extension-style `.android.` / `.macos.` / `.linux.` / `.windows.` infix (the
+ # android_* plugins, tauri.android.conf.json and tauri.macos.conf.json,
+ # src/desktop/, desktop-cef, linux_notification, the macos icons; the Rust
# ones are all behind cfg(target_os) / cfg(desktop)) — plus the desktop
# updater manifest, editor config and Markdown docs. `apple`/`ios` paths
# stay included: gen/apple is the Xcode project. Plus one thing outside that tree: the
@@ -52,7 +54,7 @@ jobs:
# detection (web_app_check_main/ios_native_check.rs).
NATIVE_TREE_PATH=apps/web/tauri
CACHE_WASM_MANIFEST=crates/client/cache-wasm/Cargo.toml
- export NATIVE_TREE_EXCLUDE='(^|/)(android|macos|linux|windows|desktop)([_./-]|$)|\.(android|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix/'
+ export NATIVE_TREE_EXCLUDE='(^|/)(android|macos|linux|windows)([_./-]|$)|(^|/)desktop([./-]|$)|\.(android|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix/'
# native_tree_listing <commit>: what the hash covers — the filtered ls-tree
# lines plus the cache wasm version — fails if the path is missing.
diff --git a/.github/workflows/ios-release-watch.yml b/.github/workflows/ios-release-watch.yml
index aef3774a0b..4f9df73d3d 100644
--- a/.github/workflows/ios-release-watch.yml
+++ b/.github/workflows/ios-release-watch.yml
@@ -114,11 +114,13 @@ jobs:
# apps/web/tauri except the paths that never reach the iOS binary, recognised
# by the same naming convention the Android gate uses (android-native.mjs,
# which excludes iOS/macOS/linux/windows/apple/desktop-named paths): a path
- # component that is `android`, `macos`, `linux`, `windows` or `desktop`,
- # starts with that name plus `_`, `.` or `-`, or an extension-style
- # `.android.` / `.macos.` / `.linux.` / `.windows.` infix (the android_*
- # plugins, tauri.android.conf.json and tauri.macos.conf.json, desktop_update
- # and the desktop_* modules, linux_notification, the macos icons; the Rust
+ # component that is `android`, `macos`, `linux` or `windows` or starts with
+ # that name plus `_`, `.` or `-`; one that is `desktop` or starts with
+ # `desktop.` / `desktop-` (not `desktop_`: desktop_update and its Status type
+ # compile into mobile, only desktop_update/desktop/ is cfg(desktop)); or an
+ # extension-style `.android.` / `.macos.` / `.linux.` / `.windows.` infix (the
+ # android_* plugins, tauri.android.conf.json and tauri.macos.conf.json,
+ # src/desktop/, desktop-cef, linux_notification, the macos icons; the Rust
# ones are all behind cfg(target_os) / cfg(desktop)) — plus the desktop
# updater manifest, editor config and Markdown docs. `apple`/`ios` paths
# stay included: gen/apple is the Xcode project. Plus one thing outside that tree: the
@@ -133,7 +135,7 @@ jobs:
# detection (web_app_check_main/ios_native_check.rs).
NATIVE_TREE_PATH=apps/web/tauri
CACHE_WASM_MANIFEST=crates/client/cache-wasm/Cargo.toml
- export NATIVE_TREE_EXCLUDE='(^|/)(android|macos|linux|windows|desktop)([_./-]|$)|\.(android|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix/'
+ export NATIVE_TREE_EXCLUDE='(^|/)(android|macos|linux|windows)([_./-]|$)|(^|/)desktop([./-]|$)|\.(android|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix/'
# native_tree_listing <commit>: what the hash covers — the filtered ls-tree
# lines plus the cache wasm version — fails if the path is missing.
diff --git a/.github/workflows/web-app-check-main.yml b/.github/workflows/web-app-check-main.yml
index e8123ddd0e..d231838310 100644
--- a/.github/workflows/web-app-check-main.yml
+++ b/.github/workflows/web-app-check-main.yml
@@ -555,8 +555,6 @@ jobs:
- '!apps/web/tauri/**/desktop/**'
- '!apps/web/tauri/**/desktop-*'
- '!apps/web/tauri/**/desktop-*/**'
- - '!apps/web/tauri/**/desktop_*'
- - '!apps/web/tauri/**/desktop_*/**'
- '!apps/web/tauri/**/desktop.*'
- '!apps/web/tauri/desktop-release.json'
- '!apps/web/tauri/.helix/**'
@@ -688,11 +686,13 @@ jobs:
# apps/web/tauri except the paths that never reach the iOS binary, recognised
# by the same naming convention the Android gate uses (android-native.mjs,
# which excludes iOS/macOS/linux/windows/apple/desktop-named paths): a path
- # component that is `android`, `macos`, `linux`, `windows` or `desktop`,
- # starts with that name plus `_`, `.` or `-`, or an extension-style
- # `.android.` / `.macos.` / `.linux.` / `.windows.` infix (the android_*
- # plugins, tauri.android.conf.json and tauri.macos.conf.json, desktop_update
- # and the desktop_* modules, linux_notification, the macos icons; the Rust
+ # component that is `android`, `macos`, `linux` or `windows` or starts with
+ # that name plus `_`, `.` or `-`; one that is `desktop` or starts with
+ # `desktop.` / `desktop-` (not `desktop_`: desktop_update and its Status type
+ # compile into mobile, only desktop_update/desktop/ is cfg(desktop)); or an
+ # extension-style `.android.` / `.macos.` / `.linux.` / `.windows.` infix (the
+ # android_* plugins, tauri.android.conf.json and tauri.macos.conf.json,
+ # src/desktop/, desktop-cef, linux_notification, the macos icons; the Rust
# ones are all behind cfg(target_os) / cfg(desktop)) — plus the desktop
# updater manifest, editor config and Markdown docs. `apple`/`ios` paths
# stay included: gen/apple is the Xcode project. Plus one thing outside that tree: the
@@ -707,7 +707,7 @@ jobs:
# detection (web_app_check_main/ios_native_check.rs).
NATIVE_TREE_PATH=apps/web/tauri
CACHE_WASM_MANIFEST=crates/client/cache-wasm/Cargo.toml
- export NATIVE_TREE_EXCLUDE='(^|/)(android|macos|linux|windows|desktop)([_./-]|$)|\.(android|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix/'
+ export NATIVE_TREE_EXCLUDE='(^|/)(android|macos|linux|windows)([_./-]|$)|(^|/)desktop([./-]|$)|\.(android|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix/'
# native_tree_listing <commit>: what the hash covers — the filtered ls-tree
# lines plus the cache wasm version — fails if the path is missing.
diff --git a/apps/web/scripts/android-native.mjs b/apps/web/scripts/android-native.mjs
index 7d20457cd1..e74f60eabc 100644
--- a/apps/web/scripts/android-native.mjs
+++ b/apps/web/scripts/android-native.mjs
@@ -7,7 +7,9 @@
// It is every tracked file under apps/web/tauri except what never reaches
// the Android binary — iOS, macOS, Linux, Windows and desktop-only paths by
// naming convention (a path component or extension naming the platform, the
-// generated Xcode project under gen/apple, the desktop updater manifest,
+// generated Xcode project under gen/apple; for desktop only `desktop`,
+// `desktop.*` and `desktop-*`, since desktop_update compiles into Android;
+// the desktop updater manifest,
// editor config, Markdown docs) — plus one thing outside that tree: the
// version of the client cache wasm package. The app compiles the cache crates natively, and
// the team bumps that version when a cache change must ship, so the bump
@@ -22,7 +24,7 @@ import { pathToFileURL } from 'node:url';
export const tauriPath = 'apps/web/tauri';
export const cacheWasmManifest = 'crates/client/cache-wasm/Cargo.toml';
export const androidExclude =
- /(^|\/)(ios|macos|linux|windows|apple|desktop)([_./-]|$)|\.(ios|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix\//;
+ /(^|\/)(ios|macos|linux|windows|apple)([_./-]|$)|(^|\/)desktop([./-]|$)|\.(ios|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix\//;
/// A `git` runner bound to a working directory.
export function gitIn(cwd) {
diff --git a/apps/web/scripts/android-version-check.test.ts b/apps/web/scripts/android-version-check.test.ts
index 1617224ab5..50a5063d76 100644
--- a/apps/web/scripts/android-version-check.test.ts
+++ b/apps/web/scripts/android-version-check.test.ts
@@ -224,6 +224,9 @@ describe('PR Android version enforcement', () => {
'apps/web/tauri/src-tauri/src/linux_notification.rs',
'apps/web/tauri/src-tauri/README.md',
'apps/web/tauri/desktop-release.json',
+ 'apps/web/tauri/src-tauri/src/desktop/macrod.rs',
+ 'apps/web/tauri/src-tauri/src/desktop_update/desktop.rs',
+ 'apps/web/tauri/desktop-cef/src/main.rs',
])('ignores the iOS/desktop-only path %s', (path) => {
const base = git('rev-parse', 'HEAD');
write(path, 'changed');
@@ -233,6 +236,20 @@ describe('PR Android version enforcement', () => {
);
});
+ // desktop_update itself is not cfg(desktop): its commands and Status type
+ // compile into the Android binary, so a `desktop_` prefix is not exempt.
+ it.each([
+ 'apps/web/tauri/src-tauri/src/desktop_update.rs',
+ 'apps/web/tauri/src-tauri/src/desktop_update/state.rs',
+ ])('requires a bump for the mobile-compiled path %s', (path) => {
+ const base = git('rev-parse', 'HEAD');
+ write(path, 'changed');
+ commit();
+ expect(() => checkAndroidVersion({ cwd, base })).toThrow(
+ /just android-bump/
+ );
+ });
+
it('requires a bump when the client cache wasm version moves', () => {
write(
'crates/client/cache-wasm/Cargo.toml',
diff --git a/apps/web/scripts/ios-app-store.mjs b/apps/web/scripts/ios-app-store.mjs
index a87858e8ca..9dff57e9f7 100644
--- a/apps/web/scripts/ios-app-store.mjs
+++ b/apps/web/scripts/ios-app-store.mjs
@@ -157,9 +157,11 @@ const BOOLEAN_FLAGS = new Set(["require-approved", "require-unused-build"]);
/// "The native code": every tracked blob under this directory except what
/// never reaches the iOS binary — anything Android-only or desktop-only by
-/// Tauri's naming convention (a path component `android`, `macos`, `linux`,
-/// `windows` or `desktop`, that name plus `_`, `.` or `-`, or a `*.android.*`
-/// / `*.macos.*` / `*.linux.*` / `*.windows.*` infix; all behind
+/// Tauri's naming convention (a path component `android`, `macos`, `linux`
+/// or `windows`, or that name plus `_`, `.` or `-`; `desktop`, `desktop.*` or
+/// `desktop-*` but not `desktop_*`, since desktop_update compiles into
+/// mobile; or a `*.android.*` / `*.macos.*` / `*.linux.*` / `*.windows.*`
+/// infix; all behind
/// cfg(target_os) / cfg(desktop)), the desktop updater manifest, editor
/// config and Markdown docs — plus the version of the client cache wasm
/// package, which the team bumps when a cache change must ship (the app compiles the cache crates
@@ -170,7 +172,7 @@ const BOOLEAN_FLAGS = new Set(["require-approved", "require-unused-build"]);
const NATIVE_TREE_PATH = "apps/web/tauri";
const CACHE_WASM_MANIFEST = "crates/client/cache-wasm/Cargo.toml";
const NATIVE_TREE_EXCLUDE =
- /(^|\/)(android|macos|linux|windows|desktop)([_./-]|$)|\.(android|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix\//;
+ /(^|\/)(android|macos|linux|windows)([_./-]|$)|(^|\/)desktop([./-]|$)|\.(android|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix\//;
const STAMP_RE = /native tree ([0-9a-f]{40})/;
const STAMP_PR_RE = /for PR #(\d+)/;
diff --git a/tooling/xtask/crates/xtask_workflows/src/workflows/scripts/ios_native_tree.sh b/tooling/xtask/crates/xtask_workflows/src/workflows/scripts/ios_native_tree.sh
index ad077a9a78..bbb5412311 100644
--- a/tooling/xtask/crates/xtask_workflows/src/workflows/scripts/ios_native_tree.sh
+++ b/tooling/xtask/crates/xtask_workflows/src/workflows/scripts/ios_native_tree.sh
@@ -3,11 +3,13 @@
# apps/web/tauri except the paths that never reach the iOS binary, recognised
# by the same naming convention the Android gate uses (android-native.mjs,
# which excludes iOS/macOS/linux/windows/apple/desktop-named paths): a path
-# component that is `android`, `macos`, `linux`, `windows` or `desktop`,
-# starts with that name plus `_`, `.` or `-`, or an extension-style
-# `.android.` / `.macos.` / `.linux.` / `.windows.` infix (the android_*
-# plugins, tauri.android.conf.json and tauri.macos.conf.json, desktop_update
-# and the desktop_* modules, linux_notification, the macos icons; the Rust
+# component that is `android`, `macos`, `linux` or `windows` or starts with
+# that name plus `_`, `.` or `-`; one that is `desktop` or starts with
+# `desktop.` / `desktop-` (not `desktop_`: desktop_update and its Status type
+# compile into mobile, only desktop_update/desktop/ is cfg(desktop)); or an
+# extension-style `.android.` / `.macos.` / `.linux.` / `.windows.` infix (the
+# android_* plugins, tauri.android.conf.json and tauri.macos.conf.json,
+# src/desktop/, desktop-cef, linux_notification, the macos icons; the Rust
# ones are all behind cfg(target_os) / cfg(desktop)) — plus the desktop
# updater manifest, editor config and Markdown docs. `apple`/`ios` paths
# stay included: gen/apple is the Xcode project. Plus one thing outside that tree: the
@@ -22,7 +24,7 @@
# detection (web_app_check_main/ios_native_check.rs).
NATIVE_TREE_PATH=apps/web/tauri
CACHE_WASM_MANIFEST=crates/client/cache-wasm/Cargo.toml
-export NATIVE_TREE_EXCLUDE='(^|/)(android|macos|linux|windows|desktop)([_./-]|$)|\.(android|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix/'
+export NATIVE_TREE_EXCLUDE='(^|/)(android|macos|linux|windows)([_./-]|$)|(^|/)desktop([./-]|$)|\.(android|macos|linux|windows)\.|\.md$|^desktop-release\.json$|^\.helix/'
# native_tree_listing <commit>: what the hash covers — the filtered ls-tree
# lines plus the cache wasm version — fails if the path is missing.
diff --git a/tooling/xtask/crates/xtask_workflows/src/workflows/web_app_check_main/ios_native_check.rs b/tooling/xtask/crates/xtask_workflows/src/workflows/web_app_check_main/ios_native_check.rs
index 4d18f0bdde..e7a637eb9f 100644
--- a/tooling/xtask/crates/xtask_workflows/src/workflows/web_app_check_main/ios_native_check.rs
+++ b/tooling/xtask/crates/xtask_workflows/src/workflows/web_app_check_main/ios_native_check.rs
@@ -99,7 +99,8 @@ fn paths_filter() -> Step<Use> {
"filters",
// Mirror NATIVE_TREE_EXCLUDE in scripts/ios_native_tree.sh: paths
// named for another platform (android, macos, linux, windows,
- // desktop) never reach the iOS binary. The generator rejects
+ // desktop) never reach the iOS binary; `desktop_*` stays counted
+ // because desktop_update compiles into mobile. The generator rejects
// globs that match nothing, so only the shapes present in the
// tree today are listed; when a file in a new shape appears
// (e.g. the first windows_* module), extend this list to keep it
@@ -122,8 +123,6 @@ fn paths_filter() -> Step<Use> {
- '!apps/web/tauri/**/desktop/**'
- '!apps/web/tauri/**/desktop-*'
- '!apps/web/tauri/**/desktop-*/**'
- - '!apps/web/tauri/**/desktop_*'
- - '!apps/web/tauri/**/desktop_*/**'
- '!apps/web/tauri/**/desktop.*'
- '!apps/web/tauri/desktop-release.json'
- '!apps/web/tauri/.helix/**'
diff --git a/tooling/xtask/crates/xtask_workflows/src/workflows/web_app_check_main/test.rs b/tooling/xtask/crates/xtask_workflows/src/workflows/web_app_check_main/test.rs
index c1ad5bb36c..358faa2553 100644
--- a/tooling/xtask/crates/xtask_workflows/src/workflows/web_app_check_main/test.rs
+++ b/tooling/xtask/crates/xtask_workflows/src/workflows/web_app_check_main/test.rs
@@ -404,6 +404,60 @@ fn test_job_keeps_vitest_module_cache_on_the_cache_volume() {
);
}
+/// The iOS native tree exempts desktop-only paths by name, but `desktop_update`
+/// is not cfg(desktop): its commands and Status type compile into mobile, so a
+/// `desktop_` prefix must stay counted while `desktop`, `desktop.*` and
+/// `desktop-*` are exempt.
+#[test]
+fn native_tree_exclude_counts_mobile_compiled_desktop_update() {
+ use std::process::Command;
+
+ let script = include_str!("../scripts/ios_native_tree.sh");
+ let output = Command::new("bash")
+ .arg("-c")
+ .arg(format!(
+ r#"set -euo pipefail
+{script}
+printf '%s\n' "$@" | awk '$0 ~ ENVIRON["NATIVE_TREE_EXCLUDE"]'
+"#
+ ))
+ .args([
+ "bash",
+ "src-tauri/src/desktop.rs",
+ "src-tauri/src/desktop/macrod.rs",
+ "src-tauri/src/desktop_update/desktop.rs",
+ "src-tauri/src/desktop_update/desktop/test.rs",
+ "src-tauri/capabilities/desktop.json",
+ "desktop-cef/src/main.rs",
+ "desktop-release.json",
+ "src-tauri/src/desktop_update.rs",
+ "src-tauri/src/desktop_update/state.rs",
+ "src-tauri/src/lib.rs",
+ ])
+ .env_remove("BASH_ENV")
+ .output()
+ .expect("run native tree exclusion");
+ assert!(
+ output.status.success(),
+ "{}",
+ String::from_utf8_lossy(&output.stderr)
+ );
+ assert_eq!(
+ String::from_utf8_lossy(&output.stdout)
+ .lines()
+ .collect::<Vec<_>>(),
+ [
+ "src-tauri/src/desktop.rs",
+ "src-tauri/src/desktop/macrod.rs",
+ "src-tauri/src/desktop_update/desktop.rs",
+ "src-tauri/src/desktop_update/desktop/test.rs",
+ "src-tauri/capabilities/desktop.json",
+ "desktop-cef/src/main.rs",
+ "desktop-release.json",
+ ],
+ );
+}
+
/// Exercise Git's actual HTTP header handling with and without checkout's
/// persisted credentials and Android's inherited Nix build environment. The
/// local endpoint records the request, then rejects it: repository objects are