Repository navigation
feat(macos): 允许个人构建在编译时覆盖 bundle id 与数据目录 - #1244
Open
DragonNameLeo wants to merge 1 commit into
Open
DragonNameLeo wants to merge 1 commit into
DragonNameLeo wants to merge 1 commit into
Conversation
…ompile time OPENLESS_BUNDLE_ID / OPENLESS_APP_DIR_NAME (read with option_env!) replace the hardcoded com.openless.app and "OpenLess" for the data directory, log directory, credential store service name and in-app TCC resets. Unset, the values are unchanged, so official builds behave exactly as before; a personal build can set them together with its Tauri identifier to run side by side with the official app without sharing state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YJvDYNu6QoSEhJ4yGSuRqk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
无对应 issue。
让个人构建可以在编译时覆盖写死的
com.openless.app和OpenLess,从而与官方版并存、互不共享状态。未设置时取值不变,官方构建行为与改动前完全一致。修复 / 新增 / 改进
persistence::BUNDLE_ID/persistence::APP_DIR_NAME,分别读取option_env!("OPENLESS_BUNDLE_ID")/option_env!("OPENLESS_APP_DIR_NAME"),默认com.openless.app/OpenLessAPP_DIR_NAMECredentialsVault::SERVICE_NAME(系统凭据库 service 名)与lib.rs中应用内 TCC 重置使用的 bundle id 改用BUNDLE_ID用法示例(个人构建同时传入相同的 Tauri identifier):
兼容
--config覆盖);Android 的路径与类名;旧版~/.openless/credentials.json迁移路径测试计划
cargo check --locked(src-tauri,未设置上述环境变量)~/Library/Application Support/OpenLess Local)、日志目录(~/Library/Logs/OpenLess Local)、Keychain service、麦克风 / 辅助功能授权均与官方版独立🤖 Generated with Claude Code
https://claude.ai/code/session_01Abbfv5hvANpC7Sku5KEXJ3