world/build.sh

19 lines
862 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# world 模块构建脚本四步安装①DDL 生成CRUD UI 生成编码字典落库RBAC 注册)
set -e
cd "$(dirname "$0")"
echo "[world] ① 生成 DDL (json2ddl)"
json2ddl mysql ./models > models/mysql.ddl.sql 2>/dev/null || echo " json2ddl 不可用,跳过(部署时由应用 build.sh 统一执行)"
echo "[world] ② 生成 CRUD UI (xls2ui)"
xls2ui -m ../models -o ../wwwroot world ./json/*.json 2>/dev/null || echo " xls2ui 不可用,跳过(部署时由应用 build.sh 统一执行)"
echo "[world] ③ 编码字典落库init/data.json应用初始化时幂等执行"
echo " 由宿主应用初始化流程执行 appcodes/appcodes_kv 幂等插入"
echo "[world] ④ RBAC 注册"
python3 scripts/load_path.py || echo " load_path.py 需在 Sage 环境执行"
echo "[world] build done"