Skip to content

Add an option to disable parallel building of targets #9296

@softworkz

Description

@softworkz

Use case

Using hooks like artifactBuildStarted and artifactBuildCompleted to manipulate any content in outDir doesn't work out well when building targets which are executed in parallel.

Since electron-builder makes a number of unfortunate hardcoded decisions, using hooks like above is sometimes the last rescue - but it only works when the changes you make are only going into the intended target. To ensure that, an option is needed to disable the parallel execution.

Temporary Workaround

exports.default = async (ctx) => {

    for (let i = 0; i < ctx.targets.length; i++) {
        ctx.targets[i].isAsyncSupported = false;
    }
};

Thanks

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