@makefully/adaptfully 3.3.0 → 3.4.0

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## 3.4.0 — 2026-06-25
6
+
7
+ ### Changed
8
+
9
+ - Electron **`main.js`** allows same-app `file://` navigation while still opening external http(s) links in the system browser.
10
+ - Steam builds (`steam-auth`) set renderer **`sandbox: false`** so the steamworks preload bridge can reach the main process; non-Steam Electron builds keep `sandbox: true`.
11
+
5
12
  ## 3.3.0 — 2026-06-23
6
13
 
7
14
  ### Added
@@ -24,16 +24,22 @@ const
24
24
 
25
25
  const ELECTRON_MAIN_BODY = `
26
26
  /**
27
- * Opens external URLs in the system browser and blocks in-app navigation.
27
+ * Opens http(s) links in the system browser; allows same-app file:// navigation.
28
28
  * @param {Electron.BrowserWindow} win
29
29
  */
30
30
  function attachExternalLinkHandlers(win) {
31
31
  win.webContents.setWindowOpenHandler(({url}) => {
32
+ if (url.startsWith('file:')) {
33
+ return {action: 'deny'};
34
+ }
32
35
  shell.openExternal(url);
33
36
  return {action: 'deny'};
34
37
  });
35
38
 
36
39
  win.webContents.on('will-navigate', (event, url) => {
40
+ if (url.startsWith('file:')) {
41
+ return;
42
+ }
37
43
  event.preventDefault();
38
44
  shell.openExternal(url);
39
45
  });
@@ -72,7 +78,7 @@ function createWindow () {
72
78
  devTools: debugMode,
73
79
  nodeIntegration: false,
74
80
  contextIsolation: true,
75
- sandbox: true`;
81
+ sandbox: __SANDBOX__`;
76
82
 
77
83
  const ELECTRON_MAIN_TAIL = `
78
84
  },
@@ -157,7 +163,9 @@ if (steamClient) {
157
163
  export function buildElectronMain(withSteam) {
158
164
  const steamInit = withSteam ? STEAM_INIT : '';
159
165
  const steamPreload = withSteam ? STEAM_PRELOAD : '';
160
- return ELECTRON_MAIN_HEAD + steamInit + ELECTRON_MAIN_BODY + steamPreload + ELECTRON_MAIN_TAIL;
166
+ const sandbox = withSteam ? 'false' : 'true';
167
+ const mainBody = ELECTRON_MAIN_BODY.replace('__SANDBOX__', sandbox);
168
+ return ELECTRON_MAIN_HEAD + steamInit + mainBody + steamPreload + ELECTRON_MAIN_TAIL;
161
169
  }
162
170
 
163
171
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makefully/adaptfully",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "Platform abstraction and Wrapfully deploy client for Makefully games",
5
5
  "type": "module",
6
6
  "main": "./lib/node/index.js",