From 40960281bf0fd340328db81b6434de80fb421642 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Mon, 11 Nov 2019 13:16:53 -0600 Subject: [PATCH] Install before dist --- create_dist.cmd | 2 ++ create_dist.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/create_dist.cmd b/create_dist.cmd index 3743bd9..ba1ec57 100644 --- a/create_dist.cmd +++ b/create_dist.cmd @@ -26,6 +26,8 @@ pushd "%ROOT%" ) set OUT_FILE=repertory-ui_%APP_VER%_win.exe + call npm install + call npm run dist && ( pushd dist (certutil -hashfile "%OUT_FILE%" SHA256 | %SED_BIN% -e "1d" -e "$d" -e "s/\ //g") > "%OUT_FILE%.sha256" || (call :ERROR "Create sha-256 failed") diff --git a/create_dist.sh b/create_dist.sh index 79cbc41..aa98e53 100755 --- a/create_dist.sh +++ b/create_dist.sh @@ -38,6 +38,8 @@ upload_to_bitbucket() { chmod +x "bin/${JQ_EXEC}" || exit_script "chmod +x ${JQ_EXEC} failed" +npm install + if npm run dist; then cd dist ${SHA256_EXEC} ${OUT_FILE} > ${OUT_FILE}.sha256 || exit_script "Create sha256 failed"