#!/bin/sh
# VAR:
app_name="aw_id"

# ---
my_path="$(readlink -f "$0")"
app_dir="$(dirname "$my_path")"
src="$app_dir/src"
res="$app_dir/builds"

mkdir -p "$res"

alias build='go build -v -x'

cd "$src"
go fmt
build -o "${res}/${app_name}"
GOOS=windows GOARCH=amd64 build -o "${res}/${app_name}.exe"
