appdwarf/apps/mkchrome

14 lines
359 B
Plaintext
Raw Normal View History

#!/bin/sh
2022-02-16 17:32:03 +00:00
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
DIR=/tmp/appdwarf
2022-02-16 17:32:03 +00:00
mkdir -p $DIR
LINK=https://download-chromium.appspot.com/dl/Linux_x64
curl -L "$LINK" | bsdtar xf - -C$DIR
chmod +x $DIR/chrome-linux/chrome*
mv $DIR/chrome-linux/chrome $DIR/chrome-linux/AppRun
appdwarf $DIR/chrome-linux
mv $DIR/chrome-linux.sh chromium
rm -rf $DIR/chrome-linux