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