#!/bin/bash

# ARM Based Mac Build for electron

# https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux
NC='\033[0m' # No Color
RED='\033[0;31m'
GREEN='\033[0;32m'

node run electron-rebuild
cd node_modules/better-sqlite3
node-gyp rebuild --target=25.9.8 --arch=arm64 --dist-url=https://electronjs.org/headers
cd ../../
