From a8fdb4472ef1676724e4bfab1b4419f07faae2d9 Mon Sep 17 00:00:00 2001 From: Aleksey Proshutisnkiy Date: Tue, 9 May 2023 15:25:49 +0400 Subject: [PATCH] feat: fix trust-graph package (#98) --- builtin-package/package.sh | 8 ++++---- trust-graph/Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/builtin-package/package.sh b/builtin-package/package.sh index 2acdde4..fdca00e 100755 --- a/builtin-package/package.sh +++ b/builtin-package/package.sh @@ -3,10 +3,10 @@ set -o pipefail -o nounset -o errexit # set current working directory to script directory to run script from everywhere 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 ) @@ -34,8 +34,8 @@ echo "{}" | jq --arg trust_graph_cid "$TRUST_GRAPH_CID" --arg sqlite_cid "$SQLIT ( echo "*** create builtin distribution package ***" - cd $PACKAGE_DIR - (tar cf - * | gzip) > ../trust-graph.tar.gz + cd $PACKAGE_DIR/.. + tar -f trust-graph.tar.gz -zcv ./trust-graph ) echo "*** done ***" diff --git a/trust-graph/Cargo.toml b/trust-graph/Cargo.toml index cfe4f7f..7ae6431 100644 --- a/trust-graph/Cargo.toml +++ b/trust-graph/Cargo.toml @@ -18,5 +18,5 @@ ref-cast = "1.0.2" derivative = "2.1.1" thiserror = "1.0.23" sha2 = "0.10.6" -nonempty = "0.8.1" rand = "0.8.5" +nonempty = "0.8.1"