forked from horsicq/XMachOViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
21 lines (18 loc) · 874 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash -x
export X_SOURCE_PATH=$PWD
if [ -z "$1" ]; then
X_PREFIX="/usr"
else
X_PREFIX="$1"
fi
mkdir -p $X_PREFIX/lib/bin
mkdir -p $X_PREFIX/lib/share/applications
mkdir -p $X_PREFIX/lib/share/icons
mkdir -p $X_PREFIX/lib/xmachoviewer
mkdir -p $X_PREFIX/lib/xmachoviewer/signatures
cp -f $X_SOURCE_PATH/build/release/xmachoviewer $X_PREFIX/bin/
cp -f $X_SOURCE_PATH/LINUX/xmachoviewer.desktop $X_PREFIX/share/applications/
cp -Rf $X_SOURCE_PATH/LINUX/hicolor/ $X_PREFIX/share/icons/
cp -Rf $X_SOURCE_PATH/XStyles/qss/ $X_PREFIX/lib/xmachoviewer/
cp -f $X_SOURCE_PATH/signatures/crypto.db $X_PREFIX/lib/xmachoviewer/signatures/
cp -Rf $X_SOURCE_PATH/images/ $X_PREFIX/lib/xmachoviewer/