Skip to content

Commit

Permalink
Fix missing folder during build process (#5)
Browse files Browse the repository at this point in the history
Ensure that the releases folder exists. Also add some extra stuff to ignore when editing this project from IntelliJ IDEA.
  • Loading branch information
gregturn authored Jul 17, 2024
1 parent 8d80564 commit e0a0291
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Binaries for programs and plugins
dg
*.exe
*.exe~
*.dll
Expand All @@ -24,4 +25,7 @@ releases
scratchpad

# Code editor
.vscode/
.vscode/

.idea
*.iml
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;\
Expand Down

0 comments on commit e0a0291

Please sign in to comment.