     # Update package.json
     async.apply updateManifest, './build/win32/resources/app/package.json', (manifest) ->
       manifest.distrib = 'win32:installer'
+      manifest.buildNum = process.env.APPVEYOR_BUILD_NUMBER
 
     # Remove the dev modules
     applyIf args.prod, applySpawn 'npm', ['prune', '--production'],

      jsonPath = './build/darwin64/' + manifest.productName + '.app/Contents/Resources/app/package.json'
      updateManifest jsonPath, (manifest) ->
        manifest.distrib = 'darwin64:dmg'
      , callback

    # Remove the dev modules

      jsonPath = './build/darwin64/' + manifest.productName + '.app/Contents/Resources/app/package.json'
      updateManifest jsonPath, (manifest) ->
        manifest.distrib = 'darwin64:zip'
        manifest.buildNum = process.env.TRAVIS_BUILD_NUMBER
      , callback

    # Remove the dev modules
