add notice under Linux

This commit is contained in:
HorizonCode 2022-10-23 17:07:20 +02:00
parent 11c3f9f657
commit 573bcd393c
2 changed files with 17 additions and 2 deletions

7
app.js
View File

@ -74,6 +74,13 @@ const run = () => {
await updateConfigVars(mainWindow);
await tryLogin(mainWindow);
await doUpdateCheck(mainWindow);
if (platform === "linux") {
console.log("yes");
mainWindow.webContents.send('status_update', {
type: "info",
message: "We detected that you are running the Launcher under Linux. It's currently just compatible with Arch and the osu AUR package!"
});
}
})
app.on('activate', function () {
if (BrowserWindow.getAllWindows().length === 0) mainWindow = createWindow();

View File

@ -168,6 +168,14 @@ window.addEventListener('DOMContentLoaded', () => {
});
ipcRenderer.send("do-update-check");
break;
case "info":
Swal.fire({
title: 'Info!',
text: status.message,
icon: 'info',
confirmButtonText: 'Okay'
});
break;
case "update-complete":
Swal.fire({
title: 'Yaaay!',