mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
Install NPM dev dependencies during the build (#437)
Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
7d0ea21567
commit
e9164df384
@ -48,7 +48,7 @@ fi
|
||||
|
||||
function install {
|
||||
rm -rf node_modules bower_components
|
||||
npm install --production --build-from-source
|
||||
npm install --build-from-source
|
||||
bower install --production
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ function install {
|
||||
export npm_config_runtime=electron
|
||||
|
||||
rm -rf node_modules bower_components
|
||||
npm install --production --build-from-source
|
||||
npm install --build-from-source
|
||||
bower install --production
|
||||
}
|
||||
|
||||
|
@ -156,7 +156,7 @@ set HOME=%homedrive%%homepath%\.electron-gyp
|
||||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
|
||||
call rimraf node_modules bower_components
|
||||
call npm install --production --build-from-source
|
||||
call npm install --build-from-source
|
||||
call bower install --production
|
||||
|
||||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
@ -213,7 +213,6 @@ upx -9 %package_output%\*.dll
|
||||
set installer_tmp_output=%output_build_directory%\win32-%arch%-tmp-installer
|
||||
set installer_output=%output_directory%\Etcher-win32-%arch%.exe
|
||||
|
||||
call npm install --only=dev
|
||||
call %electron_builder% %package_output%^
|
||||
--platform=win^
|
||||
--out=%installer_tmp_output%
|
||||
|
Loading…
x
Reference in New Issue
Block a user