This commit is contained in:
parent
d130da43f0
commit
e3303ad903
4
main.js
4
main.js
|
|
@ -272,9 +272,9 @@ function updateHandle() {
|
||||||
error: '检查更新出错',
|
error: '检查更新出错',
|
||||||
checking: '正在检查更新……',
|
checking: '正在检查更新……',
|
||||||
updateAva: '检测到新版本,正在下载……',
|
updateAva: '检测到新版本,正在下载……',
|
||||||
updateNotAva: '现在使用的就是最新版本,不用更新'
|
updateNotAva: '已经是最新版本,不用更新'
|
||||||
}
|
}
|
||||||
autoUpdater.setFeedURL('https://meeting-api.23544.com/meeting-update')
|
autoUpdater.setFeedURL('https://meeting-api.23544.com/meeting/update')
|
||||||
autoUpdater.autoDownload = false // 不自动下载安装包
|
autoUpdater.autoDownload = false // 不自动下载安装包
|
||||||
autoUpdater.autoInstallOnAppQuit = false // 不自动安装
|
autoUpdater.autoInstallOnAppQuit = false // 不自动安装
|
||||||
autoUpdater.on('error', function (error) {
|
autoUpdater.on('error', function (error) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "WGShare.Metting",
|
"name": "WGShare.Metting",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.1.3",
|
"version": "0.1.14",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"authors": "yj",
|
"authors": "yj",
|
||||||
"description": "智汇享",
|
"description": "智汇享",
|
||||||
|
|
@ -69,7 +69,7 @@
|
||||||
"publish": [
|
"publish": [
|
||||||
{
|
{
|
||||||
"provider": "generic",
|
"provider": "generic",
|
||||||
"url": "https://meeting-api.23544.com/meeting-update"
|
"url": "https://meeting-api.23544.com/meeting/update"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
|
||||||
const [updateContent, setUpdateContent] = useState('') // 版本更新内容
|
const [updateContent, setUpdateContent] = useState('') // 版本更新内容
|
||||||
|
|
||||||
function getContent() {
|
function getContent() {
|
||||||
fetch(`https://meeting-api.23544.com/meeting-update/update.txt?t=${+new Date()}`) // 配置服务器地址
|
fetch(`https://meeting-api.23544.com/meeting/update/update.txt?t=${+new Date()}`) // 配置服务器地址
|
||||||
.then(async response => {
|
.then(async response => {
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
return setUpdateContent(await response.text())
|
return setUpdateContent(await response.text())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue