From 372ab01d576081acb024961f256b57d997de5c29 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Fri, 22 Mar 2019 20:28:16 -0400 Subject: [PATCH] Pull version features from build script --- scripts/build.sh | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index e377b22..a905118 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,6 +1,6 @@ #!/bin/sh -#./node_modules/.bin/tsc -p tsconfig.json +./node_modules/.bin/tsc -p tsconfig.json #electron-build fails when local modules are in parent directory #copy them into lib directory @@ -8,17 +8,4 @@ cp -r ./lib/* ./app/lib/ cp -r ./lib/* ./cli/lib/ cp ./data/cfg.json ./app/data/ -cp ./data/cfg.json ./cli/data/ - - -#version all sub projects and config files -version=$(jq -r '.version' ./package.json) -echo "VERSION: $version" - -declare -a fileArr=("./data/cfg.json" "./app/package.json" "./cli/package.json") - -for i in "${fileArr[@]}" -do - tmp=$(mktemp) - VERSION="$version" jq '.version = env.VERSION' "$i" > "$tmp" && mv "$tmp" "$i" -done \ No newline at end of file +cp ./data/cfg.json ./cli/data/ \ No newline at end of file