     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
 

        'osx-icon-read-Template_032.png': 'osx-icon-read-Template@2x.png'

    # gulp 4 requires async notification!
    new Promise (resolve, reject)->
        Object.keys(nameMap).forEach (name) ->
            gulp.src path.join paths.icons, name
                .pipe rename nameMap[name]

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

