 
 #
 #
-deploy = (platform, arch) ->
+deploy = (platform, arch, cb) ->
     deferred = Q.defer()
     opts = deploy_options
     opts.platform = platform

        .then (appPaths) ->
            if appPaths?.length > 0
                if process.env.NO_ZIP
                    return deferred.resolve()
                zippath = "#{appPaths[0]}/"
                if platform == 'darwin'

            child.stdout.on 'data', (data) ->
              # do nothing
              console.log("fpm: #{data}") if target == 'rpm'
              done()
              return true
            # log all errors
            child.on 'error', (err) ->
