Первый релиз скрипта сборки AppImage

This commit is contained in:
Alexander Zhirov 2024-03-12 02:55:36 +03:00
commit 8b0a2d5f91
15 changed files with 424 additions and 0 deletions

5
src/apps/horizon/build.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
patches="${current_path}/patches"
patch -d ${app_path} -p0 < ${patches}/vmware-view.patch

21
src/apps/horizon/files/AppRun Executable file
View file

@ -0,0 +1,21 @@
#!/bin/sh
export LD_LIBRARY_PATH="usr/lib;usr/lib/x86_64-linux-gnu;"
readlink_file() {
next_path=$1
i=0
while [ "$i" != 10 ] && [ "x$next_path" != "x$path" ]; do
path=$next_path
next_path=$(readlink "$path" || echo $path)
((++i))
done
echo "$path"
}
basedir() {
file=$(readlink -f "$1") || $(readlink_file "$1")
echo $(cd "$(dirname "$file")" && pwd -P)
}
cd "$(basedir "$0")" && usr/bin/vmware-view

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Icon=vmware-view
Exec=vmware-view %u
MimeType=x-scheme-handler/vmware-view
Categories=Network;
Name=VMware Horizon Client

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View file

@ -0,0 +1,44 @@
--- usr/bin/vmware-view 2024-01-19 03:02:08.000000000 -0500
+++ usr/bin/vmware-view 2024-02-26 02:41:04.027931625 -0500
@@ -5,18 +5,18 @@
# This script manages the VMware Horizon Client
#
-libpath="/usr/lib/vmware"
-binPath="/usr/lib/vmware/view"
+libpath="usr/lib/vmware"
+binPath="usr/lib/vmware/view"
html5mmrlibPath="$libpath/view/html5mmr"
usbdlibPath="$libpath/view/usb"
-vdp_servicePath="/usr/lib/pcoip/vchan_plugins"
+vdp_servicePath="usr/lib/pcoip/vchan_plugins"
libtsdrClient="$libpath/view/vdpService/libtsdrClient.so"
-snapPath="/snap/gnome-system-monitor/current/usr/lib/x86_64-linux-gnu"
+snapPath="snap/gnome-system-monitor/current/usr/lib/x86_64-linux-gnu"
pid_self=$$
# Set media provider install path base on $VMWARE_HORIZON_MEDIA_PROVIDER_PATH
if [[ "$VMWARE_HORIZON_MEDIA_PROVIDER_PATH" = "" ]]; then
- mediaproviderPath="/usr/lib/vmware/mediaprovider"
+ mediaproviderPath="usr/lib/vmware/mediaprovider"
else
mediaproviderPath="$VMWARE_HORIZON_MEDIA_PROVIDER_PATH"
fi
@@ -36,7 +36,7 @@
# Get the home path
homePath=
if [[ $HOME = "" ]]; then
- homePath="/home/$user"
+ homePath="home/$user"
else
homePath=$HOME
fi
@@ -104,7 +104,7 @@
echo $stdin_arg | "$binPath/bin/$binFile" "$@"
fi
else
- echo "File not exists:/usr/lib/vmware/view/bin/$binFile"
+ echo "File not exists:usr/lib/vmware/view/bin/$binFile"
exit 1
fi

2
src/apps/horizon/sources Normal file
View file

@ -0,0 +1,2 @@
https://download3.vmware.com/software/CART24FQ4_LIN64_DebPkg_2312/VMware-Horizon-Client-2312-8.12.0-23149323.x64.deb
http://ftp.debian.org/debian/pool/main/libu/libudev0-shim/libudev0_200-1_amd64.deb

