Skip to content

Commit

Permalink
chore: bump Vib to v0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
matbme authored Jun 26, 2024
1 parent 400a144 commit b818be7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ See [action.yml](action.yml)
```yml
steps:
- uses: actions/checkout@v4
- uses: vanilla-os/[email protected].1
- uses: vanilla-os/[email protected].2
with:
recipe: 'myRecipe.yml'
plugins: org/repo:tag,org/repo:tag
Expand Down
36 changes: 18 additions & 18 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
#!/bin/bash

VIB_VERSION="0.7.1"
VIB_VERSION="0.7.2"
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"
echo "No plugins specified, using static Vib binary"
else
echo "Plugins specified, downloading plugin assets..."

IFS=',' read -ra PLUGIN_LIST <<< "$PLUGINS_ARG"
for PLUGIN in "${PLUGIN_LIST[@]}"; do
REPO=$(echo "$PLUGIN" | awk -F':' '{print $1}')
TAG=$(echo "$PLUGIN" | awk -F':' '{print $2}')
echo "Downloading assets for $REPO..."
ASSETS_URL="https://api.github.com/repos/$REPO/releases/tags/$TAG"
ASSET_URLS=$(curl -s "$ASSETS_URL" | grep -o -E 'https://github.com/[^"]+\.so')

for ASSET_URL in $ASSET_URLS; do
wget -P plugins/ "$ASSET_URL"
done
done
echo "Plugins specified, downloading plugin assets..."

IFS=',' read -ra PLUGIN_LIST <<<"$PLUGINS_ARG"
for PLUGIN in "${PLUGIN_LIST[@]}"; do
REPO=$(echo "$PLUGIN" | awk -F':' '{print $1}')
TAG=$(echo "$PLUGIN" | awk -F':' '{print $2}')

echo "Downloading assets for $REPO..."

ASSETS_URL="https://api.github.com/repos/$REPO/releases/tags/$TAG"
ASSET_URLS=$(curl -s "$ASSETS_URL" | grep -o -E 'https://github.com/[^"]+\.so')

for ASSET_URL in $ASSET_URLS; do
wget -P plugins/ "$ASSET_URL"
done
done
fi

wget "https://github.com/Vanilla-OS/Vib/releases/download/v$VIB_VERSION/vib"
Expand Down

0 comments on commit b818be7

Please sign in to comment.