Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
microsoft-edge-dev-bin patch
From 13c2054ae99cf4c1587d9c6f2058d0ae18db3cc3 Mon Sep 17 00:00:00 2001
From: intrnl <intrnl28+git@gmail.com>
Date: Wed, 21 Oct 2020 17:08:08 +0700
Subject: [PATCH 1/2] fix indent
---
PKGBUILD | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
index 776707f..4b5b046 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,31 +24,31 @@ _channel=dev
source=("https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/${_pkgname}_${pkgver}-1_amd64.deb"
"Microsoft Standard Application License Terms - Standalone (free) Use Terms.pdf")
sha256sums=('ffd002c232bfb54f23648bd56e4bec60c74eae35c19f1e45c15e84a2a114d3e1'
- 'edf2ed596eb068f168287fc76aa713ad5e0afb59f0a0a47a4f29c0c124ade15e')
+ 'edf2ed596eb068f168287fc76aa713ad5e0afb59f0a0a47a4f29c0c124ade15e')
package() {
bsdtar -xf data.tar.xz -C "$pkgdir/"
- # suid sandbox
- chmod 4755 "${pkgdir}/opt/microsoft/${_pkgshortname}/msedge-sandbox"
+ # suid sandbox
+ chmod 4755 "${pkgdir}/opt/microsoft/${_pkgshortname}/msedge-sandbox"
- # 256 and 24 are proper colored icons
- for res in 128 64 48 32; do
- convert "${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_256_dev.png" \
- -resize ${res}x${res} \
- "${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_${res}_dev.png"
- done
- for res in 22 16; do
- convert "${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_24_dev.png" \
- -resize ${res}x${res} \
- "${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_${res}_dev.png"
- done
+ # 256 and 24 are proper colored icons
+ for res in 128 64 48 32; do
+ convert "${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_256_dev.png" \
+ -resize ${res}x${res} \
+ "${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_${res}_dev.png"
+ done
+ for res in 22 16; do
+ convert "${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_24_dev.png" \
+ -resize ${res}x${res} \
+ "${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_${res}_dev.png"
+ done
- # install icons
- for res in 16 22 24 32 48 64 128 256; do
- install -Dm644 "${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_${res}_dev.png" \
- "${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/${_pkgname}.png"
- done
+ # install icons
+ for res in 16 22 24 32 48 64 128 256; do
+ install -Dm644 "${pkgdir}/opt/microsoft/${_pkgshortname}/product_logo_${res}_dev.png" \
+ "${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/${_pkgname}.png"
+ done
# License
install -Dm644 'Microsoft Standard Application License Terms - Standalone (free) Use Terms.pdf' "${pkgdir}/usr/share/licenses/${_pkgname}/Microsoft Standard Application License Terms - Standalone (free) Use Terms.pdf"
--
2.29.0
From 4944b6de6a1fcb0125ad668a3fd32a335f41c354 Mon Sep 17 00:00:00 2001
From: intrnl <intrnl28+git@gmail.com>
Date: Wed, 21 Oct 2020 17:09:14 +0700
Subject: [PATCH 2/2] install launcher
---
PKGBUILD | 9 +++++++--
microsoft-edge-dev.sh | 10 ++++++++++
2 files changed, 17 insertions(+), 2 deletions(-)
create mode 100644 microsoft-edge-dev.sh
diff --git a/PKGBUILD b/PKGBUILD
index 4b5b046..bce66a0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,13 +22,18 @@ optdepends=('libpipewire02: WebRTC desktop sharing under Wayland'
options=(!strip !zipman)
_channel=dev
source=("https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/${_pkgname}_${pkgver}-1_amd64.deb"
- "Microsoft Standard Application License Terms - Standalone (free) Use Terms.pdf")
+ "Microsoft Standard Application License Terms - Standalone (free) Use Terms.pdf"
+ 'microsoft-edge-dev.sh')
sha256sums=('ffd002c232bfb54f23648bd56e4bec60c74eae35c19f1e45c15e84a2a114d3e1'
- 'edf2ed596eb068f168287fc76aa713ad5e0afb59f0a0a47a4f29c0c124ade15e')
+ 'edf2ed596eb068f168287fc76aa713ad5e0afb59f0a0a47a4f29c0c124ade15e'
+ 'b49fbd2b1c1b9d8caa64b7fd67b38796286906f34852d44388ef23183c7c77a7')
package() {
bsdtar -xf data.tar.xz -C "$pkgdir/"
+ # launcher
+ install -m755 microsoft-edge-dev.sh "${pkgdir}/usr/bin/microsoft-edge-dev"
+
# suid sandbox
chmod 4755 "${pkgdir}/opt/microsoft/${_pkgshortname}/msedge-sandbox"
diff --git a/microsoft-edge-dev.sh b/microsoft-edge-dev.sh
new file mode 100644
index 0000000..5ed1f81
--- /dev/null
+++ b/microsoft-edge-dev.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+# Allow users to override command-line options
+if [[ -f $XDG_CONFIG_HOME/edge-dev-flags.conf ]]; then
+ EDGE_USER_FLAGS="$(cat $XDG_CONFIG_HOME/edge-dev-flags.conf)"
+fi
+
+exec /opt/microsoft/msedge-dev/microsoft-edge-dev $EDGE_USER_FLAGS "$@"
--
2.29.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.