Commit 06999a27 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play edge: add support for stable, beta and dev install

parent c5593bf2
#!/bin/sh #!/bin/sh
PKGNAME=microsoft-edge-dev BASEPKGNAME=microsoft-edge
SUPPORTEDARCHES="x86_64" SUPPORTEDARCHES="x86_64"
PRODUCTALT="stable beta dev"
DESCRIPTION="Microsoft Edge browser (dev) from the official site" DESCRIPTION="Microsoft Edge browser (dev) from the official site"
. $(dirname $0)/common.sh BRANCH=stable
for i in $PRODUCTALT ; do
if [ "$2" = "$i" ] || epm installed $BASEPKGNAME-$i ; then
BRANCH="$i"
fi
done
PKGNAME=$BASEPKGNAME-$BRANCH
. $(dirname $0)/common.sh
# epm uses eget to download * names # epm uses eget to download * names
epm install "https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/microsoft-edge-*_amd64.deb" epm install "https://packages.microsoft.com/repos/edge/pool/main/m/$PKGNAME/${PKGNAME}_*_amd64.deb"
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=microsoft-edge
PRODUCTCUR=microsoft-edge-beta
PRODUCTDIR=/opt/microsoft/msedge-beta
. $(dirname $0)/common-chromium-browser.sh
set_alt_alternatives 65
copy_icons_to_share
cleanup
add_bin_commands
use_system_xdg
install_deps
#if ! grep -q '^"/usr/bin/microsoft-edge"' $SPEC ; then
# subst 's|\(.*/usr/bin/microsoft-edge-beta.*\)|"/usr/bin/microsoft-edge"\n\1|' $SPEC
#fi
# fix wrong interpreter
epm assure patchelf || exit
for i in $BUILDROOT$PRODUCTDIR/libmip_*.so ; do
[ "$(a= patchelf --print-interpreter $i)" = "/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2" ] && a= patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 $i
done
...@@ -28,7 +28,7 @@ install_deps ...@@ -28,7 +28,7 @@ install_deps
# fix wrong interpreter # fix wrong interpreter
epm assure patchelf || exit epm assure patchelf || exit
for i in $BUILDROOT/opt/microsoft/msedge-dev/libmip_*.so ; do for i in $BUILDROOT$PRODUCTDIR/libmip_*.so ; do
[ "$(a= patchelf --print-interpreter $i)" = "/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2" ] && a= patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 $i [ "$(a= patchelf --print-interpreter $i)" = "/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2" ] && a= patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 $i
done done
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=microsoft-edge
PRODUCTCUR=microsoft-edge-stable
PRODUCTDIR=/opt/microsoft/msedge
. $(dirname $0)/common-chromium-browser.sh
set_alt_alternatives 65
copy_icons_to_share
cleanup
add_bin_commands
use_system_xdg
install_deps
#if ! grep -q '^"/usr/bin/microsoft-edge"' $SPEC ; then
# subst 's|\(.*/usr/bin/microsoft-edge-stable.*\)|"/usr/bin/microsoft-edge"\n\1|' $SPEC
#fi
# fix wrong interpreter
epm assure patchelf || exit
for i in $BUILDROOT$PRODUCTDIR/libmip_*.so ; do
[ "$(a= patchelf --print-interpreter $i)" = "/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2" ] && a= patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 $i
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment