Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #40 from filecoin-project/features/include-filecoi…
Browse files Browse the repository at this point in the history
…n-binaries-12

obtain filecoin proofs bins from cargo install
  • Loading branch information
Sidney Keese committed Aug 23, 2019
2 parents d92eeaf + ae0d9d5 commit 604b487
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/package-release.sh
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -e

if [ -z "$1" ]; then
TAR_FILE=`mktemp`.tar.gz
else
Expand All @@ -9,13 +11,19 @@ fi
TAR_PATH=`mktemp -d`

mkdir -p $TAR_PATH
mkdir -p $TAR_PATH/bin
mkdir -p $TAR_PATH/include
mkdir -p $TAR_PATH/lib/pkgconfig

find . -type f -name sector_builder_ffi.h -exec cp -- "{}" $TAR_PATH/include/ \;
find . -type f -name libsector_builder_ffi.a -exec cp -- "{}" $TAR_PATH/lib/ \;
find . -type f -name sector_builder_ffi.pc -exec cp -- "{}" $TAR_PATH/lib/pkgconfig/ \;

# TODO https://github.com/filecoin-project/rust-fil-sector-builder/issues/39
FP_VERSION=$(cat Cargo.lock | grep 'name = "filecoin-proofs"' -A1 | tail -n1 | cut -d' ' -f3 | tr -d '"')

cargo install --version $FP_VERSION filecoin-proofs --root $TAR_PATH --bin paramfetch

pushd $TAR_PATH

tar -czf $TAR_FILE ./*
Expand Down

0 comments on commit 604b487

Please sign in to comment.