Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump Vib to v0.7.2 #4

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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