 zipAssets = (buildDir, assets, callback) ->
   zip = (directory, sourcePath, assetName, callback) ->
     if process.platform is 'win32'
-      zipCommand = "C:/psmodules/7z.exe a -r #{assetName} \"#{sourcePath}\""
+      sevenZipPath = if process.env.JANKY_SHA1? then "C:/psmodules/" else ""
+      zipCommand = "#{sevenZipPath}7z.exe a -r \"#{assetName}\" \"#{sourcePath}\""
     else
       zipCommand = "zip -r --symlinks '#{assetName}' '#{sourcePath}'"
     options = {cwd: directory, maxBuffer: Infinity}

  async.parallel(tasks, callback)

getAtomDraftRelease = (isPrerelease, branchName, callback) ->
  atomRepo = new GitHub({repo: 'atom/atom', token})
  atomRepo.getReleases {prerelease: isPrerelease}, (error, releases=[]) ->
    if error?
      logError('Fetching atom/atom releases failed', error, releases)
      callback(error)
    else
      [firstDraft] = releases.filter ({draft}) -> draft

createAtomDraftRelease = (isPrerelease, branchName, callback) ->
  {version} = require('../../package.json')
  options =
    uri: "https://api.github.com/repos/#{repo}/releases"
    method: 'POST'
    headers: defaultHeaders
    json:
