mirror of
https://github.com/SikongJueluo/cc-utils.git
synced 2025-11-29 12:57:50 +08:00
25 lines
690 B
Makefile
25 lines
690 B
Makefile
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
|
|
sync-path := if os_family() == "windows" {
|
|
"C:\\Users\\sikongjueluo\\AppData\\Roaming\\CraftOS-PC\\computer\\0\\user\\"
|
|
} else {
|
|
"/home/sikongjueluo/.local/share/craftos-pc/computer/0/user/"
|
|
}
|
|
|
|
build: build-autocraft build-accesscontrol build-test build-example sync
|
|
|
|
build-autocraft:
|
|
pnpm tstl -p ./tsconfig.autocraft.json
|
|
|
|
build-accesscontrol:
|
|
pnpm tstl -p ./tsconfig.accesscontrol.json
|
|
cp ./src/accesscontrol/access.config.json ./build/
|
|
|
|
build-test:
|
|
pnpm tstl -p ./tsconfig.test.json
|
|
|
|
build-example:
|
|
pnpm tstl -p ./tsconfig.tuiExample.json
|
|
|
|
sync:
|
|
rsync --delete -r "./build/" "{{sync-path}}"
|