first pass of merging in warp (doesn't build)
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
set -e
|
||||
|
||||
. "$PWD/script/warp_sudo"
|
||||
|
||||
# Define some control sequences for text formatting.
|
||||
red="\033[0;31m"
|
||||
reset="\033[0m"
|
||||
@@ -33,8 +35,16 @@ if [[ "$(source /etc/os-release; echo $ID $ID_LIKE)" = *"debian"* ]]; then
|
||||
brotli
|
||||
# Needed for voice input
|
||||
libasound2-dev
|
||||
# Needed by bindgen (used by minimp4-sys, pulled in by warpui_core's
|
||||
# integration_tests feature) — pulls in libclang-common-*-dev which
|
||||
# provides clang's resource-dir builtin headers.
|
||||
libclang-dev
|
||||
# Required by script/presubmit's clang-format check on C/C++/Obj-C sources.
|
||||
clang-format
|
||||
# Required to build statically-linked binaries for Linux.
|
||||
musl-tools
|
||||
)
|
||||
sudo apt-get install -y "${PACKAGES[@]}"
|
||||
warp_sudo apt-get install -y "${PACKAGES[@]}"
|
||||
|
||||
# Install a modern version of protoc. The apt 'protobuf-compiler' package on
|
||||
# Ubuntu 20.04 ships protoc 3.6.1, which is too old for proto3 'optional'
|
||||
@@ -47,7 +57,7 @@ if [[ "$(source /etc/os-release; echo $ID $ID_LIKE)" = *"debian"* ]]; then
|
||||
esac
|
||||
curl -fsSL -o /tmp/protoc.zip \
|
||||
"https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/${PROTOC_ZIP}"
|
||||
sudo unzip -o /tmp/protoc.zip -d /usr/local bin/protoc 'include/*'
|
||||
warp_sudo unzip -o /tmp/protoc.zip -d /usr/local bin/protoc 'include/*'
|
||||
rm /tmp/protoc.zip
|
||||
else
|
||||
echo -e "⚠️ ${red}Unknown Linux distribution; necessary build dependencies may not be installed!${reset}"
|
||||
|
||||
Reference in New Issue
Block a user