Commit a3b5e629 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play xod-ide: fix downloading and repacking

parent 372f83eb
......@@ -10,7 +10,19 @@ URL="https://xod.io/"
warn_version_is_not_supported
PKGURL="https://www.googleapis.com/download/storage/v1/b/releases.xod.io/o/v0.38.0%2Fxod-client-electron-0.38.0.x86_64.rpm?generation=1615553616000093&alt=media"
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
# https://www.googleapis.com/download/storage/v1/b/releases.xod.io/o/v0.38.0%2Fxod-client-electron-0.38.0.x86_64.rpm?generation=1615553616000093&alt=media
mask="xod-client-electron*.x86_64.rpm*"
;;
*)
# https://www.googleapis.com/download/storage/v1/b/releases.xod.io/o/v0.38.0%2Fxod-client-electron_0.38.0_amd64.deb?generation=1615553616049782&alt=media
mask="xod-client-electron_*_amd64.deb*"
;;
esac
PKGURL=$(eget --list --latest https://xod.io/ "$mask") || fatal "Can't get package URL"
repack=''
[ "$(epm print info -s)" = "alt" ] && repack="--repack"
......
......@@ -10,12 +10,14 @@ PRODUCTDIR="/opt/XOD IDE"
. $(dirname $0)/common-chromium-browser.sh
add_bin_link_command
add_bin_exec_command
add_bin_link_command $PRODUCTCUR $PRODUCT
add_bin_link_command "xod-client" $PRODUCT
fix_desktop_file "/opt/XOD IDE"
# fix SIGTRAP
subst 's|"$@"|--no-sandbox "$@"|' usr/bin/$PRODUCT
fix_desktop_file "/opt/XOD IDE/xod-client-electron"
fix_chrome_sandbox
add_electron_deps
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment