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

@ -1,6 +1,8 @@
{
"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",
"author": "earthjasonlin <https://git.loliquq.cn/earthjasonlin>",
"homepage": "https://github.com/earthjasonlin/zzz-signal-search-export",