Skip to content

Commit e0a0291

Browse files
authored
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.
1 parent 8d80564 commit e0a0291

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Binaries for programs and plugins
2+
dg
23
*.exe
34
*.exe~
45
*.dll
@@ -24,4 +25,7 @@ releases
2425
scratchpad
2526

2627
# Code editor
27-
.vscode/
28+
.vscode/
29+
30+
.idea
31+
*.iml

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ profile:
5858
go tool pprof -http=:8080 profile.out
5959

6060
release: validate_version
61+
# make sure the folder exists
62+
mkdir -p ./releases
63+
6164
# linux
6265
GOOS=linux go build -ldflags "-X main.version=${VERSION}" -o dg ;\
6366
tar -zcvf ./releases/dg_${VERSION}_linux.tar.gz ./dg ;\

0 commit comments

Comments
 (0)