mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-11 22:56:33 +00:00
Added script to configure node_gyp (nodejs/node-gyp#1933)
This commit is contained in:
parent
4290497edc
commit
b8fdb03433
@ -35,6 +35,7 @@ jobs:
|
|||||||
THEIA_ELECTRON_SKIP_REPLACE_FFMPEG: 1
|
THEIA_ELECTRON_SKIP_REPLACE_FFMPEG: 1
|
||||||
displayName: Build
|
displayName: Build
|
||||||
- bash: |
|
- bash: |
|
||||||
|
./electron/packager/conf-node-gyp.sh
|
||||||
yarn --cwd ./electron/packager/
|
yarn --cwd ./electron/packager/
|
||||||
yarn --cwd ./electron/packager/ package
|
yarn --cwd ./electron/packager/ package
|
||||||
env:
|
env:
|
||||||
|
11
electron/packager/conf-node-gyp.sh
Executable file
11
electron/packager/conf-node-gyp.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
npm install --global node-gyp@6.0.1
|
||||||
|
|
||||||
|
if [ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ]; then
|
||||||
|
npm config set node_gyp "`npm prefix -g`\node_modules\node-gyp\bin\node-gyp.js"
|
||||||
|
else
|
||||||
|
npm config set node_gyp "`npm prefix -g`/lib/node_modules/node-gyp/bin/node-gyp.js"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "npm config get node_gyp -> `npm config get node_gyp`"
|
@ -13,7 +13,7 @@ const depcheck = require('depcheck');
|
|||||||
* and append the short commit SHA.
|
* and append the short commit SHA.
|
||||||
*/
|
*/
|
||||||
function versionInfo() {
|
function versionInfo() {
|
||||||
if (typeof process.env.RELEASE_TAG === 'undefined' || /* Azure -> */ process.env.RELEASE_TAG === '$(Release.Tag)') {
|
if (typeof process.env.RELEASE_TAG === 'undefined' || !process.env.RELEASE_TAG || /* Azure -> */ process.env.RELEASE_TAG === '$(Release.Tag)') {
|
||||||
return {
|
return {
|
||||||
version: `${targetVersion()}-${currentCommitish()}`,
|
version: `${targetVersion()}-${currentCommitish()}`,
|
||||||
release: false
|
release: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user