@directivegames/genesys.sdk 4.2.8 → 4.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -207,6 +207,18 @@ export const handlers = {
|
|
|
207
207
|
return getAppInfo();
|
|
208
208
|
},
|
|
209
209
|
checkForUpdates: async (notifyWhenNoUpdates) => {
|
|
210
|
+
// Check for GH_TOKEN environment variable
|
|
211
|
+
if (!process.env.GH_TOKEN) {
|
|
212
|
+
logger.warn('GH_TOKEN environment variable is missing - update check will be skipped');
|
|
213
|
+
dialog.showMessageBox(mainWindow, {
|
|
214
|
+
type: 'warning',
|
|
215
|
+
buttons: ['OK'],
|
|
216
|
+
title: 'Update Check Warning',
|
|
217
|
+
message: 'GitHub Token Missing',
|
|
218
|
+
detail: 'The GH_TOKEN environment variable is not set.\n\nUpdate checks require a GitHub token to access private releases.\n\nPlease set the GH_TOKEN environment variable and restart the application to enable automatic updates.',
|
|
219
|
+
});
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
210
222
|
const result = await autoUpdater.checkForUpdates();
|
|
211
223
|
if (!result || !result.isUpdateAvailable) {
|
|
212
224
|
if (notifyWhenNoUpdates) {
|
|
@@ -265,6 +265,18 @@ async function initMainWindow() {
|
|
|
265
265
|
}
|
|
266
266
|
;
|
|
267
267
|
function checkForUpdates() {
|
|
268
|
+
// Check for GH_TOKEN environment variable
|
|
269
|
+
if (!process.env.GH_TOKEN) {
|
|
270
|
+
logger.warn('GH_TOKEN environment variable is missing - update check will be skipped');
|
|
271
|
+
dialog.showMessageBox({
|
|
272
|
+
type: 'warning',
|
|
273
|
+
buttons: ['OK'],
|
|
274
|
+
title: 'Update Check Warning',
|
|
275
|
+
message: 'GitHub Token Missing',
|
|
276
|
+
detail: 'The GH_TOKEN environment variable is not set.\n\nUpdate checks require a GitHub token to access private releases.\n\nPlease set the GH_TOKEN environment variable and restart the application to enable automatic updates.',
|
|
277
|
+
});
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
268
280
|
autoUpdater.logger = log;
|
|
269
281
|
autoUpdater.checkForUpdatesAndNotify();
|
|
270
282
|
autoUpdater.on('update-available', () => {
|