Skip to content

Commit 9e05917

Browse files
bushidocodesOthers
authored andcommitted
chore: add Debian build script
1 parent 568edfd commit 9e05917

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

install_deb.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
# Installs dependencies, builds Silverfish, and places it into your path
3+
# Be sure to validate the Rust and LLVM install scripts we invoke below!
4+
sudo apt install build-essential --yes
5+
curl https://sh.rustup.rs -sSf | sh
6+
source $HOME/.cargo/env
7+
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
8+
LLVM_VERSION=9
9+
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-$LLVM_VERSION 100
10+
sudo update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-$LLVM_VERSION 100
11+
sudo apt install libc++-dev libc++abi-dev --yes
12+
git clone https://github.com/gwsystems/silverfish.git
13+
cd silverfish
14+
cargo build --release
15+
mkdir -p $HOME/bin
16+
cp -t $HOME/bin target/release/silverfish
17+
source $HOME/bin

0 commit comments

Comments
 (0)