1
0
mirror of https://github.com/playit-cloud/playit-agent.git synced 2025-02-24 04:45:14 +00:00
playit-agent/mac-deploy.sh
2022-05-22 15:35:39 -07:00

13 lines
549 B
Bash

# SHOULD BE RUN ON M1 MAC
DEPLOY_TARGET=$1
FOLDER=$(dirname "$0")
REMOTE_PATH=/var/www/playit/downloads
VERSION="$(toml get "${FOLDER}/packages/agent/Cargo.toml" package.version | sed "s/\"//g")"
bash ${FOLDER}/build-scripts/macos-app.sh
scp ${FOLDER}/build-scripts/out/playit.dmg ${DEPLOY_TARGET}:${REMOTE_PATH}/playit-${VERSION}.dmg
scp ${FOLDER}/target/release/agent ${DEPLOY_TARGET}:${REMOTE_PATH}/playit-${VERSION}-apple-m1
scp ${FOLDER}/target/x86_64-apple-darwin/release/agent ${DEPLOY_TARGET}:${REMOTE_PATH}/playit-${VERSION}-apple-intel