Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

download-chrome.sh 1.1KB

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env bash
  2. ##
  3. # @license Copyright 2017 Google Inc. All Rights Reserved.
  4. # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
  5. # Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
  6. ##
  7. # Download chrome inside of our CI env.
  8. if [ "$APPVEYOR" == "True" ]; then
  9. url="https://download-chromium.appspot.com/dl/Win?type=snapshots"
  10. else
  11. url="https://download-chromium.appspot.com/dl/Linux_x64?type=snapshots"
  12. fi
  13. if [ x"$LIGHTHOUSE_CHROMIUM_PATH" == x ]; then
  14. echo "Error: Environment variable LIGHTHOUSE_CHROMIUM_PATH not set"
  15. exit 1
  16. fi
  17. if [ -e "$LIGHTHOUSE_CHROMIUM_PATH" ]; then
  18. echo "cached chrome found"
  19. else
  20. wget "$url" --no-check-certificate -q -O chrome.zip && unzip chrome.zip
  21. fi