RWKV-Runner/Makefile

36 lines
696 B
Makefile
Raw Permalink 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
2024-02-03 13:05:02 +08:00
wails build -ldflags '-s -w -extldflags "-static"' -platform windows/amd64
upx -9 --lzma ./build/bin/RWKV-Runner.exe
2023-05-06 23:39:23 +08:00
build-macos:
@echo ---- build for macos
2023-11-29 22:59:42 +08:00
wails build -ldflags '-s -w' -platform darwin/universal
2023-06-05 22:57:01 +08:00
build-linux:
@echo ---- build for linux
2024-02-03 13:05:02 +08:00
wails build -ldflags '-s -w' -platform linux/amd64
upx -9 --lzma ./build/bin/RWKV-Runner
2023-05-06 23:39:23 +08:00
2023-11-07 19:27:21 +08:00
build-web:
@echo ---- build for web
cd frontend && npm run build
2023-05-17 21:20:41 +08:00
dev:
wails dev
2023-11-07 19:27:21 +08:00
dev-web:
cd frontend && npm run dev
preview:
cd frontend && npm run preview