Skip to content

Commit

Permalink
fix: add seperated built-in plugins by default
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
  • Loading branch information
kbdharun committed Jun 18, 2024
1 parent 9e30158 commit 400a144
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/build
/plugins
vib
*.tar.xz
*.1
14 changes: 7 additions & 7 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
VIB_VERSION="0.7.1"
PLUGINS_ARG="${1:-}"

wget "https://github.com/Vanilla-OS/Vib/releases/download/v$VIB_VERSION/plugins.tar.xz"
tar -xf plugins.tar.xz
mv build/plugins plugins

if [ -z "$PLUGINS_ARG" ]; then
echo "No plugins specified, using static Vib binary"
wget "https://github.com/Vanilla-OS/Vib/releases/download/v$VIB_VERSION/vib"
chmod +x vib
else
echo "Plugins specified, downloading plugin assets..."

mkdir plugins

IFS=',' read -ra PLUGIN_LIST <<< "$PLUGINS_ARG"
for PLUGIN in "${PLUGIN_LIST[@]}"; do
REPO=$(echo "$PLUGIN" | awk -F':' '{print $1}')
Expand All @@ -26,7 +26,7 @@ else
wget -P plugins/ "$ASSET_URL"
done
done

wget "https://github.com/Vanilla-OS/Vib/releases/download/v$VIB_VERSION/vib"
chmod +x vib
fi

wget "https://github.com/Vanilla-OS/Vib/releases/download/v$VIB_VERSION/vib"
chmod +x vib

0 comments on commit 400a144

Please sign in to comment.