     console.log @options
 
   installUpdate: ->
-    this._install_update_mac() if /^darwin/.test process.platform
-    this._install_update_win() if /^win/.test process.platform
-    this._install_update_linux() if /^linux/.test process.platform
+    this._installUpdateMac() if /^darwin/.test process.platform
+    this._installUpdateWin() if /^win/.test process.platform
+    this._installUpdateLinux() if /^linux/.test process.platform
 
-  _install_update_mac: ->
+  _installUpdateMac: ->
     execPath = process.execPath
     filePath = execPath.substr(0, execPath.lastIndexOf("\\"))
     appPath = path.normalize(execPath + "/../../../../../../..")


    progressCb = (state) -> @emit("download-progress", state)

    await @_download_update downloadTarget,
      "#{@options.updateServer}/#{@options.remoteFilenameOSX}",
      progressCb, defer err



    @emit "download-finished"

    await @_extractUpdate downloadTarget, extractFolder, defer err
    if err?
      @emit "download-failed", err
      return
    await @_hideOriginalMac appPath, @options.osxAppName, defer err
    if err?
      @emit "download-failed", err
      return
    await @_copyUpdateMac @options.osxAppName,
     extractFolder, appPath, defer err
    if err?
      @emit "download-failed", err
