File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 35
35
THEIA_ELECTRON_SKIP_REPLACE_FFMPEG : 1
36
36
displayName : Build
37
37
- bash : |
38
+ ./electron/packager/conf-node-gyp.sh
38
39
yarn --cwd ./electron/packager/
39
40
yarn --cwd ./electron/packager/ package
40
41
env:
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ npm install --global node-gyp@6.0.1
4
+
5
+ if [ " $OSTYPE " = " cygwin" ] || [ " $OSTYPE " = " msys" ]; then
6
+ npm config set node_gyp " ` npm prefix -g` \node_modules\node-gyp\bin\node-gyp.js"
7
+ else
8
+ npm config set node_gyp " ` npm prefix -g` /lib/node_modules/node-gyp/bin/node-gyp.js"
9
+ fi
10
+
11
+ echo " npm config get node_gyp -> ` npm config get node_gyp` "
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const depcheck = require('depcheck');
13
13
* and append the short commit SHA.
14
14
*/
15
15
function versionInfo ( ) {
16
- if ( typeof process . env . RELEASE_TAG === 'undefined' || /* Azure -> */ process . env . RELEASE_TAG === '$(Release.Tag)' ) {
16
+ if ( typeof process . env . RELEASE_TAG === 'undefined' || ! process . env . RELEASE_TAG || /* Azure -> */ process . env . RELEASE_TAG === '$(Release.Tag)' ) {
17
17
return {
18
18
version : `${ targetVersion ( ) } -${ currentCommitish ( ) } ` ,
19
19
release : false
@@ -97,4 +97,4 @@ function collectUnusedDependencies(pathToProject = process.cwd()) {
97
97
} )
98
98
}
99
99
100
- module . exports = { versionInfo, collectUnusedDependencies } ;
100
+ module . exports = { versionInfo, collectUnusedDependencies } ;
You can’t perform that action at this time.
0 commit comments