forked from justdan96/tsMuxer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrebuild_linux_with_gui_docker.sh
More file actions
executable file
·45 lines (35 loc) · 1.08 KB
/
rebuild_linux_with_gui_docker.sh
File metadata and controls
executable file
·45 lines (35 loc) · 1.08 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
rm -rf build
mkdir build
cd build
cmake -DTSMUXER_GUI=ON -DTSMUXER_STATIC_BUILD=ON ../
make
cp tsMuxer/tsmuxer ../bin/tsMuxeR
cp tsMuxerGUI/tsMuxerGUI ../bin/tsMuxerGUI
cd ..
rm -rf build
mkdir ./bin/lnx
mv ./bin/tsMuxeR ./bin/lnx/tsMuxeR
# create AppImage of the GUI
mkdir -p ./bin/lnx/AppDir/usr/share/applications
mkdir -p ./bin/lnx/AppDir/usr/share/icons/hicolor/32x32/apps
mkdir -p ./bin/lnx/AppDir/usr/bin
cp ./bin/lnx/tsMuxeR ./bin/lnx/AppDir/usr/bin/
mv ./bin/tsMuxerGUI ./bin/lnx/AppDir/usr/bin/tsMuxerGUI
cp ./tsMuxerGUI/images/icon.png ./bin/lnx/AppDir/usr/share/icons/hicolor/32x32/apps/tsMuxerGUI.png
cat << EOF > ./bin/lnx/AppDir/usr/share/applications/tsmuxergui.desktop
[Desktop Entry]
Name=tsMuxerGUI
Comment=tsMuxerGUI
Exec=tsMuxerGUI
Icon=tsMuxerGUI
Terminal=false
Type=Application
Categories=AudioVideo;
StartupNotify=true
EOF
cd ./bin/lnx
/opt/linuxdeploy/usr/bin/linuxdeploy --appdir AppDir --plugin qt --output appimage
cd ../..
rm -rf ./bin/lnx/AppDir
zip -r ./bin/lnx.zip ./bin/lnx
ls ./bin/lnx/tsMuxeR && ls ./bin/lnx/tsMuxerGUI-*-x86_64.AppImage && ls ./bin/lnx.zip