     tasknameNoDep = "#{taskname}:nodep"
     # set internal task with _ (does not have dependencies)
     gulp.task tasknameNoDep, (cb)->
-        deploy platform, arch
+        deploy platform, arch, cb
     # set task with dependencies
-    gulp.task taskname, (cb) ->
-      gulp.series 'default', tasknameNoDep, cb
+    gulp.task taskname, gulp.series('default', tasknameNoDep)
     #
     tasknameNoDep
 

    #
    # restriction darwin won't compile ia32
    if platform == 'darwin' && arch == 'ia32'
        deferred.resolve()
        return deferred.promise


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