Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for a fixed revision #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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