mirror of
https://github.com/playit-cloud/playit-agent.git
synced 2026-07-02 09:12:29 +00:00
17 lines
791 B
Bash
17 lines
791 B
Bash
# SHOULD BE RUN ON x86-64 linux machine
|
|
|
|
FOLDER=$(dirname "$0")
|
|
VERSION="$(toml get "${FOLDER}/packages/agent_cli/Cargo.toml" package.version | sed "s/\"//g")"
|
|
|
|
# build
|
|
bash ${FOLDER}/build-scripts/ubuntu-deb.sh
|
|
cross build --release --target x86_64-pc-windows-gnu --bin=playit-cli
|
|
cross build --target x86_64-unknown-linux-gnu --release --bin=playit-cli
|
|
|
|
rm -f build-deploy/*
|
|
|
|
cp ${FOLDER}/target/aarch64-unknown-linux-gnu/release/playit-cli build-deploy/playit-${VERSION}-aarch64
|
|
cp ${FOLDER}/target/armv7-unknown-linux-gnueabihf/release/playit-cli build-deploy/playit-${VERSION}-arm7
|
|
cp ${FOLDER}/target/x86_64-unknown-linux-gnu/release/playit-cli build-deploy/playit-${VERSION}
|
|
cp ${FOLDER}/target/x86_64-pc-windows-gnu/release/playit-cli.exe build-deploy/playit-${VERSION}-unsigned.exe
|