fix release

This commit is contained in:
hardy 2023-06-09 21:37:56 +08:00
parent 065ae07437
commit 796b78abec
No known key found for this signature in database
GPG Key ID: D1ED7F7A9ED520C3
1 changed files with 4 additions and 4 deletions

View File

@ -2,17 +2,17 @@
#init #init
PNAME=console PNAME=console
STABLE=/infini/Sync/Release/$PNAME/stable DEST=/infini/Sync/Release/$PNAME/stable
if [[ $VERSION =~ NIGHTLY ]]; then if [[ $VERSION =~ NIGHTLY ]]; then
exit 1 DEST=/infini/Sync/Release/$PNAME/snapshot
fi fi
for t in 386 amd64 arm64 armv5 armv6 armv7 loong64 mips mips64 mips64le mipsle riscv64 ; do 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 cp -rf ${WORKSPACE}/$PNAME-$VERSION-$BUILD_NUMBER-linux-$t.tar.gz $DEST
done done
for t in mac-amd64 mac-arm64 windows-amd64 windows-386 ; do for t in mac-amd64 mac-arm64 windows-amd64 windows-386 ; do
cp -rf ${WORKSPACE}/$PNAME-$VERSION-$BUILD_NUMBER-$t.zip $STABLE cp -rf ${WORKSPACE}/$PNAME-$VERSION-$BUILD_NUMBER-$t.zip $DEST
done done