Skip to content

Commit 826c04b

Browse files
authored
Merge pull request #27 from junhsonjb/jjb-linux-install-script
add install script
2 parents 94c2c28 + 43c8856 commit 826c04b

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/target
2-
/distribution
2+
/distribution/*
3+
!/distribution/install.sh

distribution/install.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
set -e
3+
4+
VERSION="v0.1.0"
5+
BINARY_NAME="ds"
6+
TARBALL_NAME="ds-x86_64-unknown-linux-gnu.tar.gz"
7+
GITHUB_URL="https://github.com/junhsonjb/dotsec/releases/download/$VERSION/$TARBALL_NAME"
8+
9+
curl -sSL "$GITHUB_URL" -o "$TARBALL_NAME"
10+
11+
tar -xzf "$TARBALL_NAME"
12+
13+
sudo mv "$BINARY_NAME" /usr/local/bin
14+
sudo chmod +x /usr/local/bin/"$BINARY_NAME"
15+
16+
echo "🏁 dotsec installed to /usr/local/bin/ds"
17+
ds --version || echo "⛔️ something went wrong with running dotsec (binary: 'ds')"
18+
19+
rm "$TARBALL_NAME"

0 commit comments

Comments
 (0)