feat: fix trust-graph package (#98)

This commit is contained in:
Aleksey Proshutisnkiy 2023-05-09 15:25:49 +04:00 committed by GitHub
parent 56d0ea27bd
commit a8fdb4472e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -3,10 +3,10 @@ set -o pipefail -o nounset -o errexit
# set current working directory to script directory to run script from everywhere # set current working directory to script directory to run script from everywhere
cd "$(dirname "$0")" cd "$(dirname "$0")"
PACKAGE_DIR="$(pwd)/../package" PACKAGE_DIR="$(pwd)/../package/trust-graph"
( (
rm -f $PACKAGE_DIR/* rm -rf $PACKAGE_DIR/*
mkdir -p $PACKAGE_DIR mkdir -p $PACKAGE_DIR
) )
@ -34,8 +34,8 @@ echo "{}" | jq --arg trust_graph_cid "$TRUST_GRAPH_CID" --arg sqlite_cid "$SQLIT
( (
echo "*** create builtin distribution package ***" echo "*** create builtin distribution package ***"
cd $PACKAGE_DIR cd $PACKAGE_DIR/..
(tar cf - * | gzip) > ../trust-graph.tar.gz tar -f trust-graph.tar.gz -zcv ./trust-graph
) )
echo "*** done ***" echo "*** done ***"

View File

@ -18,5 +18,5 @@ ref-cast = "1.0.2"
derivative = "2.1.1" derivative = "2.1.1"
thiserror = "1.0.23" thiserror = "1.0.23"
sha2 = "0.10.6" sha2 = "0.10.6"
nonempty = "0.8.1"
rand = "0.8.5" rand = "0.8.5"
nonempty = "0.8.1"