linux cli (#11585)
- [x] Build out cli on linux - [x] Add support for --dev-server-token sent by the CLI - [x] Package cli into the .tar.gz - [x] Link the cli to ~/.local/bin in install.sh Release Notes: - linux: Add cli support for managing zed
This commit is contained in:
parent
0c2d71f1ac
commit
4f9ba28a25
20 changed files with 605 additions and 432 deletions
|
@ -38,11 +38,12 @@ host_line=$(echo "$version_info" | grep host)
|
|||
target_triple=${host_line#*: }
|
||||
|
||||
# Build binary in release mode
|
||||
cargo build --release --target "${target_triple}" --package zed
|
||||
cargo build --release --target "${target_triple}" --package zed --package cli
|
||||
|
||||
# Strip the binary of all debug symbols
|
||||
# Later, we probably want to do something like this: https://github.com/GabrielMajeri/separate-symbols
|
||||
strip "target/${target_triple}/release/Zed"
|
||||
strip "target/${target_triple}/release/cli"
|
||||
|
||||
suffix=""
|
||||
if [ "$channel" != "stable" ]; then
|
||||
|
@ -57,6 +58,7 @@ zed_dir="${temp_dir}/zed$suffix.app"
|
|||
# Binary
|
||||
mkdir -p "${zed_dir}/bin"
|
||||
cp "target/${target_triple}/release/Zed" "${zed_dir}/bin/zed"
|
||||
cp "target/${target_triple}/release/cli" "${zed_dir}/bin/cli"
|
||||
|
||||
# Icons
|
||||
mkdir -p "${zed_dir}/share/icons/hicolor/512x512/apps"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue