mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-02 21:40:41 +01:00
zed: Declare developer tools app category on macOS (#65130)
## Summary Zed doesn't declare an app category on macOS, so the system treats it as uncategorised. It shows up under _Other_ in three places: the Apps view in Spotlight, Screen Time, and Finder when Applications is grouped by _Application Category_. Of the third-party apps on my Mac, it's the only one without a category. This sets `category = "Developer Tool"` in each of the four `package.metadata.bundle-*` sections of `crates/zed/Cargo.toml`. It's cargo-bundle's own setting for this: the bundler turns it into `LSApplicationCategoryType` with `public.app-category.developer-tools`, Apple's value for developer tools. ## Testing This only adds bundle metadata. cargo-bundle writes `LSApplicationCategoryType` from `category` when it generates the Info.plist (see `osx_bundle.rs` in zed-industries/cargo-bundle), and `Developer Tool` maps to `public.app-category.developer-tools` in its `category.rs`. I haven't run a full bundle build. ## Self-review - [x] I've reviewed my diff for quality, security, reliability, and performance. - [ ] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). (N/A) - [ ] Tests cover the new or changed behavior. (N/A) Release Notes: - Zed now declares itself a developer tool on macOS, so Finder groups it with other developer tools.
This commit is contained in:
@@ -282,6 +282,7 @@ repl = { workspace = true, features = ["test-support"] }
|
||||
icon = ["resources/app-icon-dev@2x.png", "resources/app-icon-dev.png"]
|
||||
identifier = "dev.zed.Zed-Dev"
|
||||
name = "Zed Dev"
|
||||
category = "Developer Tool"
|
||||
osx_minimum_system_version = "10.15.7"
|
||||
osx_info_plist_exts = ["resources/info/*"]
|
||||
osx_url_schemes = ["zed"]
|
||||
@@ -290,6 +291,7 @@ osx_url_schemes = ["zed"]
|
||||
icon = ["resources/app-icon-nightly@2x.png", "resources/app-icon-nightly.png"]
|
||||
identifier = "dev.zed.Zed-Nightly"
|
||||
name = "Zed Nightly"
|
||||
category = "Developer Tool"
|
||||
osx_minimum_system_version = "10.15.7"
|
||||
osx_info_plist_exts = ["resources/info/*"]
|
||||
osx_url_schemes = ["zed"]
|
||||
@@ -298,6 +300,7 @@ osx_url_schemes = ["zed"]
|
||||
icon = ["resources/app-icon-preview@2x.png", "resources/app-icon-preview.png"]
|
||||
identifier = "dev.zed.Zed-Preview"
|
||||
name = "Zed Preview"
|
||||
category = "Developer Tool"
|
||||
osx_minimum_system_version = "10.15.7"
|
||||
osx_info_plist_exts = ["resources/info/*"]
|
||||
osx_url_schemes = ["zed"]
|
||||
@@ -306,6 +309,7 @@ osx_url_schemes = ["zed"]
|
||||
icon = ["resources/app-icon@2x.png", "resources/app-icon.png"]
|
||||
identifier = "dev.zed.Zed"
|
||||
name = "Zed"
|
||||
category = "Developer Tool"
|
||||
osx_minimum_system_version = "10.15.7"
|
||||
osx_info_plist_exts = ["resources/info/*"]
|
||||
osx_url_schemes = ["zed"]
|
||||
|
||||
Reference in New Issue
Block a user