deploy: auto commit repo-root changes 2026-06-12 21:09:54

This commit is contained in:
hajimi
2026-06-12 21:09:54 +08:00
parent 30d768a3e6
commit 8dacaea803
+2 -2
View File
@@ -2,8 +2,8 @@ import path from 'path'
import fsExtra from 'fs-extra' import fsExtra from 'fs-extra'
const { existsSync, remove, copy } = fsExtra const { existsSync, remove, copy } = fsExtra
const cwd = process.cwd() const cwd = process.cwd()
//打包发布路径,谨慎改动 // 打包发布路径,谨慎改动;服务端构建时可用 UNIAPP_RELEASE_PATH 覆盖。
const releaseRelativePath = '../server/public/mobile' const releaseRelativePath = process.env.UNIAPP_RELEASE_PATH || '../server/public/mobile'
const distPath = path.resolve(cwd, 'dist/build/h5') const distPath = path.resolve(cwd, 'dist/build/h5')
const releasePath = path.resolve(cwd, releaseRelativePath) const releasePath = path.resolve(cwd, releaseRelativePath)