@directivegames/genesys.sdk 4.2.7 → 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.
@@ -9,7 +9,7 @@
9
9
  * Includes dependencies from the main package.
10
10
  */
11
11
  export const DEPENDENCIES = {
12
- '@directivegames/genesys.js': '4.2.8',
12
+ '@directivegames/genesys.js': '4.2.9',
13
13
  '@electron/rebuild': '4.0.2',
14
14
  '@emotion/react': '11.14.0',
15
15
  '@emotion/styled': '11.14.1',
@@ -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', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@directivegames/genesys.sdk",
3
- "version": "4.2.7",
3
+ "version": "4.2.9",
4
4
  "description": "Genesys SDK - A development toolkit for game development",
5
5
  "author": "Directive Games",
6
6
  "main": "index.js",
@@ -109,7 +109,7 @@
109
109
  }
110
110
  },
111
111
  "dependencies": {
112
- "@directivegames/genesys.js": "^4.2.8",
112
+ "@directivegames/genesys.js": "^4.2.9",
113
113
  "@electron/rebuild": "^4.0.2",
114
114
  "@emotion/react": "^11.14.0",
115
115
  "@emotion/styled": "^11.14.0",