chrome: update to 87.0.4280

This commit is contained in:
CvH 2020-11-30 15:40:30 +01:00
parent bba8d5fffc
commit 0066322453
3 changed files with 10 additions and 6 deletions

View File

@ -1,5 +1,5 @@
104
- support for latest Chrome
- updated to 87.0.4280
103
- fix getting default audio device

View File

@ -3,6 +3,8 @@
PKG_NAME="chrome"
PKG_VERSION="1.0"
# curl -s http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages | grep -B 1 Version
PKG_VERSION_NUMBER="87.0.4280.66"
PKG_REV="104"
PKG_ARCH="x86_64"
PKG_LICENSE="Custom"
@ -106,4 +108,5 @@ addon() {
post_install_addon() {
sed -e "s/@DISTRO_PKG_SETTINGS_ID@/${DISTRO_PKG_SETTINGS_ID}/g" -i "${INSTALL}/default.py"
sed -e "s/@CHROME_VERSION@/${PKG_VERSION_NUMBER}/g" -i "${INSTALL}/bin/chrome-downloader"
}

View File

@ -6,9 +6,10 @@
. /etc/profile
oe_setup_addon browser.chrome
ICON=$ADDON_DIR/resources/icon.png
CONTROL_FILE=/tmp/curl.done
DATA_FILE=/tmp/curl.data
ICON="$ADDON_DIR/resources/icon.png"
CONTROL_FILE="/tmp/curl.done"
DATA_FILE="/tmp/curl.data"
CHROME_FILE="google-chrome-stable_@CHROME_VERSION@-1_amd64.deb"
# check for enough free disk space
if [ $(df . | awk 'END {print $4}') -lt 400000 ]; then
@ -38,7 +39,7 @@ echo "Downloading Chrome"
# download chrome
rm -f ${CONTROL_FILE} ${DATA_FILE}
(
curl -# -O -C - https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 2>${DATA_FILE}
curl -# -O -C - https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/${CHROME_FILE} 2>${DATA_FILE}
touch ${CONTROL_FILE}
) | \
while [ : ]; do
@ -53,7 +54,7 @@ rm -f ${CONTROL_FILE} ${DATA_FILE}
## extract chrome
# extrat chrome.deb
kodi-send --action="Notification(Extracting Chrome,starting,1000,${ICON})" >/dev/null
ar -x google-chrome-stable_current_amd64.deb
ar -x ${CHROME_FILE}
# extract data.tar.xz to chrome-bin directory
mkdir $ADDON_DIR/chrome-bin