mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2024-11-24 22:20:26 +08:00
chore: bump version to 1.1.0
This commit is contained in:
parent
7300c6e719
commit
f616944755
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user