Apply platform-specific manifest values. Works with JSON or plain objects.
The platform-specific options will override the others only when "building" for that platform and the
platformOverrides property will be removed.
This was originally created with node-webkit in mind.
Need a Gulp plugin? See gulp-platform-overrides.
npm install platform-overrides
var platformOverrides = ;var result =;
Returns an Object or String, depending on the type of the
options property you passed.
Object or String. (i.e.
(Optional) String. One of the following: [osx, osx32, osx64, win, win32, win64, linux, linux32, linux64].
If not passed, the current platform is detected (the auto-detected platform is always an architecture-specific one (i.e. has
64 on the end).
See Examples for how this parameter effects the behaviour of this plugin.
osx is not
mac just for the sake of backwards compatibility with node-webkit-builder.
Function called on completion with error and result arguments; e.g.
For example, when building for Windows (passing
win as the platform or not passing a platform on a Windows machine), the manifest generated and put into the end app (from the manifest above) would be:
win is passed as the platform, then only
win is applied and
win64 are ignored;
Specificity & Cascading
win32 is passed as the platform (or
win32 is auto-detected), then
win is applied first, then
Even if there is no
win32, then the
win platform overrides will still be applied.