         log "#{platform}-#{arch} successfully packaged to #{release_path}."
 
   else if platform == 'linux'
-
     yield fs.moveAsync path.join(stage3_electron, 'electron'),
       path.join(stage3_electron, 'poi'),
       clobber: true
     package_release = packageReleaseAsync poi_fullname, stage3_electron,
       release_dir
     Promise.resolve
+      app_path: stage3_app
       log: null
       todo: async ->
         release_path = yield package_release

    yield fs.removeAsync stage3_electron
  catch e

  copy_app = fs.copyAsync app_path, stage3_app
  install_flash = installFlashAsync platform, arch, download_dir, flash_dir

  electron_url = get_electron_url platform, arch, electron_version
  install_electron = downloadExtractZipAsync electron_url, download_dir, '',
      stage3_electron, 'electron'

  yield Promise.join copy_app, install_flash, install_electron

  if platform == 'win32'
    raw_poi_exe = path.join(building_root, "#{platform_arch}.raw.poi.exe")


# If !use_taobao_mirror, download Electron from GitHub.
use_taobao_mirror = config.get 'buildscript.useTaobaoMirror', true
log "Download electron from #{if use_taobao_mirror then 'taobao mirror' else 'github'}"
npm_exec_path = path.join __dirname, 'node_modules', 'npm', 'bin', 'npm-cli.js'
bower_exec_path = path.join __dirname, 'node_modules', 'bower', 'bin', 'bower'

