Browse Source

feat: 修改version.js

AlieLee 3 years ago
parent
commit
5a3a68449c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      version.js

+ 1 - 1
version.js

@@ -1,7 +1,7 @@
 /* eslint-disable @typescript-eslint/no-var-requires */
 /** 自动记录版本信息**/
 const fs = require('fs')
-const buildPath = require('./package.json').name// 放置 version.txt的路径
+const buildPath = 'dist/' + require('./package.json').name// 放置 version.txt的路径
 const execSync = require('child_process').execSync // 同步子进程
 const date = new Date() // Date对象
 const isZip = true // 是否自动压缩(需要安装compressing模块)