Skip to content

Commit f089312

Browse files
committed
add arm64 support
1 parent 6224db2 commit f089312

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
All notable changes to this project will be documented in this file.
22

3+
## [v0.1.1] (2023-12-11)
4+
### Feature
5+
* Added ARM64 support.
6+
37
## [v0.1.0] (2023-12-11)
48

59
### Compatibility

init.sh

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,30 @@ clear_cache() {
234234
}
235235

236236
download_trickest_agent() {
237-
echo "Downloading latest Trickest agent..."
238-
agent_url="https://trickest-agent-binary.s3.eu-central-1.amazonaws.com/latest/linux/amd64/twe-agent"
239-
agent_path="${TRICKEST_DATA_DIR}/trickest-agent"
240-
if ! curl -s -o "$agent_path" "$agent_url"; then
237+
case $(uname -s) in
238+
Linux)
239+
echo "Detected Linux OS..."
240+
;;
241+
*)
242+
echo "Unsupported OS. Please contact us at Discord for support: https://trickest.com/community/"
243+
;;
244+
esac
245+
246+
case $(uname -p) in
247+
x86_64)
248+
echo "Downloading latest Trickest agent for x86_64..."
249+
agent_url="https://trickest-agent-binary.s3.eu-central-1.amazonaws.com/latest/linux/amd64/twe-agent"
250+
;;
251+
aarch64)
252+
echo "Downloading latest Trickest agent for aarch64..."
253+
agent_url="https://trickest-agent-binary.s3.eu-central-1.amazonaws.com/latest/linux/arm64/twe-agent"
254+
;;
255+
*)
256+
echo "Unsupported architecture. Please contact us at Discord for support: https://trickest.com/community/"
257+
;;
258+
esac
259+
260+
if ! curl -s -o "$agent_path" "$agent_url"; then
241261
echo "Failed to download Trickest agent."
242262
exit 1
243263
fi

0 commit comments

Comments
 (0)