Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build hangs forever after "updating asar integrity executable resource" #8709

Open
ThePaSch opened this issue Nov 25, 2024 · 0 comments
Open

Comments

@ThePaSch
Copy link

  • Electron-Builder Version: 25.1.8
  • Node Version: 23.3.0
  • Electron Version: 33.2.0
  • Electron Type (current, beta, nightly): current
  • Target: Windows

The build process hangs forever after the console output updating asar integrity executable resource executablePath=electron-dist/win-unpacked/MyApp.exe. I've let it sit for upwards of ten minutes - but nothing happens until I force-quit the build process through CTRL+C.

I'm building on WSL2 using the WINE Docker container, and I'm targetting Linux and Windows. My build configuration looks like this:

"build": {
    "appId": "my-app",
    "productName": "MyApp",
    "directories": {
      "output": "electron-dist"
    },
    "files": [
      "dist/**/*",
      "src/main.js",
      "package.json"
    ],
    "win": {
      "target": [
        "portable"
      ],
      "icon": "electron-build/icon.ico"
    },
    "linux": {
      "category": "Game",
      "target": [
        "AppImage",
        "snap"
      ]
    }
  },

and the build output looks like this (including the force quit):

docker run --rm -ti  --env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS_TAG|TRAVIS|TRAVIS_REPO_|TRAVIS_BUILD_|TRAVIS_BRANCH|TRAVIS_PULL_REQUEST_|APPVEYOR_|CSC_|GH_|GITHUB_|BT_|AWS_|STRIP|BUILD_')  --env ELECTRON_CACHE="/root/.cache/electron"  --env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder"  -v ${PWD}:/project  -v ${PWD##*/}-node-modules:/project/node_modules  -v ~/.cache/electron:/root/.cache/electron  -v ~/.cache/electron-builder:/root/.cache/electron-builder  electronuserland/builder:wine
root@13c5cc75965d:/project# npm run electron:build

> [email protected] electron:build
> electron-builder --win --linux

  • electron-builder  version=25.1.8 os=5.15.153.1-microsoft-standard-WSL2
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=electron-dist/builder-effective-config.yaml
  • executing @electron/rebuild  electronVersion=33.2.0 arch=x64 buildFromSource=false appDir=./
  • installing native dependencies  arch=x64
  • completed installing native dependencies
  • packaging       platform=linux arch=x64 electron=33.2.0 appOutDir=electron-dist/linux-unpacked
  • building        target=AppImage arch=x64 file=electron-dist/MyApp-1.0.0.AppImage
  • building        target=snap arch=x64 file=electron-dist/my-app_1.0.0_amd64.snap
  • executing @electron/rebuild  electronVersion=33.2.0 arch=x64 buildFromSource=false appDir=./
  • installing native dependencies  arch=x64
  • default Electron icon is used  reason=application icon is not set
  • completed installing native dependencies
  • packaging       platform=win32 arch=x64 electron=33.2.0 appOutDir=electron-dist/win-unpacked
  • updating asar integrity executable resource  executablePath=electron-dist/win-unpacked/MyApp.exe





^C  • cancelled by SIGINT
  ⨯ /project/node_modules/app-builder-bin/linux/x64/app-builder process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
null  failedTask=build stackTrace=Error: /project/node_modules/app-builder-bin/linux/x64/app-builder process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
null
    at ChildProcess.<anonymous> (/project/node_modules/builder-util/src/util.ts:255:14)
    at Object.onceWrapper (node:events:634:26)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at Socket.<anonymous> (node:internal/child_process:457:11)
    at Socket.emit (node:events:519:28)
    at Pipe.<anonymous> (node:net:338:12)
From previous event:
    at processImmediate (node:internal/timers:478:21)
From previous event:
    at WinPackager.signApp (/project/node_modules/app-builder-lib/src/winPackager.ts:270:27)
    at WinPackager.doSignAfterPack (/project/node_modules/app-builder-lib/src/platformPackager.ts:346:32)
    at WinPackager.doPack (/project/node_modules/app-builder-lib/src/platformPackager.ts:331:7)
    at WinPackager.pack (/project/node_modules/app-builder-lib/src/platformPackager.ts:138:5)
    at Packager.doBuild (/project/node_modules/app-builder-lib/src/packager.ts:459:9)
    at executeFinally (/project/node_modules/builder-util/src/promise.ts:12:14)
    at Packager.build (/project/node_modules/app-builder-lib/src/packager.ts:393:31)
    at executeFinally (/project/node_modules/builder-util/src/promise.ts:12:14)
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

No branches or pull requests

1 participant