Skip to content

Commit

Permalink
Set environment variables in build.sh #18
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed Nov 3, 2024
1 parent eac0a64 commit 37596f2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

set -e

ARCH=$(uname -m)
if [ ARCH == 'aarch64' ]; then
GOARCH="arm64"
else
GOARCH="amd64"
fi

base_name=GoReSym-3.0.1

cd lib-src/
Expand All @@ -16,7 +23,7 @@ cd $base_name/


echo Build GoReSym
go build && mv GoReSym GoReSym_lin
GOOS=linux go build && mv GoReSym GoReSym_lin
strip GoReSym_lin
cp GoReSym_lin ../../src/go_inspector/bin/
cd ..
Expand Down

0 comments on commit 37596f2

Please sign in to comment.