File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change 1010 tag=" latest"
1111fi
1212
13- target=" linux-amd64"
13+ # Get target from environment
14+ if [ " $OS " = " Windows_NT" ]; then
15+ target=" windows-x86_64"
16+ else
17+ case $( uname -sm) in
18+ " Darwin x86_64" ) target=" darwin-x86_64" ;;
19+ " Darwin arm64" ) target=" darwin-aarch64" ;;
20+ " Linux arm64" |" Linux aarch64" ) target=" linux-aarch64" ;;
21+ " Linux x86_64" ) target=" linux-x86_64" ;;
22+ * ) target=" linux-x86_64" ;;
23+ esac
24+ fi
1425
15- release_url=" https://vorc.s3.us-east-2.amazonaws.com/n0des-${target} -${tag} "
26+ # Skip unsupported targets
27+ case " $target " in
28+ " darin-x68_64" |" linux-aarch64" |" windows-x86_64" )
29+ echo " Platform $target is not yet supported. Please open an issue if you need support for this platform."
30+ exit 1
31+ ;;
32+ esac
1633
34+ release_url=" https://vorc.s3.us-east-2.amazonaws.com/n0des-${target} -${tag} "
1735
1836echo " Downloading n0des for $target with tag $tag to ./n0des"
19- curl " $release_url " -o ./n0des
37+ curl " $release_url " -f -o ./n0des
38+ chmod a+x ./n0des
You can’t perform that action at this time.
0 commit comments