Skip to content

Using Azure Trusted Signing on Docker #8649

Closed
@arantes555

Description

@arantes555
  • Electron-Builder Version: 25.1.8 & 26.0.0-alpha.4
  • Node Version: v20.15.1 in docker electronuserland/builder:wine-mono
  • Electron Version: all
  • Electron Type (current, beta, nightly): all
  • Target: Windows

I am trying to use the new Azure Trusted Signing on a (linux) docker container, using the electronuserland/builder:wine or electronuserland/builder:wine-mono image.

This fails with the below errors.

On 25.1.8:
 • signing with Azure Trusted Signing (beta)  path=releases/win-ia32-unpacked/SealdLimbo.exe
  • Above command failed, retrying 3 more times
[13:27:57] [release]: Error!
[13:27:57] Tasks failed after 36.25 s
Error: Exit code: ENOENT. spawn prlctl ENOENT
    at /project/node_modules/builder-util/src/util.ts:138:18
    at exithandler (node:child_process:430:5)
    at ChildProcess.errorhandler (node:child_process:442:5)
    at ChildProcess.emit (node:events:519:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
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)
    at /project/node_modules/centimaitre/centimaitre.js:121:14
    at executeTask (/project/node_modules/centimaitre/centimaitre.js:132:3)
    at async Promise.all (index 0) {
On 26.0.0-alpha.4:
  • signing with Azure Trusted Signing (beta)  path=releases/win-ia32-unpacked/SealdLimbo.exe
[13:33:36] [release]: Error!
[13:33:36] Tasks failed after 28.83 s
Error: Exit code: ENOENT. spawn prlctl ENOENT
    at /project/node_modules/builder-util/src/util.ts:138:18
    at exithandler (node:child_process:430:5)
    at ChildProcess.errorhandler (node:child_process:442:5)
    at ChildProcess.emit (node:events:519:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21) {

Digging into the relevant code, it looks like it's trying to boot a Parallels VM.

Is it currently impossible to use Azure Trusted Signing on the Docker build image, or any unix system ? I did not find any warning about it in the documentation.

(For anyone interested, I did manage to find a -convoluted- workaround using JSign)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions