gitkraken.sh 714 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh -x

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

PRODUCT=gitkraken

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

rm -v ./usr/bin/gitkraken
add_bin_link_command

14
add_electron_deps
15 16 17 18 19 20

move_to_opt

fix_chrome_sandbox

fix_desktop_file /usr/share/gitkraken/gitkraken
21
fix_desktop_file /usr/bin/gitkraken
22 23 24 25 26

add_findreq_skiplist "$PRODUCTDIR/resources/app.asar.unpacked/node_modules/@axosoft/*/build/Release/*.node"
add_findreq_skiplist "$PRODUCTDIR/resources/app.asar.unpacked/node_modules/@msgpackr-extract/msgpackr-extract-linux-x64/*.node"

add_requires libXScrnSaver
27 28

# TODO: replace gitkraken/resources/app.asar.unpacked/git with system's one optionally?
29
#set_autoreq 'yes,noperl'