chore: bump version to 1.1.0

This commit is contained in:
Zichao Lin 2024-07-25 13:47:37 +08:00
parent 7300c6e719
commit f616944755
Signed by: earthjasonlin
GPG Key ID: 406D9913DE2E42FB
2 changed files with 7 additions and 5 deletions

@ -2,7 +2,7 @@ const fs = require('fs-extra')
const path = require('path') const path = require('path')
const crypto = require('crypto') const crypto = require('crypto')
const AdmZip = require('adm-zip') const AdmZip = require('adm-zip')
const { version } = require('../package.json') const { version, autoUpdateActive, autoUpdateFrom } = require('../package.json')
const hash = (data, type = 'sha256') => { const hash = (data, type = 'sha256') => {
const hmac = crypto.createHmac(type, 'nap') const hmac = crypto.createHmac(type, 'nap')
@ -32,9 +32,9 @@ const start = async () => {
await fs.copy(zipPath, path.resolve(outputPath, `${hashName}.zip`)) await fs.copy(zipPath, path.resolve(outputPath, `${hashName}.zip`))
await fs.remove(zipPath) await fs.remove(zipPath)
await fs.outputJSON(path.join(outputPath, 'manifest.json'), { await fs.outputJSON(path.join(outputPath, 'manifest.json'), {
active: true, active: autoUpdateActive,
version, version: version,
from: '0.0.1', from: autoUpdateFrom,
name: `${hashName}.zip`, name: `${hashName}.zip`,
hash: sha256 hash: sha256
}) })

@ -1,6 +1,8 @@
{ {
"name": "zzz-signal-search-export", "name": "zzz-signal-search-export",
"version": "1.0.10", "version": "1.1.0",
"autoUpdateActive": false,
"autoUpdateFrom": "1.1.0",
"main": "./dist/electron/main/main.js", "main": "./dist/electron/main/main.js",
"author": "earthjasonlin <https://git.loliquq.cn/earthjasonlin>", "author": "earthjasonlin <https://git.loliquq.cn/earthjasonlin>",
"homepage": "https://github.com/earthjasonlin/zzz-signal-search-export", "homepage": "https://github.com/earthjasonlin/zzz-signal-search-export",