2023-05-06 15:39:23 +00:00
|
|
|
ifeq ($(OS), Windows_NT)
|
|
|
|
build: build-windows
|
2023-06-05 14:57:01 +00:00
|
|
|
else ifeq ($(shell uname -s), Darwin)
|
2023-05-06 15:39:23 +00:00
|
|
|
build: build-macos
|
2023-06-05 14:57:01 +00:00
|
|
|
else
|
|
|
|
build: build-linux
|
2023-05-06 15:39:23 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
build-windows:
|
|
|
|
@echo ---- build for windows
|
2023-06-05 14:57:01 +00:00
|
|
|
wails build -upx -ldflags "-s -w" -platform windows/amd64
|
2023-05-06 15:39:23 +00:00
|
|
|
|
|
|
|
build-macos:
|
|
|
|
@echo ---- build for macos
|
2023-06-05 14:57:01 +00:00
|
|
|
wails build -ldflags "-s -w" -platform darwin/universal
|
|
|
|
|
|
|
|
build-linux:
|
|
|
|
@echo ---- build for linux
|
|
|
|
wails build -upx -ldflags "-s -w" -platform linux/amd64
|
2023-05-06 15:39:23 +00:00
|
|
|
|
2023-05-17 13:20:41 +00:00
|
|
|
dev:
|
|
|
|
wails dev
|
|
|
|
|