-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
project_name = $(notdir $(shell pwd))
main_path = ./cmd/app
generate: mock-gen
mock-gen:
@rm -rf ./test/mocks/packages
@go generate ./...
build_bin_linux:
cd $(main_path) && wails build -platform linux/amd64
build_bin_windows:
cd $(main_path) && CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++-posix wails build -platform windows/amd64 -skipbindings -ldflags "-linkmode external -extldflags -static"
build_debug_race:
cd $(main_path) && wails build -debug -race
build_debug_windows:
cd $(main_path) && CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++-posix wails build -debug -platform windows/amd64 -skipbindings -ldflags "-linkmode external -extldflags -static"
build_package:
@nfpm package -t ./build/package -p deb
@nfpm package -t ./build/package -p rpm
build_appimage:
./scripts/build_appimage.sh
fmt:
gofmt -s -w .
clean:
@rm -rf ./build/bin/goovpn ./build/bin/goovpn.exe
changelog_update:
rm -rf changelog.yml
chglog init
chglog format --template repo > CHANGELOG.md
run_tests:
go test -v internal/parser/parser_config_test.go internal/parser/parser_config.go