vinteo.desktop.sh 906 Bytes
Newer Older
1 2 3 4 5 6 7
#!/bin/sh -x

# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"

PRODUCT=vinteo.desktop
8
PRODUCTDIR=/opt/VinteoDesktop
9 10 11

. $(dirname $0)/common-chromium-browser.sh

12 13
add_bin_link_command

14
fix_desktop_file
15 16

fix_chrome_sandbox
17

18
add_electron_deps
19 20

add_findreq_skiplist "/opt/VinteoDesktop/resources/app.asar.unpacked/node_modules/@serialport/bindings-cpp/prebuilds/*/*.node"
21 22 23 24 25

case "$(epm print info -e)" in
    ALTLinux/p9)
        # bindings.node: /lib64/libc.so.6: version `GLIBC_2.28' not found
        echo "TODO: build node-serialport package if needed"
26 27 28
        remove_dir $PRODUCTDIR/resources/app.asar.unpacked/node_modules/@serialport/bindings-cpp/prebuilds/
        remove_dir $PRODUCTDIR/resources/app.asar.unpacked/node_modules/@serialport/bindings-cpp/build/
        remove_dir $PRODUCTDIR/resources/app.asar.unpacked/node_modules/@serialport/bindings-cpp/bin/
29 30
        ;;
esac
31