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. forbuilding docker images.
See scheib#5
  • Loading branch information
xemle authored and Nardol committed Apr 1, 2020
2 parents 938b697 + 3b29a7b commit a49bb55
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,16 @@
Scripts to download and run the latest Linux build of Chromium.
Note that it is the latest development version, not the last stable one.
This build is recommended for testing only.

## Usage

Download and runs the latest build of Chromium

$ ./update-and-run.sh

Download a specific revision

$ export REVISION=492595
$ ./update-and-run.sh

The same use is possible with ./update.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 a49bb55

Please sign in to comment.