This commit is contained in:
yj 2024-08-23 14:25:09 +08:00
parent c7811b64b4
commit 725287d25d
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -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())