15
src/apps/icaclient/build.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
lang="ru"
# Удаление ссылок
find ${app_path}/opt/Citrix/ICAClient/config -type l -exec unlink {} \;
# Перенос конфигурации в стандартную директорию
cp -vf ${app_path}/opt/Citrix/ICAClient/nls/${lang}.UTF-8/eula.txt ${app_path}/opt/Citrix/ICAClient
mv -vf ${app_path}/etc/icaclient/config/* ${app_path}/opt/Citrix/ICAClient/config
cp -rv ${app_path}/opt/Citrix/ICAClient/nls/${lang}/* ${app_path}/opt/Citrix/ICAClient/config
mv -vf ${app_path}/etc/icaclient/nls/${lang}/module.ini ${app_path}/opt/Citrix/ICAClient/config
# Удаление ненужных директорий
rm -rvf ${app_path}/etc ${app_path}/usr/share ${app_path}/lib/systemd

21
src/apps/icaclient/files/AppRun Executable file
View file

@ -0,0 +1,21 @@
#!/bin/sh
export LD_LIBRARY_PATH="lib/x86_64-linux-gnu;lib;lib64;usr/lib;usr/lib/x86_64-linux-gnu;"
readlink_file() {
next_path=$1
i=0
while [ "$i" != 10 ] && [ "x$next_path" != "x$path" ]; do
path=$next_path
next_path=$(readlink "$path" || echo $path)
((++i))
done
echo "$path"
}
basedir() {
file=$(readlink -f "$1") || $(readlink_file "$1")
echo $(cd "$(dirname "$file")" && pwd -P)
}
cd "$(basedir "$0")" && LD_PRELOAD=usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 opt/Citrix/ICAClient/selfservice --icaroot opt/Citrix/ICAClient

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=Citrix Workspace
Icon=receiver
Categories=Network;
Exec=opt/Citrix/ICAClient/selfservice --icaroot opt/Citrix/ICAClient

View file

@ -0,0 +1,24 @@
https://ftp.zhirov.kz/repositories/other/corporate/icaclient_23.11.0.82_amd64.deb
http://security.debian.org/debian-security/pool/updates/main/w/webkit2gtk/libwebkit2gtk-4.0-37_2.42.5-1~deb12u1_amd64.deb
http://security.debian.org/debian-security/pool/updates/main/w/webkit2gtk/libjavascriptcoregtk-4.0-18_2.42.5-1~deb12u1_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/i/icu/libicu72_72.1-3_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/g/gst-plugins-bad1.0/libgstreamer-plugins-bad1.0-0_1.22.0-4+deb12u5_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_2.1.5-2_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/liba/libavif/libavif15_0.11.1-1_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/libm/libmanette/libmanette-0.2-0_0.2.6-3+b1_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/d/dav1d/libdav1d6_1.0.0-2_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/libg/libgav1/libgav1-1_0.18.0-1+b1_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/r/rust-rav1e/librav1e0_0.5.1-6_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/s/svt-av1/libsvtav1enc1_1.4.1+dfsg-1_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/a/aom/libaom3_3.6.0-1_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/liby/libyuv/libyuv0_0.0~git20230123.b2528b0-1_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/a/abseil/libabsl20220623_20220623.1-1_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/g/gcc-12/libstdc++6_12.2.0-14_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/g/glib2.0/libglib2.0-0_2.74.6-2_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/libs/libselinux/libselinux1_3.4-1+b6_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/libf/libffi/libffi8_3.4.4-1_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/g/gstreamer1.0/libgstreamer1.0-0_1.22.0-2_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/g/gst-plugins-base1.0/libgstreamer-plugins-base1.0-0_1.22.0-3+deb12u1_amd64.deb
http://ftp.ru.debian.org/debian/pool/main/g/gst-plugins-base1.0/libgstreamer-gl1.0-0_1.22.0-3+deb12u1_amd64.deb
# http://ftp.ru.debian.org/debian/pool/main/libs/libsecret/libsecret-1-0_0.20.5-3_amd64.deb
# http://ftp.ru.debian.org/debian/pool/main/a/at-spi2-core/libatk-bridge2.0-0_2.46.0-5_amd64.deb