| .. | .. |
|---|
| 262 | 262 | : '由 manifest.json.demo 生成(appid ' + env.APPID + ',生成物不入库)')); |
|---|
| 263 | 263 | |
|---|
| 264 | 264 | const cliArgs = ['publish', '--platform', 'mp-weixin', '--project', ROOT].concat(passthrough); |
|---|
| 265 | | - // 路径含空格/中文,交给 cmd 解析更稳 |
|---|
| 266 | | - const openCmd = '"' + wx.file + '" open --project "' + DIST_DIR + '"'; |
|---|
| 265 | + // 路径含空格/中文,交给 cmd 解析更稳(--no-open 时没有微信开发者工具,不拼这条命令) |
|---|
| 266 | + const openCmd = wx ? '"' + wx.file + '" open --project "' + DIST_DIR + '"' : ''; |
|---|
| 267 | 267 | |
|---|
| 268 | 268 | if (dryRun) { |
|---|
| 269 | 269 | console.log('[release] 0) 生成: manifest.json ← manifest.json.demo' + (noGen ? '(已指定 --no-gen,跳过)' : '')); |
|---|