Add script/bundle, which creates a macOS app bundle

This commit is contained in:
Nathan Sobo 2021-04-28 15:02:02 -06:00
parent 3d739b6621
commit 898271edfb
5 changed files with 805 additions and 57 deletions

841
Cargo.lock generated

File diff suppressed because it is too large Load diff

14
script/bundle Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
set -e
pushd zed
cargo bundle --release
popd
while getopts o flag
do
case "${flag}" in
o) open target/release/bundle/osx;;
esac
done

View file

@ -1,5 +1,6 @@
[package]
authors = ["Nathan Sobo <nathansobo@gmail.com>"]
description = "The fast, collaborative code editor."
edition = "2018"
name = "zed"
version = "0.1.0"
@ -38,7 +39,13 @@ smallvec = "1.6.1"
smol = "1.2.5"
[dev-dependencies]
cargo-bundle = "0.5.0"
env_logger = "0.8"
serde_json = {version = "1.0.64", features = ["preserve_order"]}
tempdir = "0.3.7"
unindent = "0.1.7"
[package.metadata.bundle]
icon = ["app-icon@2x.png", "app-icon.png"]
identifier = "dev.zed.Zed"
name = "Zed"

BIN
zed/app-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

BIN
zed/app-icon@2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 KiB