You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fluidb/build-release-mac.sh

20 lines
558 B
Bash

2 years ago
#!/usr/bin/env bash
set -e
VERSION=$(cat ./Cargo.toml | grep -E "^version" | grep -Eo '[0-9.]+')
2 years ago
ARCH=$(uname -m)
2 years ago
rm -fr release
mkdir release
cargo build --release
cargo build --release --manifest-path=cozo-lib-c/Cargo.toml
2 years ago
cp target/release/cozoserver release/cozoserver-${VERSION}-mac-${ARCH}
cp target/release/libcozo_c.a release/libcozo_c-${VERSION}-mac-${ARCH}.a
cp target/release/libcozo_c.dylib release/libcozo_c-${VERSION}-mac-${ARCH}.dylib
2 years ago
strip release/cozoserver-${VERSION}-mac-${ARCH}
gzip release/*
cp cozo-lib-c/cozo_c.h release/cozo_c.h