diff --git a/wire-build.sh b/wire-build.sh index a07d5aa..639f540 100755 --- a/wire-build.sh +++ b/wire-build.sh @@ -42,10 +42,10 @@ check_sudo(){ fi } apt_install(){ - local PACKAGES='git make nodejs npm' + local PACKAGES="git make nodejs npm" printf "${LCYAN}Fetching dependencies${NC}\n\n" - ${SUPER_USER_CMD} "apt install ${PACKAGES}" + ${SUPER_USER_CMD} apt install ${PACKAGES} } dnf_install(){ @@ -99,10 +99,10 @@ build_deb(){ npm install npm update - npm install grunt - ${SUPER_USER_CMD} grunt 'clean:linux' 'update-keys' 'release-prod' 'bundle' - ${SUPER_USER_CMD} grunt --arch=${ARCH} --target=${TARGET} 'electronbuilder:linux_other' - ${SUPER_USER_CMD} mv -v ${PACKAGE_DEFAULT_DIR}/*.${TARGET} ${BIN_DIR} + sudo npm install -g grunt + sudo grunt 'clean:linux' 'update-keys' 'release-prod' 'bundle' + sudo grunt --arch=${ARCH} --target=${TARGET} 'electronbuilder:linux_other' + sudo mv -v ${PACKAGE_DEFAULT_DIR}/*.${TARGET} ${BIN_DIR} } build_rpm(){ @@ -137,7 +137,7 @@ main(){ all | -a) check_deps && git_pull && build_rpm && build_deb ;; - deb | -d) check_deps && git_pull && build_deb + deb | -d) git_pull && build_deb ;; rpm | -r) check_deps && git_pull && build_rpm