mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-05 02:29:55 +02:00
build(apple): stop tracking generated localization outputs
Localizable.xcstrings and Generated/L10n.swift are generated from localization/strings.json — the single source of truth — yet were committed, which caused redundant tracking and a spurious ~10k-line diff every time Xcode reformatted the catalog on build. Treat them like the (already gitignored) Rust bindings: generate at build time instead of tracking them. gitignore both; make the `apple-project` target depend on `localization` so `bun run generate` recreates them before xcodegen; install Bun in the Apple CI job and trigger it on localization/**. Android strings.xml stays tracked — it has no reformatting churn and its build doesn't run the generator.
This commit is contained in:
2
Makefile
2
Makefile
@@ -113,7 +113,7 @@ apple-core: ## Build the Rust XCFramework and generated Swift bindings.
|
||||
@test "$(HOST_OS)" = macos || { printf 'Apple builds require macOS.\n' >&2; exit 1; }
|
||||
cd $(ROOT) && apple/scripts/build-core.sh $(APPLE_PROFILE)
|
||||
|
||||
apple-project: apple-core ## Generate the native Apple Xcode project.
|
||||
apple-project: apple-core localization ## Generate the native Apple Xcode project.
|
||||
cd $(ROOT)/apple && $(XCODEGEN) generate
|
||||
|
||||
open-apple-project: apple-project ## Generate and open the native Apple Xcode project.
|
||||
|
||||
Reference in New Issue
Block a user