   try
     yield fs.removeAsync release_path
   catch e
-  yield add7z release_path, electron_dir
+  yield compress7zAsync electron_dir, release_path
   release_path
 
 packageStage3Async = async (platform, arch, poi_version, electron_version,

  log "Packaging app.asar."
  yield packageAsarAsync stage2_app, asar_path
  log "Compressing app.asar into #{release_path}"
  yield add7z release_path, asar_path
  log "Compression completed."
  asar_path


  catch e
    yield fs.copyAsync src, tgt

compress7zAsync = async (files, archive, options) ->
  try
    yield fs.removeAsync archive
  catch e
