mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-09-28 04:21:15 +02:00
fix(update): don't check for update if the app is installed with SNAP or Flatpak
This commit is contained in:
@@ -122,6 +122,7 @@ function initAutoUpdater(mainWindow) {
|
|||||||
* Separated from init for reusability and testability.
|
* Separated from init for reusability and testability.
|
||||||
*/
|
*/
|
||||||
async function checkForUpdates() {
|
async function checkForUpdates() {
|
||||||
|
if (process.env.SNAP || process.env.FLATPAK_ID) return;
|
||||||
if (!require("electron").app.isPackaged) return;
|
if (!require("electron").app.isPackaged) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user