bump to v0.3.6
This commit is contained in:
1 parent
d7250f5635
commit
b454e6f6ee
11 files changed
+27
-24
No files matched your search
+17
-14
@@ -2,9 +2,9 @@
|
||||
set -e
|
||||
|
||||
# Builds the standalone headless creators, joiners and vk-bot for every supported
|
||||
# Linux CPU architecture and packages each architecture into one zip under
|
||||
# prebuilts. Binaries inside a zip keep their plain names, so a user unzips and
|
||||
# runs ./headless-vk-creator directly.
|
||||
# OS and CPU architecture and packages each target into one zip under prebuilts.
|
||||
# Binaries inside a zip keep their plain names, so a user unzips and runs
|
||||
# ./headless-vk-creator directly.
|
||||
|
||||
ROOT="$(cd "$(dirname "$0")" && pwd)"
|
||||
HEADLESS="$ROOT/headless"
|
||||
@@ -22,20 +22,21 @@ wbstream-joiner:headless-wbstream-joiner \
|
||||
dion-joiner:headless-dion-joiner \
|
||||
vk-bot:headless-vk-bot"
|
||||
|
||||
build_arch() {
|
||||
arch_label="$1"
|
||||
goarch="$2"
|
||||
stage="$PREBUILTS/stage-linux-$arch_label"
|
||||
zip_path="$PREBUILTS/whitelist-bypass-cli-linux-$arch_label.zip"
|
||||
build_target() {
|
||||
goos="$1"
|
||||
arch_label="$2"
|
||||
goarch="$3"
|
||||
stage="$PREBUILTS/stage-$goos-$arch_label"
|
||||
zip_path="$PREBUILTS/whitelist-bypass-cli-$goos-$arch_label.zip"
|
||||
rm -rf "$stage" "$zip_path"
|
||||
mkdir -p "$stage"
|
||||
|
||||
echo "=== linux/$goarch $arch_label ==="
|
||||
echo "=== $goos/$goarch $arch_label ==="
|
||||
for entry in $COMPONENTS; do
|
||||
dir=${entry%%:*}
|
||||
bin=${entry##*:}
|
||||
echo " $bin"
|
||||
GOOS=linux GOARCH="$goarch" go -C "$HEADLESS/$dir" build -trimpath -ldflags="-s -w" -o "$stage/$bin" .
|
||||
GOOS="$goos" GOARCH="$goarch" go -C "$HEADLESS/$dir" build -trimpath -ldflags="-s -w" -o "$stage/$bin" .
|
||||
done
|
||||
|
||||
( cd "$stage" && zip -q -j "$zip_path" ./* )
|
||||
@@ -43,10 +44,12 @@ build_arch() {
|
||||
echo " -> $(basename "$zip_path")"
|
||||
}
|
||||
|
||||
build_arch x64 amd64
|
||||
build_arch ia32 386
|
||||
build_arch arm64 arm64
|
||||
build_target linux x64 amd64
|
||||
build_target linux ia32 386
|
||||
build_target linux arm64 arm64
|
||||
build_target freebsd x64 amd64
|
||||
build_target freebsd arm64 arm64
|
||||
|
||||
echo ""
|
||||
echo "=== Done ==="
|
||||
ls -lh "$PREBUILTS"/whitelist-bypass-cli-linux-*.zip
|
||||
ls -lh "$PREBUILTS"/whitelist-bypass-cli-*.zip
|
||||
Reference in new issue
Block a user