This commit is contained in:
2022-04-29 23:32:11 +08:00
parent cc1c894d9b
commit d49d224ba4
14 changed files with 180 additions and 4 deletions

View File

@ -4,7 +4,8 @@ import child_process from "child_process"
*/
const config = {
define: {
'__APP_VERSION': child_process.execSync('git rev-parse --short HEAD'),
'__APP_VERSION': child_process.execSync('git rev-parse --short HEAD').toString().replaceAll("\n",""),
'__APP_BUILD_TIME': Math.floor(Date.now() / 1000),
}
}
export default config