#!/bin/bash # Script to help build and run this fucking thing because apparantly npm sucks for # projects that use cli arguments [[ -z "$1" ]] && echo Options: run \| build && exit 0 run() { # Required to tests against the self certs we use in testing envs export NODE_TLS_REJECT_UNAUTHORIZED='0' export DEV_ENV=true ./node_modules/electron/dist/electron main.js $@ } build() { sh scripts/build-sass.sh build } "$@"