Skip to content

Commit

Permalink
Release v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
exAspArk committed Nov 11, 2024
1 parent a27bcd8 commit 2a50894
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### [v0.3.1](https://github.com/BemiHQ/BemiDB/compare/v0.3.0...v0.3.1) - 2024-11-10

- Fix the binary compilation for arm64 MacOS with linked libc++abi

### [v0.3.0](https://github.com/BemiHQ/BemiDB/compare/v0.2.0...v0.3.0) - 2024-11-10

- Fix Postgres `COPY` command if Postgres is running remotely [#8](https://github.com/BemiHQ/BemiDB/pull/8)
Expand Down
17 changes: 13 additions & 4 deletions scripts/build-darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@ cd src
go build -o ../build/bemidb-darwin-arm64

cd ../build
LIBCPP_PATH=$(otool -L ./bemidb-darwin-arm64 | grep -o '/.*/libc++\.1\.0\.dylib')
sudo cp $LIBCPP_PATH ./libc++.1.0.dylib
sudo cp $LIBCPP_PATH /usr/local/lib/libc++.1.0.dylib
install_name_tool -change $LIBCPP_PATH /usr/local/lib/libc++.1.0.dylib ./bemidb-darwin-arm64
LIBCPP_OLD_PATH=$(otool -L ./bemidb-darwin-arm64 | grep -o '/.*/libc++\.1\.0\.dylib')
LIBCPP_NEW_PATH=/usr/local/lib/libc++1.0.dylib
sudo sudo cp $LIBCPP_OLD_PATH $LIBCPP_NEW_PATH

LIBCPPABI_OLD_PATH=$(otool -L ./libc++.1.0.dylib | grep -o '/.*/libc++abi\.1\.dylib')
LIBCPPABI_NEW_PATH=/usr/local/lib/libc++abi.1.dylib
sudo cp $LIBCPPABI_OLD_PATH $LIBCPPABI_NEW_PATH

sudo install_name_tool -change $LIBCPPABI_OLD_PATH $LIBCPPABI_NEW_PATH $LIBCPP_NEW_PATH
sudo install_name_tool -change $LIBCPP_OLD_PATH $LIBCPP_NEW_PATH ./bemidb-darwin-arm64

sudo cp $LIBCPP_NEW_PATH ./libc++.1.0.dylib
sudo cp $LIBCPPABI_NEW_PATH ./libc++abi.1.dylib
otool -L ./bemidb-darwin-arm64
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VERSION="0.3.0"
VERSION="0.3.1"

# Detect OS and architecture
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
Expand Down
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
)

const VERSION = "0.3.0"
const VERSION = "0.3.1"

func main() {
flag.Parse()
Expand Down

0 comments on commit 2a50894

Please sign in to comment.