zed/script
Nathan Sobo f00cb371f4
macOS: Bundle placeholder Document.icns so Finder can display Zed file icons (#44833)
Generated by AI.

`DocumentTypes.plist` declares `CFBundleTypeIconFile` as `Document` for
Zed’s document types, but the macOS bundle did not include
`Contents/Resources/Document.icns`, causing Finder to fall back to
generic icons.

This PR:
- Adds `crates/zed/resources/Document.icns` as a placeholder document
icon (currently derived from the app icon).
- Updates `script/bundle-mac` to copy it into the `.app` at
`Contents/Resources/Document.icns` during bundling.
- Adds `script/verify-macos-document-icon` for one-command validation.

## How to test (CLI)
1. Build a debug bundle:
   - `./script/bundle-mac -d aarch64-apple-darwin`
2. Verify the bundle contains the referenced icon:
- `./script/verify-macos-document-icon
"target/aarch64-apple-darwin/debug/bundle/osx/Zed Dev.app"`

## Optional visual validation in Finder
- Pick a file (e.g. `.rs`), Get Info → Open with: Zed Dev → Change
All...
- Restart Finder: `killall Finder` (or log out/in)

@JosephTLyons — would you mind running the steps above and confirming
Finder shows Zed’s icon for source files after "Change All" + Finder
restart?

@danilo-leal — this PR ships a placeholder `Document.icns`. When the
real document icon is ready, replace
`crates/zed/resources/Document.icns` and the bundling script will
include it automatically.


Closes #44403.

Release Notes:

- TODO

---------

Co-authored-by: Matt Miller <mattrx@gmail.com>
2025-12-17 16:42:31 -06:00
..
danger Remove agent1 code (#40495) 2025-10-17 18:49:11 +02:00
flatpak Add (flatpak) and (snap) suffixes to Zed version in system info (#32903) 2025-06-17 20:39:35 +00:00
lib gpui: Fix typo in publish script (#39836) 2025-10-09 05:11:11 +00:00
licenses Make check-licenses script check that AGPL crates are not included in release binaries (#42571) 2025-11-12 21:58:12 +00:00
terms Fix invalid Unicode in terms & conditions (#42906) 2025-11-19 13:00:35 -05:00
update_top_ranking_issues Fix a search filter in top-ranking issues script (#44468) 2025-12-09 09:44:30 +00:00
analyze_highlights.py Use a proper name for highlights.scm (#43412) 2025-11-24 16:15:38 +00:00
bootstrap collab: Add automatic install of minio deb or rpm to script/bootstrap (#32968) 2025-06-18 19:07:57 +00:00
bootstrap.ps1 windows: Make collab run on Windows (#23117) 2025-01-17 09:39:13 +02:00
build-docker Support More Linux (#18480) 2024-09-30 17:46:21 -04:00
bump-extension-cli Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
bump-gpui-version gpui: Update dependency package names (#40143) 2025-10-14 04:43:28 +00:00
bump-nightly Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
bump-zed-minor-versions Fix markdown list in bump-zed-minor-versions (#38515) 2025-09-19 16:11:19 +00:00
bump-zed-patch-version Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
bundle-freebsd linux: Make desktop file executable (#35597) 2025-08-04 15:35:19 -04:00
bundle-linux Retry sentry uploads (#43267) 2025-11-21 13:29:08 -07:00
bundle-mac macOS: Bundle placeholder Document.icns so Finder can display Zed file icons (#44833) 2025-12-17 16:42:31 -06:00
bundle-windows.ps1 Retry sentry uploads (#43267) 2025-11-21 13:29:08 -07:00
check-keymaps Add CI check that cmd- is not in linux keymaps + check other mods (#32334) 2025-06-08 09:34:07 +00:00
check-licenses Make check-licenses script check that AGPL crates are not included in release binaries (#42571) 2025-11-12 21:58:12 +00:00
check-links ci: Restore lychee link check. Only validate internal links (#32463) 2025-06-10 11:20:07 -04:00
check-todos Add CI check that cmd- is not in linux keymaps + check other mods (#32334) 2025-06-08 09:34:07 +00:00
cherry-pick Fetch (just) enough refs in script/cherry-pick (#41949) 2025-11-04 17:09:43 -07:00
clear-target-dir-if-larger-than Don't try and delete ./target/. (#42680) 2025-11-13 16:39:35 -07:00
clear-target-dir-if-larger-than.ps1 windows: Publish nightly (#24800) 2025-07-09 08:57:03 +08:00
clippy Run additional checks from script/clippy if local (#29768) 2025-05-02 01:26:12 +00:00
clippy.ps1 Windows tests on self-hosted runners (#29764) 2025-06-16 17:29:36 -04:00
collab-flamegraph Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
crate-dep-graph Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
create-draft-release Avoid re-creating releases when re-running workflows (#42573) 2025-11-12 21:50:15 -07:00
debug-cli cli: Allow opening non-existent paths (#43250) 2025-11-24 11:30:19 +02:00
deploy-collab Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
determine-release-channel Fix bad quote in script/determine-release-channel (#20613) 2024-11-13 12:41:50 -05:00
determine-release-channel.ps1 windows: Publish nightly (#24800) 2025-07-09 08:57:03 +08:00
digital-ocean-db.sh Add a script to connect to the database. (#32023) 2025-06-04 09:23:23 -06:00
download-wasi-sdk Try to download wasi-sdk ahead of time (#42377) 2025-11-10 19:50:43 +00:00
draft-release-notes Fix generate release notes script on first stable (#42061) 2025-11-05 23:25:30 -07:00
drop-test-dbs Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
exit-ci-if-dev-drive-is-full.ps1 windows: Fix tests on Windows (#22616) 2025-02-05 14:30:09 +00:00
freebsd Add initial FreeBSD script & installation doc (#30981) 2025-06-06 23:14:25 +00:00
generate-licenses Pin cargo-about to 0.8.2 (#44012) 2025-12-02 17:54:08 +00:00
generate-licenses-csv Pin cargo-about to 0.8.2 (#44012) 2025-12-02 17:54:08 +00:00
generate-licenses.ps1 Pin cargo-about to 0.8.2 (#44012) 2025-12-02 17:54:08 +00:00
generate-terms-rtf Fix invalid Unicode in terms & conditions (#42906) 2025-11-19 13:00:35 -05:00
get-crate-version Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
get-crate-version.ps1 windows: Publish nightly (#24800) 2025-07-09 08:57:03 +08:00
get-pull-requests-since Add a get-release-notes-since script (#18445) 2024-09-27 10:59:19 -04:00
get-release-notes-since Add a get-release-notes-since script (#18445) 2024-09-27 10:59:19 -04:00
get-released-version Use cloud.zed.dev for install.sh (#42399) 2025-11-10 23:55:19 +00:00
github-clean-issue-types.py Add a one-off cleanup script for GH issue types (#42515) 2025-11-12 11:40:31 +01:00
github-label-issues-to-triage.py Add a script to label untriaged GH issues (#43711) 2025-11-28 10:24:59 +01:00
github-pr-status A script to help with PR naggery (#32025) 2025-06-04 09:23:14 -06:00
histogram
import-themes Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
install-cmake Improve install-cmake script (#20836) 2024-11-18 16:39:57 -05:00
install-linux Fix install linux (#43205) 2025-11-21 09:12:19 -07:00
install-mold Don't upload symbols to DO anymore (#41317) 2025-10-27 15:22:53 -06:00
install-rustup.ps1 Windows tests on self-hosted runners (#29764) 2025-06-16 17:29:36 -04:00
install-wild Fix wild install script (#42747) 2025-11-15 15:15:37 +01:00
install.sh Use cloud.zed.dev for install.sh (#42399) 2025-11-10 23:55:19 +00:00
kube-shell Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
language-extension-version proto: Bump to v0.2.3 (#43791) 2025-11-29 13:59:18 +00:00
linux Show config messages from install-wild, install-mold (#38979) 2025-09-26 16:47:38 +00:00
metal-debug Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
mitm-proxy.sh Improve script/mitm-proxy.sh to support podman (#25834) 2025-02-28 22:37:03 +00:00
new-crate Remove workspace-hack (#40216) 2025-10-17 18:58:14 +00:00
prettier Improve autofix (#44930) 2025-12-15 22:19:18 -07:00
prompts Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
randomized-test-ci
randomized-test-minimize
remote-server Add remote server cross compilation (#19136) 2024-10-12 23:23:56 -07:00
reset_db Fix reset_db script (#29067) 2025-04-18 19:28:14 +00:00
run-local-minio collab: Add automatic install of minio deb or rpm to script/bootstrap (#32968) 2025-06-18 19:07:57 +00:00
run-unit-evals Fetch the unit eval commit before checking it out (#42636) 2025-11-13 15:21:53 +00:00
seed-db Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
setup-dev-driver.ps1 windows: Use dev drive instead of ReFS (#25858) 2025-03-01 22:43:10 +08:00
shellcheck-scripts ci: Add shellcheck for scripts (#20631) 2024-11-18 16:41:22 -05:00
snap-build Add scripts and configuration for building snap package (#25064) 2025-02-19 10:28:23 -07:00
snap-try Add scripts and configuration for building snap package (#25064) 2025-02-19 10:28:23 -07:00
squawk ACP debug tools pane (#36768) 2025-08-22 19:32:49 +00:00
storybook Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
trigger-release Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
uninstall.sh Add an uninstall script (#21213) 2024-11-28 10:31:12 +02:00
update-json-schemas Bump JSON schemas: package.json, tsconfig.json (#20910) 2024-11-20 13:35:00 -05:00
upload-extension-cli
upload-nightly script: Fix upload-nightly versioning (#43933) 2025-12-01 22:38:58 +01:00
upload-nightly.ps1 script: Fix upload-nightly versioning (#43933) 2025-12-01 22:38:58 +01:00
verify-macos-document-icon macOS: Bundle placeholder Document.icns so Finder can display Zed file icons (#44833) 2025-12-17 16:42:31 -06:00
what-is-deployed Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
zed-local Fix script/zed-local on Windows (#38832) 2025-09-25 09:03:27 -04:00