Skip to content

Instantly share code, notes, and snippets.

@farribeiro
Created July 14, 2022 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save farribeiro/b26f9dacbf3e04bbe94fbede07b0808b to your computer and use it in GitHub Desktop.
Save farribeiro/b26f9dacbf3e04bbe94fbede07b0808b to your computer and use it in GitHub Desktop.
app-id: org.balena.etcher
runtime: org.freedesktop.Platform
runtime-version: '21.08'
base: org.electronjs.Electron2.BaseApp
base-version: '21.08'
sdk: org.freedesktop.Sdk
rename-desktop-file: balena-etcher-electron.desktop
rename-icon: balena-etcher-electron
command: etcher-run
finish-args:
- --share=network
- --share=ipc
- --socket=x11
- --device=all
- --filesystem=host
modules:
- name: balena
buildsystem: simple
build-commands:
- ar x balena*.deb
- rm -f balena*.deb
- tar xf data.tar.bz2
- rm -f control.tar.bz2 data.tar.xz debian-binary
- mkdir -p /app/bin
- cp -r opt/balenaEtcher /app
- cp -r usr/share/* /app/share
- sed -i "s/\/opt\/balenaEtcher\/balena-etcher-electron/etcher-run/g" /app/share/applications/balena-etcher-electron.desktop
- install -D etcher-run -t /app/bin
sources:
- type: script
dest-filename: etcher-run
commands:
- zypak-wrapper /app/balenaEtcher/balena-etcher-electron "$@"
- type: file
url: https://github.com/balena-io/etcher/releases/download/v1.7.9/balena-etcher-electron_1.7.9_amd64.deb
sha256: 941a03678408b67f7b2b6d3dad48a3e1070eadb53af561c292d7da93b26a91e5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment