From d1718c55039213cf6126e66afe361c01688bee79 Mon Sep 17 00:00:00 2001 From: Dan Graham Date: Sat, 18 Feb 2017 19:59:28 -0800 Subject: [PATCH] Deploy windows .exe from appveyor --- scripts/deploy-exe.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/deploy-exe.js b/scripts/deploy-exe.js index 6dbcbe302..d27487408 100644 --- a/scripts/deploy-exe.js +++ b/scripts/deploy-exe.js @@ -1,7 +1,6 @@ /* eslint-disable no-console */ var token = process.env.GITHUB_REPO_TOKEN; var tag = process.env.APPVEYOR_REPO_TAG_NAME; -var vTag = 'v' + tag; var fs = require('fs'); var filename = 'Appium Setup :tag.exe'.replace(':tag', tag); var github = require('octonode'); @@ -24,9 +23,9 @@ appiumDesktopRepo.releases(function (err, releases) { } // Find the release that matches the given tag releases = _.keyBy(releases, 'tag_name'); - var release = releases[vTag]; + var release = releases[tag]; if (!release) { - console.error('Could not find release at: ' + vTag); + console.error('Could not find release at: ' + tag); process.exit(0); }