-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcreate-app
More file actions
93 lines (74 loc) · 2.61 KB
/
create-app
File metadata and controls
93 lines (74 loc) · 2.61 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/bash
echo "Make sure the following files exist with executable permissions is the same directory as this script"
echo "a) linuxdeploy-plugin-appimage-x86_64.AppImage"
echo "b) linuxdeploy-plugin-qt-x86_64.AppImage"
echo "c) linuxdeploy-x86_64.AppImage"
ls
echo "Removing old directory..."
rm -r simple-app
FILE=linuxdeploy-plugin-appimage-x86_64.AppImage
if test ! -f "$FILE"; then
echo "$FILE does not exist!"
return
fi
FILE=linuxdeploy-plugin-qt-x86_64.AppImage
if test ! -f "$FILE"; then
echo "$FILE does not exist!"
return
fi
FILE=linuxdeploy-x86_64.AppImage
if test ! -f "$FILE"; then
echo "$FILE does not exist!"
return
fi
FILE=app-files/simple.png
if test ! -f "$FILE"; then
echo "$FILE does not exist!"
return
fi
FILE=app-files/simple.desktop
if test ! -f "$FILE"; then
echo "$FILE does not exist!"
return
fi
echo "The app will be created in the folder: simple-app"
#dummy run of linux-deply just to create the folder structure
./linuxdeploy-x86_64.AppImage --appdir=simple-app --output appimage --plugin qt
cp app-files/simple.png simple-app/usr/share/icons/hicolor/256x256
cp app-files/simple.desktop simple-app/usr/share/applications
if [ ! -d "/usr/lib/x86_64-linux-gnu/qt5/plugins" ]
then
echo "Qt plugin directory does not exist on your filesystem at /usr/lib/x86_64-linux-gnu/qt5/plugins."
return
fi
#copying qt pluginss
cp -r /usr/lib/x86_64-linux-gnu/qt5/plugins/ simple-app/usr
#copying the simple executable
cp ../simple simple-app/usr/bin
echo "Checking if ROOT is configured..."
if [ -z "$ROOTSYS" ]
then
echo "\$ROOTSYS is empty"
return
else
echo "ROOT found at: $ROOTSYS"
cp -r $ROOTSYS/etc simple-app/usr
cp -r $ROOTSYS/fonts simple-app/usr
cp -r $ROOTSYS/include simple-app/usr
cp -r $ROOTSYS/icons simple-app/usr
cp -r $ROOTSYS/lib simple-app/usr
cp -r $ROOTSYS/bin simple-app/usr
echo "If you see errors after h2root, then install gfortran: sudo apt-get install gfortran"
echo "If the ROOT binary is directly downloaded from the website, then the following removals are required!"
rm simple-app/usr/bin/proofd
rm simple-app/usr/lib/libNetxNG.so
rm simple-app/usr/lib/libNetx.so
rm simple-app/usr/lib/libProofx.so
rm simple-app/usr/lib/libXrdProofd.so
rm simple-app/usr/lib/libGenetic.so
rm simple-app/usr/lib/libTMVA.so
rm simple-app/usr/lib/libEGPythia8.so
rm simple-app/usr/lib/libTMVAGui.so
fi
#real run of linux-deply just to create the folder structure
./linuxdeploy-x86_64.AppImage --appdir=simple-app --output appimage --plugin qt