wire-build.sh: temp fix for apt

This commit is contained in:
mollusk 2017-10-17 00:50:18 -07:00
parent 93dc7bd89e
commit a78f1cc3d5

View File

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