Skip to content

fix: restore Discord compatibility and add Windows setup tools - #263

Open
NhoCutee wants to merge 1 commit into
GooseMod:mainfrom
NhoCutee:meobone
Open

NhoCutee wants to merge 1 commit into
GooseMod:mainfrom
NhoCutee:meobone

Conversation

@NhoCutee

Copy link
Copy Markdown

Why

OpenAsar should work with current Discord builds and provide a clear installation path on Windows.

Startup already adds installed module directories to Module.globalPaths. The updater then skips those directories without recording their native module paths, leaving Discord unable to resolve them through committedModulePaths.

Scope

  • Register native module paths even when their search directories already exist.
  • Use persistent module_data by default while preserving explicit legacy, standalone, and local overrides.
  • Create versioned data and log directories on first launch.
  • Add reproducible npm build commands and regression tests.
  • Add a Windows installer with backup and restore support.
  • Add a launcher for separate Discord account profiles.
  • Document installation, restoration, and multiple profiles.

Blast Radius

The path and updater fixes affect desktop startup. The PowerShell tools target Windows and keep additional account profiles separate from normal Discord data.

The new local build tooling requires Node.js 22.12 or newer.

Verification

  • npm test: all 7 regression tests pass.
  • npm run build: app.asar builds successfully.
  • Installer checks cover backup, reinstall, restore, version selection, preview, and invalid archive rejection.
  • Discord Stable 1.0.9268 reaches the login screen.
  • Two Discord instances run with separate profile directories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant