#!/usr/bin/env bash cd "../$(dirname $0)" if [[ "${teaclient_deploy_secret}" == "" ]]; then echo "Missing deploy secret!" exit 1 fi if [[ $# -lt 1 ]]; then echo "Missing build channel!" exit 1 fi npm run build-linux-64 if [[ $? -ne 0 ]]; then echo "Failed to build project" fi npm run package-linux-64 $1 if [[ $? -ne 0 ]]; then echo "Failed to package project" fi