From f5f9025d6db248a8774ff6c9bb9d2afebda6cc3b Mon Sep 17 00:00:00 2001 From: Ken Bannister Date: Wed, 30 Mar 2022 15:23:25 -0400 Subject: [PATCH 1/4] Fix application directory for Debian postinst script Change-type: patch Signed-off-by: Ken Bannister --- after-install.tpl | 11 +++++++++++ electron-builder.yml | 1 + 2 files changed, 12 insertions(+) create mode 100644 after-install.tpl diff --git a/after-install.tpl b/after-install.tpl new file mode 100644 index 00000000..216ed734 --- /dev/null +++ b/after-install.tpl @@ -0,0 +1,11 @@ +#!/bin/bash + +# Link to the binary +# Must hardcode balenaEtcher directory; no variable available +ln -sf '/opt/balenaEtcher/${executable}' '/usr/bin/${executable}' + +# SUID chrome-sandbox for Electron 5+ +chmod 4755 '/opt/balenaEtcher/chrome-sandbox' || true + +update-mime-database /usr/share/mime || true +update-desktop-database /usr/share/applications || true diff --git a/electron-builder.yml b/electron-builder.yml index 93ded952..7d17fd6b 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -87,6 +87,7 @@ deb: - libxss1 - libxtst6 - polkit-1-auth-agent | policykit-1-gnome | polkit-kde-1 + afterInstall: "./after-install.tpl" rpm: depends: - util-linux From 350d4de32ba0739b0ad1c2dc0b0b98eecf41f8f9 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Sat, 19 Mar 2022 01:56:17 +0000 Subject: [PATCH 2/4] patch: fix usb-device-boot link in README Change-type: patch --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 39c4d687..3f0c9056 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Etcher is a powerful OS image flasher built with web technologies to ensure flashing an SDCard or USB drive is a pleasant and safe experience. It protects you from accidentally writing to your hard-drives, ensures every byte of data -was written correctly, and much more. It can also directly flash Raspberry Pi devices that support [USB device boot mode](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/device.md). +was written correctly, and much more. It can also directly flash Raspberry Pi devices that support [USB device boot mode](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#usb-device-boot-mode). [![Current Release](https://img.shields.io/github/release/balena-io/etcher.svg?style=flat-square)](https://balena.io/etcher) [![License](https://img.shields.io/github/license/balena-io/etcher.svg?style=flat-square)](https://github.com/balena-io/etcher/blob/master/LICENSE) From c87a132f40b41c28d2375c7489d66ad4a6914355 Mon Sep 17 00:00:00 2001 From: Peter Makra <6892971+mcraa@users.noreply.github.com> Date: Fri, 22 Apr 2022 11:21:44 +0200 Subject: [PATCH 3/4] patch: add update notification --- repo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo.yml b/repo.yml index 5c0fe784..f9ab959c 100644 --- a/repo.yml +++ b/repo.yml @@ -6,7 +6,7 @@ sentry: team: resinio type: electron triggerNotification: - version: 1.7.8 + version: 1.7.9 stagingPercentage: 100 upstream: - repo: etcher-sdk From 61610ded842caba47c6a682afcb08aa0fda4e86b Mon Sep 17 00:00:00 2001 From: mcraa <6892971+mcraa@users.noreply.github.com> Date: Fri, 22 Apr 2022 15:08:04 +0200 Subject: [PATCH 4/4] patch: update allowed extensions to include deb afterinstall in build --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 3f17f049..faf9cb50 100644 --- a/.gitattributes +++ b/.gitattributes @@ -27,6 +27,7 @@ Makefile text *.yml text *.patch text *.txt text +*.tpl text CODEOWNERS text *.plist text