fix manifest programFiles version to enhance cdn real-time performance
This commit is contained in:
parent
c741b2a203
commit
1176dba282
@ -178,14 +178,14 @@ export function downloadProgramFiles() {
|
|||||||
manifest.programFiles.forEach(({ url, path }) => {
|
manifest.programFiles.forEach(({ url, path }) => {
|
||||||
FileExists(path).then(exists => {
|
FileExists(path).then(exists => {
|
||||||
if (!exists)
|
if (!exists)
|
||||||
AddToDownloadList(path, url);
|
AddToDownloadList(path, url.replace('@master', '@v' + manifest.version));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function forceDownloadProgramFiles() {
|
export function forceDownloadProgramFiles() {
|
||||||
manifest.programFiles.forEach(({ url, path }) => {
|
manifest.programFiles.forEach(({ url, path }) => {
|
||||||
DownloadFile(path, url);
|
DownloadFile(path, url.replace('@master', '@v' + manifest.version));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ export async function checkUpdate(notifyEvenLatest: boolean = false) {
|
|||||||
toast(t('Downloading update, please wait. If it is not completed, please manually download the program from GitHub and replace the original program.'), {
|
toast(t('Downloading update, please wait. If it is not completed, please manually download the program from GitHub and replace the original program.'), {
|
||||||
type: 'info',
|
type: 'info',
|
||||||
position: 'bottom-left',
|
position: 'bottom-left',
|
||||||
autoClose: 6000
|
autoClose: 10000
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
UpdateApp(updateUrl).catch((e) => {
|
UpdateApp(updateUrl).catch((e) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user