for release

This commit is contained in:
hardy 2023-06-09 19:44:55 +08:00
parent 4d721067f4
commit 4da11c47e9
No known key found for this signature in database
GPG Key ID: D1ED7F7A9ED520C3
1 changed files with 18 additions and 0 deletions

18
release.sh Normal file
View File

@ -0,0 +1,18 @@
#!/bin/bash
#init
PNAME=console
STABLE=/infini/Sync/Release/$PNAME/stable
if [[ $VERSION =~ NIGHTLY ]]; then
exit 1
fi
for t in 386 amd64 arm64 armv5 armv6 armv7 loong64 mips mips64 mips64le mipsle riscv64 ; do
cp -rf ${WORKSPACE}/$PNAME-$VERSION-$BUILD_NUMBER-linux-$t.tar.gz $STABLE
done
for t in mac-amd64 mac-arm64 windows-amd64 windows-386 ; do
cp -rf ${WORKSPACE}/$PNAME-$VERSION-$BUILD_NUMBER-$t.zip $STABLE
done