Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
003d02fb
Commit
003d02fb
authored
Aug 20, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add balena-etcher
parent
abce728e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
balena-etcher.sh
play.d/balena-etcher.sh
+26
-0
balena-etcher.sh
repack.d/balena-etcher.sh
+16
-0
No files found.
play.d/balena-etcher.sh
0 → 100755
View file @
003d02fb
#!/bin/sh
PKGNAME
=
balena-etcher
SUPPORTEDARCHES
=
"x86_64"
VERSION
=
"
$2
"
DESCRIPTION
=
"Flash OS images to SD cards & USB drives, safely and easily"
URL
=
"https://etcher.io/"
.
$(
dirname
$0
)
/common.sh
pkgtype
=
$(
epm print info
-p
)
case
$pkgtype
in
rpm
)
mask
=
"balena-etcher-
${
VERSION
}
.x86_64.rpm"
;;
deb
)
mask
=
"balena-etcher_
${
VERSION
}
_amd64.deb"
;;
esac
PKGURL
=
$(
epm tool eget
--list
--latest
https://github.com/balena-io/etcher/releases
$mask
)
||
fatal
"Can't get package URL"
repack
=
''
[
"
$(
epm print info
-s
)
"
=
"alt"
]
&&
repack
=
'--repack'
epm
install
$repack
"
$PKGURL
"
repack.d/balena-etcher.sh
0 → 100755
View file @
003d02fb
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
balena-etcher
PRODUCTDIR
=
/opt/balenaEtcher
.
$(
dirname
$0
)
/common-chromium-browser.sh
add_bin_link_command
fix_desktop_file
fix_chrome_sandbox
add_electron_deps
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment