Skip to content

Commit a49bb55

Browse files
xemleNardol
authored andcommitted
Add support for a fixed revision
In some cases a fixed revision of chromium is preferred, e.g. forbuilding docker images. See scheib#5
2 parents 938b697 + 3b29a7b commit a49bb55

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,16 @@
22
Scripts to download and run the latest Linux build of Chromium.
33
Note that it is the latest development version, not the last stable one.
44
This build is recommended for testing only.
5+
6+
## Usage
7+
8+
Download and runs the latest build of Chromium
9+
10+
$ ./update-and-run.sh
11+
12+
Download a specific revision
13+
14+
$ export REVISION=492595
15+
$ ./update-and-run.sh
16+
17+
The same use is possible with ./update.sh

update.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ cd $(dirname $0)
44

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

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

9-
echo "latest revision is $REVISION"
10+
echo "latest revision is $REVISION"
11+
else
12+
echo "Using given revision $REVISION as latest revision"
13+
fi
1014

1115
if [ -d $REVISION ] ; then
1216
echo "already have latest version"

0 commit comments

Comments
 (0)