Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scripts/linux_executable_from_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SCRIPT_DIR=$(dirname "$0")
PROJECT_ROOT=$(realpath "$SCRIPT_DIR/..")
HARMONY_DIR="$PROJECT_ROOT"
DOCKER_IMAGE="harmony-one" # Name of the Docker image
OUTPUT_DIR="$HARMONY_DIR/bin/linux_static_bin" # Folder for generated binaries
OUTPUT_DIR="$HARMONY_DIR/bin/linux_amd64_static" # Folder for generated binaries

echo "=== Paths ==="
echo "SCRIPT_DIR: $SCRIPT_DIR"
Expand Down Expand Up @@ -54,7 +54,9 @@ docker exec "$CONTAINER_ID" bash -c "
cd harmony/bin && rm -rf * # Clear previous binaries
cd ..
git config --global --add safe.directory /root/go/src/github.com/harmony-one/harmony
make linux_static
# Ignore a host-copied vendor/ tree (often stale or root-owned) and resolve modules instead.
rm -rf vendor
GOFLAGS='-mod=mod' make linux_static
"

# Copy built binaries back to host machine
Expand Down