platform/desktop-package/scripts/copy-publish-artifacts.sh
2024-08-09 22:05:03 +07:00

18 lines
509 B
Bash
Executable File

#!/bin/bash
SRC_FOLDER=deploy
TARGET_FOLDER=$1
CHANNEL=latest
if [ -d "$TARGET_FOLDER" ]; then rm -Rf $TARGET_FOLDER; fi
mkdir $TARGET_FOLDER
cp $SRC_FOLDER/*.blockmap $TARGET_FOLDER
cp $SRC_FOLDER/*.dmg $TARGET_FOLDER
cp $SRC_FOLDER/*.zip $TARGET_FOLDER
cp $SRC_FOLDER/*.AppImage $TARGET_FOLDER
cp $SRC_FOLDER/*.deb $TARGET_FOLDER
cp $SRC_FOLDER/*.exe $TARGET_FOLDER
cp $SRC_FOLDER/$CHANNEL.yml $TARGET_FOLDER
cp $SRC_FOLDER/$CHANNEL-mac.yml $TARGET_FOLDER
cp $SRC_FOLDER/$CHANNEL-linux.yml $TARGET_FOLDER