-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-all.sh
More file actions
33 lines (26 loc) · 798 Bytes
/
build-all.sh
File metadata and controls
33 lines (26 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
set -euo pipefail
VERSION="${1:-1.0.0}"
PLUGINS=("echo" "weather" "githooks")
PLATFORMS=("windows/amd64" "linux/amd64" "linux/arm64" "darwin/amd64" "darwin/arm64")
echo "Building all plugins for all platforms (v$VERSION)"
echo ""
for plugin in "${PLUGINS[@]}"; do
echo "=== Building $plugin ==="
cd "plugins/$plugin"
for platform in "${PLATFORMS[@]}"; do
OS="${platform%/*}"
ARCH="${platform#*/}"
echo " - $OS/$ARCH"
VERSION=$VERSION GOOS=$OS GOARCH=$ARCH bash build.sh
done
cd ../..
echo ""
done
echo "✅ All builds complete!"
echo ""
echo "Next steps:"
echo "1. Create GitHub release: gh release create v$VERSION"
echo "2. Upload all ZIP files from plugins/*/dist/"
echo "3. Update registry.json with checksums"
echo "4. Push changes"