RWKV-Runner/Makefile

24 lines
454 B
Makefile
Raw Normal View History

2023-05-06 23:39:23 +08:00
ifeq ($(OS), Windows_NT)
build: build-windows
2023-06-05 22:57:01 +08:00
else ifeq ($(shell uname -s), Darwin)
2023-05-06 23:39:23 +08:00
build: build-macos
2023-06-05 22:57:01 +08:00
else
build: build-linux
2023-05-06 23:39:23 +08:00
endif
build-windows:
@echo ---- build for windows
2023-06-05 22:57:01 +08:00
wails build -upx -ldflags "-s -w" -platform windows/amd64
2023-05-06 23:39:23 +08:00
build-macos:
@echo ---- build for macos
2023-06-05 22:57:01 +08: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 23:39:23 +08:00
2023-05-17 21:20:41 +08:00
dev:
wails dev