This commit is contained in:
parent
c7811b64b4
commit
725287d25d
3
main.js
3
main.js
|
|
@ -283,6 +283,7 @@ app.on('ready', () => {
|
|||
transparent: true,
|
||||
});
|
||||
newWindow.loadURL(data.url);
|
||||
newWindow.focus();
|
||||
newWindow.webContents.on('before-input-event', (event, input) => {
|
||||
if (env === 'development') {
|
||||
if (input.key === 'F12') {
|
||||
|
|
@ -303,7 +304,7 @@ function updateHandle() {
|
|||
updateAva: '检测到新版本,正在下载……',
|
||||
updateNotAva: '现在使用的就是最新版本,不用更新'
|
||||
}
|
||||
autoUpdater.setFeedURL('http://test.bossmei.top/electron')
|
||||
autoUpdater.setFeedURL('https://update.23544.com/metting')
|
||||
autoUpdater.autoDownload = false // 不自动下载安装包
|
||||
autoUpdater.autoInstallOnAppQuit = false // 不自动安装
|
||||
autoUpdater.on('error', function (error) {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
|
|||
const [updateContent, setUpdateContent] = useState('') // 版本更新内容
|
||||
|
||||
function getContent() {
|
||||
fetch('http://test.bossmei.top/electron/update.txt') // 配置服务器地址
|
||||
fetch('https://update.23544.com/metting/update.txt') // 配置服务器地址
|
||||
.then(async response => {
|
||||
if (response.status === 200) {
|
||||
return setUpdateContent(await response.text())
|
||||
|
|
|
|||
Loading…
Reference in New Issue