Electron-builder: Ability to customize the output directory

Created on 28 Mar 2016  路  2Comments  路  Source: electron-userland/electron-builder

Is there any possibility to customize the output directory, i.e. to write in another folder than dist?

Most helpful comment

It's possible for Windows. In your root package.json:

"build": {
    "osx": {
      ...
    }
    "win": {
      "outputDirectory": "release"
    }
}

Note: release directory is in relative to your root directory (where your package.json is).

The problem here is that electron-builder expects it to be in dist and it will try to move files around and will cause error.

All 2 comments

It's possible for Windows. In your root package.json:

"build": {
    "osx": {
      ...
    }
    "win": {
      "outputDirectory": "release"
    }
}

Note: release directory is in relative to your root directory (where your package.json is).

The problem here is that electron-builder expects it to be in dist and it will try to move files around and will cause error.

Not yet. Will be implemented on weekends.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

popod picture popod  路  3Comments

JohnWeisz picture JohnWeisz  路  3Comments

ccorcos picture ccorcos  路  3Comments

antonycourtney picture antonycourtney  路  3Comments

xingoxu picture xingoxu  路  3Comments