mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: 修复tag问题。
This commit is contained in:
parent
1d34d7d896
commit
2787acb99c
1 changed files with 3 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ const defaultConfig = {
|
|||
debug: true,
|
||||
defaultTimeoutMs: 120000,
|
||||
chromeTimeoutMS: 120000,
|
||||
// version: 'v2.0.11',
|
||||
version: 'v2.0.12',
|
||||
toneStyle: 'balanced' // or creative, precise
|
||||
}
|
||||
const _path = process.cwd()
|
||||
|
|
@ -82,8 +82,8 @@ if (fs.existsSync(`${_path}/plugins/chatgpt-plugin/config/config.json`)) {
|
|||
}
|
||||
}
|
||||
config = Object.assign({}, defaultConfig, config)
|
||||
const latestTag = execSync(`cd ${_path}/plugins/chatgpt-plugin && git describe --tags --abbrev=0`).toString().trim()
|
||||
config.version = latestTag
|
||||
// const latestTag = execSync(`cd ${_path}/plugins/chatgpt-plugin && git describe --tags --abbrev=0`).toString().trim()
|
||||
// config.version = latestTag
|
||||
|
||||
export const Config = new Proxy(config, {
|
||||
set (target, property, value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue