Skip to content

{discord,openasar}: support custom distro updater endpoints - #519974

Closed
4evy wants to merge 5 commits into
NixOS:masterfrom
4evy:flameflag/push-wyluzttowkzl
Closed

4evy wants to merge 5 commits into
NixOS:masterfrom
4evy:flameflag/push-wyluzttowkzl

Conversation

@4evy

@4evy 4evy commented May 14, 2026 •

Copy link
Copy Markdown
Member

Closes: #519923

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. labels May 14, 2026
@4evy
4evy requested a review from fxzzi May 14, 2026 08:12
@fxzzi

fxzzi commented May 14, 2026 •

Copy link
Copy Markdown
Member

built discord successfully with OpenASAR, but stuck on "Checking for Updates". Running in term shows its failing to find some stuff in the asar:

[OpenAsar > BuildInfo] {
  newUpdater: true,
  releaseChannel: 'stable',
  sentryDist: 'stable-linux-x64',
  sentryRelease: 'discord-desktop-f4d9be098c10e29c53815d781d4c3b766741b8e8',
  version: '1.0.138'
}
[OpenAsar > Splash] Error: Cannot find module 'discord_desktop_core'
Require stack:
- /nix/store/kh41l87ml0vz6fcj1hz7w1863i6ksia4-discord-1.0.138/opt/Discord/resources/app.asar/bootstrap.js
- /nix/store/kh41l87ml0vz6fcj1hz7w1863i6ksia4-discord-1.0.138/opt/Discord/resources/app.asar/index.js
- 
    at Module._resolveFilename (node:internal/modules/cjs/loader:1390:15)
    at s._resolveFilename (node:electron/js2c/browser_init:2:129714)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1032:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1037:22)
    at Module._load (node:internal/modules/cjs/loader:1199:37)
    at c._load (node:electron/js2c/node_init:2:17993)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:244:24)
    at Module.require (node:internal/modules/cjs/loader:1470:12)
    at require (node:internal/modules/helpers:147:16) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/nix/store/kh41l87ml0vz6fcj1hz7w1863i6ksia4-discord-1.0.138/opt/Discord/resources/app.asar/bootstrap.js',
    '/nix/store/kh41l87ml0vz6fcj1hz7w1863i6ksia4-discord-1.0.138/opt/Discord/resources/app.asar/index.js',
    undefined
  ]
}

disabling OA leads to the same error as well:

splashScreen.launchMainWindow: false
fatal: Error: Cannot find module 'discord_desktop_core'
Require stack:
- /nix/store/kvr59yqgl7263idvw5vyg1ll0490fcan-discord-1.0.138/opt/Discord/resources/app.asar/bundle.js
Error: Cannot find module 'discord_desktop_core'
Require stack:
- /nix/store/kvr59yqgl7263idvw5vyg1ll0490fcan-discord-1.0.138/opt/Discord/resources/app.asar/bundle.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1390:15)
    at s._resolveFilename (node:electron/js2c/browser_init:2:129714)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1032:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1037:22)
    at Module._load (node:internal/modules/cjs/loader:1199:37)
    at c._load (node:electron/js2c/node_init:2:17993)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:244:24)
    at Module.require (node:internal/modules/cjs/loader:1470:12)
    at EventEmitter.<anonymous> (/nix/store/kvr59yqgl7263idvw5vyg1ll0490fcan-discord-1.0.138/opt/Discord/resources/app.asar/bundle.js:10:12284)
splashScreen.updateSplashState launching launching {}
splashScreen.updateSplashState: Windows is null.
blackbox: 5/14/2026, 12:14:24 PM GMT+1 5 window.closed win1
blackbox: 5/14/2026, 12:14:24 PM GMT+1 6 quit -1

edit: and also, is the patch for openasar worth upstreaming?

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label May 22, 2026
@4evy 4evy closed this Jun 1, 2026
@4evy
4evy deleted the flameflag/push-wyluzttowkzl branch June 1, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

discord: cannot use custom updater endpoints

2 participants