Fixed the version part in the artifact name.

Removed unused `require`s.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2020-07-07 17:02:05 +02:00
parent 8da8f2a50e
commit bf1351ffdc
2 changed files with 1 additions and 3 deletions

View File

@ -11,7 +11,7 @@ function artifactName() {
const { platform, arch } = process;
const id = (() => {
if (isRelease) {
return 'latest';
return getVersion();
} else if (isNightly) {
return `nightly-${timestamp()}`
} else {

View File

@ -4,9 +4,7 @@ const fs = require('fs');
const zip = require('7zip-min');
const temp = require('temp');
const path = require('path');
const isCI = require('is-ci');
const shell = require('shelljs');
const semver = require('semver');
const depcheck = require('depcheck');
const fromFile = require('file-type').fromFile;