@duytransipher/gitnexus 1.2.0 → 1.2.1

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/dist/cli/setup.js CHANGED
@@ -366,6 +366,21 @@ function resolveEditorCmd(explicitPath, engineAssociation) {
366
366
  }
367
367
  }
368
368
  catch { /* registry key not found */ }
369
+ // Try LauncherInstalled.dat (Epic Games Launcher writes this for all engine installs)
370
+ try {
371
+ const launcherDat = path.join(process.env.LOCALAPPDATA || path.join(os.homedir(), 'AppData', 'Local'), 'EpicGames', 'UnrealEngineLauncher', 'LauncherInstalled.dat');
372
+ const launcher = JSON.parse(fsSync.readFileSync(launcherDat, 'utf-8'));
373
+ if (Array.isArray(launcher.InstallationList)) {
374
+ for (const entry of launcher.InstallationList) {
375
+ if (entry.AppName === `UE_${engineAssociation}` || entry.AppName === engineAssociation) {
376
+ const found = tryCandidates(entry.InstallLocation);
377
+ if (found)
378
+ return found;
379
+ }
380
+ }
381
+ }
382
+ }
383
+ catch { /* LauncherInstalled.dat not found or unparseable */ }
369
384
  // Try standard install path
370
385
  const found = tryCandidates(path.join('C:\\Program Files\\Epic Games', `UE_${engineAssociation}`));
371
386
  if (found)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duytransipher/gitnexus",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Sipher-maintained fork of GitNexus for graph-powered code intelligence via MCP and CLI.",
5
5
  "author": "DuyTranSipher",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",
@@ -108,6 +108,20 @@ function Resolve-UnrealEditorCmd {
108
108
  } catch {
109
109
  }
110
110
 
111
+ # Try LauncherInstalled.dat (Epic Games Launcher writes this for all engine installs)
112
+ try {
113
+ $launcherDat = Join-Path $env:LOCALAPPDATA 'EpicGames\UnrealEngineLauncher\LauncherInstalled.dat'
114
+ if (Test-Path -LiteralPath $launcherDat -PathType Leaf) {
115
+ $launcher = Get-Content -LiteralPath $launcherDat -Raw | ConvertFrom-Json
116
+ foreach ($entry in $launcher.InstallationList) {
117
+ if ($entry.AppName -eq "UE_$EngineAssociation" -or $entry.AppName -eq $EngineAssociation) {
118
+ Add-EditorCmdCandidates -Candidates $candidates -RootOrExe $entry.InstallLocation
119
+ }
120
+ }
121
+ }
122
+ } catch {
123
+ }
124
+
111
125
  Add-EditorCmdCandidates -Candidates $candidates -RootOrExe "C:\Program Files\Epic Games\UE_$EngineAssociation"
112
126
  }
113
127