mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
25 lines
540 B
Bash
25 lines
540 B
Bash
#!/bin/sh
|
|
|
|
main() {
|
|
case "$1" in
|
|
app) # 生产环境
|
|
shift && prepare_ice && while echo; do
|
|
bin/ice.bin serve start dev dev "$@" && break
|
|
done
|
|
;;
|
|
dev) # 开发环境
|
|
shift && prepare_system
|
|
git config --global url."$ctx_dev".insteadOf https://shylinux.com
|
|
git clone https://shylinux.com/x/contexts
|
|
cd contexts && source etc/miss.sh dev dev "$@"
|
|
;;
|
|
cmd) # 命令环境
|
|
ish_sys_dev_init >/dev/null; shift; [ -n "$*" ] && ish_sys_dev_run "$@"
|
|
;;
|
|
*)
|
|
require src/hi/hi.sh
|
|
;;
|
|
esac
|
|
}
|
|
main "$@"
|