Skip to content

Commit

Permalink
Add private token for update fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
serjonya-trili committed Nov 24, 2023
1 parent 70a9280 commit 866734b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,26 @@ const { app, BrowserWindow, shell } = require("electron");
const path = require("path");
const url = require("url");
const { autoUpdater } = require("electron-updater");
const process = require("process");

// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow;
let deeplinkURL;

process.env["GH_TOKEN"] =
"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";

// Assure single instance
if (!app.requestSingleInstanceLock()) {
app.quit();
return;
}

autoUpdater.checkForUpdatesAndNotify();
try {
autoUpdater.checkForUpdatesAndNotify();
} catch (e) {
console.log(e);
}

// Enable experimental to activate Web USB support
app.commandLine.appendSwitch("enable-experimental-web-platform-features", true);
Expand Down

0 comments on commit 866734b

Please sign in to comment.