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 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) 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 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