add version check

This commit is contained in:
2023-11-20 15:37:02 +08:00
parent 64e592391f
commit 15c3de24b3
4 changed files with 21 additions and 2 deletions

6
gen-version.js Normal file
View File

@@ -0,0 +1,6 @@
const fs = require('fs')
const path = require('path')
const version = Date.now()
const versionModule = `export const version = "${version}"`
fs.writeFileSync(path.resolve(__dirname, 'src/version.js'), versionModule)