Install before dist

This commit is contained in:
2019-11-11 13:16:53 -06:00
parent c33f142f27
commit 40960281bf
2 changed files with 4 additions and 0 deletions

View File

@@ -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")

View File

@@ -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"