mirror of
https://github.com/maputnik/editor.git
synced 2026-08-25 06:27:25 +00:00
Update only if wanted version is not available
This commit is contained in:
+8
-2
@@ -9,8 +9,14 @@ platform:
|
|||||||
- x86
|
- x86
|
||||||
- x64
|
- x64
|
||||||
install:
|
install:
|
||||||
# https://www.appveyor.com/docs/lang/nodejs-iojs/#installing-any-version-of-nodejs-or-iojs
|
# https://github.com/appveyor/ci/issues/2921#issuecomment-501016533
|
||||||
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:PLATFORM
|
- ps: |
|
||||||
|
try {
|
||||||
|
Install-Product node $env:nodejs_version $env:platform
|
||||||
|
} catch {
|
||||||
|
echo "Unable to install node $env:nodejs_version, trying update..."
|
||||||
|
Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
|
||||||
|
}
|
||||||
- md public
|
- md public
|
||||||
- npm --vs2015 install --global windows-build-tools
|
- npm --vs2015 install --global windows-build-tools
|
||||||
- npm install
|
- npm install
|
||||||
|
|||||||
Reference in New Issue
Block a user