       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

    # Update package.json
    async.apply updateManifest, './build/win32/resources/app/package.json', (manifest) ->
      manifest.distrib = 'win32:installer'

    # Remove the dev modules
    applyIf args.prod, applySpawn 'npm', ['prune', '--production'],

    async.apply updateManifest, './build/win32/resources/app/package.json', (manifest) ->
      manifest.portable = true
      manifest.distrib = 'win32:portable'
      manifest.buildNum = process.env.APPVEYOR_BUILD_NUMBER

    # Remove the dev modules
    applyIf args.prod, applySpawn 'npm', ['prune', '--production'],
