RWKV-Runner/Makefile

36 lines
696 B
Makefile
Raw Normal View History

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