|
@@ -66,6 +66,31 @@ build_script:
|
|
|
- mkdir src
|
|
|
- update_depot_tools.bat
|
|
|
- ps: Move-Item $env:APPVEYOR_BUILD_FOLDER -Destination src\electron
|
|
|
+ - ps: >-
|
|
|
+ if (Test-Path 'env:RAW_GOMA_AUTH') {
|
|
|
+ $env:GOMA_OAUTH2_CONFIG_FILE = "$pwd\.goma_oauth2_config"
|
|
|
+ $env:RAW_GOMA_AUTH | Set-Content $env:GOMA_OAUTH2_CONFIG_FILE
|
|
|
+ }
|
|
|
+ - git clone https://github.com/electron/build-tools.git
|
|
|
+ - cd build-tools
|
|
|
+ - npm install
|
|
|
+ - mkdir third_party
|
|
|
+ - ps: >-
|
|
|
+ node -e "require('./src/utils/goma.js').downloadAndPrepare({ gomaOneForAll: true })"
|
|
|
+ - ps: $env:GN_GOMA_FILE = node -e "console.log(require('./src/utils/goma.js').gnFilePath)"
|
|
|
+ - ps: $env:LOCAL_GOMA_DIR = node -e "console.log(require('./src/utils/goma.js').dir)"
|
|
|
+ - cd ..
|
|
|
+ - ps: .\src\electron\script\start-goma.ps1 -gomaDir $env:LOCAL_GOMA_DIR
|
|
|
+ - ps: >-
|
|
|
+ if (Test-Path 'env:RAW_GOMA_AUTH') {
|
|
|
+ $goma_login = python $env:LOCAL_GOMA_DIR\goma_auth.py info
|
|
|
+ if ($goma_login -eq 'Login as Fermi Planck') {
|
|
|
+ Write-warning "Goma authentication is correct";
|
|
|
+ } else {
|
|
|
+ Write-warning "WARNING!!!!!! Goma authentication is incorrect; please update Goma auth token.";
|
|
|
+ $host.SetShouldExit(1)
|
|
|
+ }
|
|
|
+ }
|
|
|
- ps: $env:CHROMIUM_BUILDTOOLS_PATH="$pwd\src\buildtools"
|
|
|
- ps: >-
|
|
|
if ($env:GN_CONFIG -ne 'release') {
|
|
@@ -129,21 +154,6 @@ build_script:
|
|
|
Write-warning "Failed to add third_party\angle\.git; continuing anyway"
|
|
|
}
|
|
|
}
|
|
|
- - ps: >-
|
|
|
- if (Test-Path 'env:RAW_GOMA_AUTH') {
|
|
|
- $env:GOMA_OAUTH2_CONFIG_FILE = "$pwd\.goma_oauth2_config"
|
|
|
- $env:RAW_GOMA_AUTH | Set-Content $env:GOMA_OAUTH2_CONFIG_FILE
|
|
|
- }
|
|
|
- - git clone https://github.com/electron/build-tools.git
|
|
|
- - cd build-tools
|
|
|
- - npm install
|
|
|
- - mkdir third_party
|
|
|
- - ps: >-
|
|
|
- node -e "require('./src/utils/goma.js').downloadAndPrepare({ gomaOneForAll: true })"
|
|
|
- - ps: $env:GN_GOMA_FILE = node -e "console.log(require('./src/utils/goma.js').gnFilePath)"
|
|
|
- - ps: $env:LOCAL_GOMA_DIR = node -e "console.log(require('./src/utils/goma.js').dir)"
|
|
|
- - cd ..
|
|
|
- - ps: .\src\electron\script\start-goma.ps1 -gomaDir $env:LOCAL_GOMA_DIR
|
|
|
- cd src
|
|
|
- set BUILD_CONFIG_PATH=//electron/build/args/%GN_CONFIG%.gn
|
|
|
- gn gen out/Default "--args=import(\"%BUILD_CONFIG_PATH%\") import(\"%GN_GOMA_FILE%\") %GN_EXTRA_ARGS% "
|