-
-
Notifications
You must be signed in to change notification settings - Fork 122
/
create_appimage.sh
28 lines (21 loc) · 1.56 KB
/
create_appimage.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash -x
export X_SOURCE_PATH=$PWD
export X_RELEASE_VERSION=$(cat "release_version.txt")
export VERSION=$X_RELEASE_VERSION
source build_tools/linux.sh
create_image_app_dir xelfviewer
cp -f $X_SOURCE_PATH/build/release/xelfviewer $X_SOURCE_PATH/release/appDir/usr/bin/
cp -f $X_SOURCE_PATH/LINUX/xelfviewer.desktop $X_SOURCE_PATH/release/appDir/usr/share/applications/
sed -i "s/#VERSION#/1.0/" $X_SOURCE_PATH/release/appDir/usr/share/applications/xelfviewer.desktop
cp -Rf $X_SOURCE_PATH/LINUX/hicolor/ $X_SOURCE_PATH/release/appDir/usr/share/icons/
cp -Rf $X_SOURCE_PATH/XStyles/qss/ $X_SOURCE_PATH/release/appDir/usr/lib/xelfviewer/
cp -Rf $X_SOURCE_PATH/XInfoDB/info/ $X_SOURCE_PATH/release/appDir/usr/lib/xelfviewer/
cp -Rf $X_SOURCE_PATH/Detect-It-Easy/db/ $X_SOURCE_PATH/release/appDir/usr/lib/xelfviewer/
mkdir -p $X_SOURCE_PATH/release/appDir/usr/lib/xelfviewer/signatures
cp -f $X_SOURCE_PATH/signatures/crypto.db $X_SOURCE_PATH/release/appDir/usr/lib/xelfviewer/signatures/
cp -Rf $X_SOURCE_PATH/images/ $X_SOURCE_PATH/release/appDir/usr/lib/xelfviewer/
cd $X_SOURCE_PATH/release
linuxdeployqt $X_SOURCE_PATH/release/appDir/usr/share/applications/xelfviewer.desktop -appimage -always-overwrite
#mv *.AppImage die_${X_RELEASE_VERSION}.AppImage
cd $X_SOURCE_PATH
rm -Rf $X_SOURCE_PATH/release/appDir