0.2.1
This commit is contained in:
parent
74aa95339c
commit
b487c68822
@ -31,6 +31,10 @@ mac:
|
|||||||
arch:
|
arch:
|
||||||
- arm64
|
- arm64
|
||||||
- x64
|
- x64
|
||||||
|
- target: zip
|
||||||
|
arch:
|
||||||
|
- arm64
|
||||||
|
- x64
|
||||||
dmg:
|
dmg:
|
||||||
artifactName: ${productName}-${version}-${arch}.${ext}
|
artifactName: ${productName}-${version}-${arch}.${ext}
|
||||||
linux:
|
linux:
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cherry-studio",
|
"name": "cherry-studio",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"description": "A powerful AI assistant for producer.",
|
"description": "A powerful AI assistant for producer.",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": "kangfenmao@qq.com",
|
"author": "kangfenmao@qq.com",
|
||||||
|
|||||||
@ -94,7 +94,7 @@ app.whenReady().then(() => {
|
|||||||
.then((name) => console.log(`Added Extension: ${name}`))
|
.then((name) => console.log(`Added Extension: ${name}`))
|
||||||
.catch((err) => console.log('An error occurred: ', err))
|
.catch((err) => console.log('An error occurred: ', err))
|
||||||
|
|
||||||
setTimeout(() => new AppUpdater(), 5000)
|
setTimeout(() => new AppUpdater(), 3000)
|
||||||
})
|
})
|
||||||
|
|
||||||
// Quit when all windows are closed, except on macOS. There, it's common
|
// Quit when all windows are closed, except on macOS. There, it's common
|
||||||
|
|||||||
@ -8,12 +8,12 @@ export default class AppUpdater {
|
|||||||
autoUpdater.logger = logger
|
autoUpdater.logger = logger
|
||||||
autoUpdater.forceDevUpdateConfig = true
|
autoUpdater.forceDevUpdateConfig = true
|
||||||
autoUpdater.autoDownload = false
|
autoUpdater.autoDownload = false
|
||||||
autoUpdater.checkForUpdatesAndNotify()
|
autoUpdater.checkForUpdates()
|
||||||
|
|
||||||
// 触发检查更新(此方法用于被渲染线程调用,例如页面点击检查更新按钮来调用此方法)
|
// 触发检查更新(此方法用于被渲染线程调用,例如页面点击检查更新按钮来调用此方法)
|
||||||
ipcMain.on('check-for-update', () => {
|
ipcMain.on('check-for-update', () => {
|
||||||
logger.info('触发检查更新')
|
logger.info('触发检查更新')
|
||||||
autoUpdater.checkForUpdates()
|
return autoUpdater.checkForUpdates()
|
||||||
})
|
})
|
||||||
|
|
||||||
// 检测下载错误
|
// 检测下载错误
|
||||||
|
|||||||
@ -3,7 +3,8 @@ import { electronAPI } from '@electron-toolkit/preload'
|
|||||||
|
|
||||||
// Custom APIs for renderer
|
// Custom APIs for renderer
|
||||||
const api = {
|
const api = {
|
||||||
getAppInfo: () => ipcRenderer.invoke('get-app-info')
|
getAppInfo: () => ipcRenderer.invoke('get-app-info'),
|
||||||
|
checkForUpdate: () => ipcRenderer.invoke('check-for-update')
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use `contextBridge` APIs to expose Electron APIs to
|
// Use `contextBridge` APIs to expose Electron APIs to
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user