Update auto updater config (#514)

* update autoupdater config

* update deps

* update window size
This commit is contained in:
an-lee
2024-04-12 09:29:40 +08:00
committed by GitHub
parent 39c55b5f3f
commit 1c3b148e9a
11 changed files with 769 additions and 541 deletions

View File

@@ -7,15 +7,7 @@ export const About = () => {
const { version, EnjoyApp } = useContext(AppSettingsProviderContext);
const checkUpdate = async () => {
toast.promise(
EnjoyApp.app.update().catch((error) => {
toast.error(error);
EnjoyApp.shell.openExternal("https://1000h.org/enjoy-app/install.html");
}),
{
loading: t("checkingLatestVersion"),
}
);
EnjoyApp.shell.openExternal("https://1000h.org/enjoy-app/install.html");
};
return (