From a78f1cc3d5082874561b151f4c1b8ed9af43c9b2 Mon Sep 17 00:00:00 2001 From: mollusk Date: Tue, 17 Oct 2017 00:50:18 -0700 Subject: [PATCH] wire-build.sh: temp fix for apt --- wire-build.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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