Skip to content

fix(build): allow metadata-only application builds - #1

Open
zackarychapple wants to merge 2 commits into
tap/watch-resourcesfrom
codex/fix-windows-context-artifacts
Open

fix(build): allow metadata-only application builds#1
zackarychapple wants to merge 2 commits into
tap/watch-resourcesfrom
codex/fix-windows-context-artifacts

Conversation

@zackarychapple

@zackarychapple zackarychapple commented Aug 10, 2026

Copy link
Copy Markdown

What changed

  • add Attributes::build_application_artifacts(bool), defaulting to true
  • when disabled, retain configuration validation, ACL generation, global API scripts, target metadata, and optional codegen
  • skip final-application work: Android project mutation, sidecar/resource/framework staging, and platform-specific executable link/deployment configuration
  • preserve existing behavior for every caller that does not explicitly opt out

Why

A library-only package may need tauri_build::try_build for ACL/context metadata without owning an application executable. Running the existing application-artifact path from that package can emit invalid binary-only Cargo directives and create unordered duplicate writers for staged app payloads.

The real application package remains on the default-enabled path, so this changes no normal Tauri build pipeline.

Validation

  • cargo +stable fmt --package tauri-build -- --check
  • cargo +1.88.0 test -p tauri-build --all-features --locked — 10 unit tests plus doctest
  • cargo +1.88.0 clippy -p tauri-build --all-targets --all-features --locked --no-deps -- -A clippy::uninlined-format-args -D warnings
  • cargo +nightly-2026-05-05 check -p tauri-build --target x86_64-pc-windows-msvc --all-features --locked
  • change-tag validation
  • independent metadata-only fixture on a Windows target and macOS host

@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown

Package Changes Through e373029

There are 9 changes which include tauri with patch, tauri-utils with patch, tauri-build with patch, tauri-plugin with patch, tauri-macros with patch, tauri-codegen with patch, @tauri-apps/cli with patch, tauri-cli with patch, tauri-bundler with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-utils 2.9.3 2.9.4
tauri-bundler 2.9.4 2.10.0
tauri-runtime 2.11.3 2.11.4
tauri-runtime-wry 2.11.3 2.11.4
tauri-runtime-cef 0.1.0 0.1.1
tauri-codegen 2.6.3 2.6.4
tauri-macros 2.6.3 2.6.4
tauri-plugin 2.6.3 2.6.4
tauri-build 2.6.3 2.6.4
tauri 2.11.3 2.11.4
@tauri-apps/cli 2.11.4 2.11.5
tauri-cli 2.11.4 2.11.5

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@zackarychapple zackarychapple changed the title fix(build): allow metadata-only Windows builds fix(build): allow metadata-only application builds Aug 10, 2026
@zackarychapple
zackarychapple marked this pull request as ready for review August 10, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant