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 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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user