Skip to content

Commit

Permalink
Add support for a fixed revision
Browse files Browse the repository at this point in the history
In some cases a fixed revision of chromium is preferred, e.g. for
building docker images.
  • Loading branch information
xemle committed Aug 8, 2017
1 parent 4f4e9b8 commit 3b29a7b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# chromium-latest-linux
Scripts to download and run the latest Linux build of Chromium.

## Usage

Download and updates the latest build of Chromium

$ ./update-and-run.sh

Download a specific revision

$ export REVISION=492595
$ ./update-and-run.sh
8 changes: 6 additions & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ cd $(dirname $0)

LASTCHANGE_URL="https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2FLAST_CHANGE?alt=media"

REVISION=$(curl -s -S $LASTCHANGE_URL)
if [ -z "$REVISION" ]; then
REVISION=$(curl -s -S $LASTCHANGE_URL)

echo "latest revision is $REVISION"
echo "latest revision is $REVISION"
else
echo "Using given revision $REVISION as latest revision"
fi

if [ -d $REVISION ] ; then
echo "already have latest version"
Expand Down

0 comments on commit 3b29a7b

Please sign in to comment.