About WebTorrent: Remove git hash from build version

This commit is contained in:
Feross Aboukhadijeh
2016-05-09 18:29:22 +02:00
parent dea951fc42
commit 15a59f445b

View File

@@ -18,7 +18,6 @@ var config = require('../config')
var pkg = require('../package.json')
var BUILD_NAME = config.APP_NAME + '-v' + config.APP_VERSION
var GIT_HASH = cp.execSync('git rev-parse --short HEAD').toString().replace('\n', '')
/*
* Path to folder with the following files:
@@ -86,10 +85,9 @@ var all = {
'asar-unpack': 'WebTorrent*',
// The build version of the application. Maps to the FileVersion metadata property on
// Windows, and CFBundleVersion on OS X. We're using the version of the underlying
// WebTorrent library, plus a short git hash (e.g. 'e7d837e'). Note: Windows requires
// the build version to start with a number.
'build-version': require('webtorrent/package.json').version + '-' + GIT_HASH,
// Windows, and CFBundleVersion on OS X. Note: Windows requires the build version to
// start with a number. We're using the version of the underlying WebTorrent library.
'build-version': require('webtorrent/package.json').version,
// The application source directory.
dir: config.ROOT_PATH,