 
                 if platform == 'linux'
                     tarIt zippath, fileprefix, ->
+                      cb()
+                      deferred.resolve()
+                else if platform == 'win32'
+                    zipItWin zippath, fileprefix, ->
                       cb()
                       deferred.resolve()
                 else

#

zipIt = (folder, filePrefix, done) ->
    ext = 'zip'
    zipName = path.join outdeploy, "#{filePrefix}.#{ext}"
    folder = path.basename folder

    compressIt('zip', args, opts, zipName, done)

tarIt = (folder, filePrefix, done) ->
    # use GNU tar to make gzipped tar archive
    ext = 'tar.gz'
    zipName = path.join outdeploy, "#{filePrefix}.#{ext}"
    folder = path.basename folder
    #
    args = ['-czf', zipName, folder]
    opts = {
        cwd: outdeploy
        stdio: [0, 1, 'pipe']
    }
    compressIt('tar', args, opts, zipName, done)

zipItWin = (folder, filePrefix, done) ->
    # use built-in tar.exe to make zip archive
    ext = 'zip'
    zipName = path.join outdeploy, "#{filePrefix}.#{ext}"
    folder = path.basename folder
    #
    args = ['-cf', zipName, folder]
    opts = {
        cwd: outdeploy
        stdio: [0, 1, 'pipe']
