diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml index 99506db976..447e928866 100644 --- a/.github/workflows/release_nightly.yml +++ b/.github/workflows/release_nightly.yml @@ -92,7 +92,7 @@ jobs: run: script/generate-licenses - name: Create app bundle - run: script/bundle + run: script/bundle -2 - name: Upload Zed Nightly run: script/upload-nightly diff --git a/crates/zed/contents/nightly/embedded.provisionprofile b/crates/zed/contents/nightly/embedded.provisionprofile new file mode 100644 index 0000000000..8979e1fb9f Binary files /dev/null and b/crates/zed/contents/nightly/embedded.provisionprofile differ diff --git a/crates/zed2/Cargo.toml b/crates/zed2/Cargo.toml index ec665e5f42..edc1123698 100644 --- a/crates/zed2/Cargo.toml +++ b/crates/zed2/Cargo.toml @@ -167,13 +167,12 @@ osx_info_plist_exts = ["resources/info/*"] osx_url_schemes = ["zed-dev"] [package.metadata.bundle-nightly] -# TODO kb different icon? icon = ["resources/app-icon-preview@2x.png", "resources/app-icon-preview.png"] -identifier = "dev.zed.Zed-Nightly" +identifier = "dev.zed.Zed-Dev" name = "Zed Nightly" osx_minimum_system_version = "10.15.7" osx_info_plist_exts = ["resources/info/*"] -osx_url_schemes = ["zed-nightly"] +osx_url_schemes = ["zed-dev"] [package.metadata.bundle-preview] icon = ["resources/app-icon-preview@2x.png", "resources/app-icon-preview.png"] diff --git a/crates/zed2/contents/nightly/embedded.provisionprofile b/crates/zed2/contents/nightly/embedded.provisionprofile new file mode 100644 index 0000000000..8979e1fb9f Binary files /dev/null and b/crates/zed2/contents/nightly/embedded.provisionprofile differ diff --git a/script/bundle b/script/bundle index 8c0b3fef87..3a82d25299 100755 --- a/script/bundle +++ b/script/bundle @@ -9,6 +9,7 @@ local_arch=false local_only=false overwrite_local_app=false bundle_name="" +zed_crate="zed" # This must match the team in the provsiioning profile. APPLE_NOTORIZATION_TEAM="MQ55VZLNZQ" @@ -25,13 +26,11 @@ Options: -o Open the resulting DMG or the app itself in local mode. -f Overwrite the local app bundle if it exists. -h Display this help and exit. + -2 Build zed 2 instead of zed 1. " } -# If -o option is specified, the folder of the resulting dmg will be opened in finder -# If -d is specified, Zed will be compiled in debug mode and the application's path printed -# If -od or -do is specified Zed will be bundled in debug and the application will be run. -while getopts 'dlfoh' flag +while getopts 'dlfoh2' flag do case "${flag}" in o) open_result=true;; @@ -51,6 +50,7 @@ do target_dir="debug" ;; f) overwrite_local_app=true;; + 2) zed_crate="zed2";; h) help_info exit 0 @@ -83,16 +83,19 @@ local_target_triple=${host_line#*: } if [ "$local_arch" = true ]; then echo "Building for local target only." - cargo build ${build_flag} --package zed + cargo build ${build_flag} --package ${zed_crate} cargo build ${build_flag} --package cli else echo "Compiling zed binaries" - cargo build ${build_flag} --package zed --package cli --target aarch64-apple-darwin --target x86_64-apple-darwin + cargo build ${build_flag} --package ${zed_crate} --package cli --target aarch64-apple-darwin --target x86_64-apple-darwin fi echo "Creating application bundle" pushd crates/zed channel=$( "${app_path}/Contents/Resources/zed.entitlements" + cat crates/${zed_crate}/resources/zed.entitlements | sed '/com.apple.developer.associated-domains/,+1d' > "${app_path}/Contents/Resources/zed.entitlements" codesign --force --deep --entitlements "${app_path}/Contents/Resources/zed.entitlements" --sign ${MACOS_SIGNING_KEY:- -} "${app_path}" -v fi