         form.append "title","#{options.title}"
         form.append "version","#{options.version}"
         form.append "build","#{options.build}"
-        
-
+      
         form.append "asset",fs.createReadStream(options.asset)
+        form.append "socketId","#{options.socketId}"

        form.append "version","#{options.version}"
        form.append "build","#{options.build}"
        form.append "title","#{options.title}"
        

    else
      Q.Promise (resolve, reject, notify) =>

      console.log "开始压缩..."
      buildWizard.destroy()
      buildStateView.attach()
  
      require('../../utils/zip')(atom.project.path,"./","foreveross.zip").then (zip_path) ->_.extend(result, asset: zip_path)
    .then (result) ->
      console.log "结束压缩...#{result}"
      Q.Promise (resolve, reject, notify) ->
        buildStateView.socket.on "resSocketId",(sid)->
          console.log "resSocketId:#{sid}"
          resolve(_.extend(result, socketId: sid))
        buildStateView.socket.emit "reqSocketId"
    .then (result) =>
      @sendBuildRequest(result)
    .then (result) ->
      zip_path = "#{atom.project.path}/foreveross.zip"
