From e0a02910aab9dabf73a19c087be2a730c5d96b1c Mon Sep 17 00:00:00 2001 From: "Greg L. Turnquist" Date: Wed, 17 Jul 2024 03:16:24 -0500 Subject: [PATCH] Fix missing folder during build process (#5) Ensure that the releases folder exists. Also add some extra stuff to ignore when editing this project from IntelliJ IDEA. --- .gitignore | 6 +++++- Makefile | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index bfa2023..3248d25 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ # Binaries for programs and plugins +dg *.exe *.exe~ *.dll @@ -24,4 +25,7 @@ releases scratchpad # Code editor -.vscode/ \ No newline at end of file +.vscode/ + +.idea +*.iml \ No newline at end of file diff --git a/Makefile b/Makefile index 173d6be..d5b4416 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,9 @@ profile: go tool pprof -http=:8080 profile.out release: validate_version + # make sure the folder exists + mkdir -p ./releases + # linux GOOS=linux go build -ldflags "-X main.version=${VERSION}" -o dg ;\ tar -zcvf ./releases/dg_${VERSION}_linux.tar.gz ./dg ;\