cmvr-wms/scripts/projectdev/mobile-update.cjs
lixiaolong ca1f5a27f9 feat(mobile): 优化移动端界面和功能
- 添加移动工作空间对话框全屏样式支持
- 更新应用主视图以支持桌面视口布局
- 重构Excel导入对话框增加预览和校验功能
- 在移动端主页增加生产与交付模块和项目借还功能
- 移动端库存列表显示项目名称和成品标识
- 增加入库记录批量操作和撤销功能
- 优化分页组件在桌面视口中的滚动行为
- 更新路由配置和数据库连接配置
- 调整仓库领域模型移除预期日期字段
- 优化智能代理服务的正则匹配和出库类型处理
2026-10-12 16:41:42 +08:00

15 lines
871 B
JavaScript

// Generates deployment artifacts from a completed web build; never changes source files.
const fs = require('fs')
const path = require('path')
const crypto = require('crypto')
const root = path.resolve(__dirname, '../..')
const bundle = path.join(root, 'android-app/app/src/main/assets/web.zip')
const output = path.join(root, 'ruoyi-ui/dist')
if (!fs.existsSync(path.join(output, 'index.html'))) throw new Error('Build web pages first')
const hash = crypto.createHash('sha256').update(fs.readFileSync(bundle)).digest('hex')
const version = `web-${hash.slice(0, 24)}`
const name = `${version}.zip`
fs.copyFileSync(bundle, path.join(output, name))
fs.writeFileSync(path.join(output, 'mobile-update.json'), JSON.stringify({ version, sha256: hash, url: `/${name}`, minimumNativeVersion: 1 }, null, 2))
console.log(`Page update: ${path.join(output, 'mobile-update.json')}`)