forked from FilBot3/com.vmware.HorizonClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.vmware.HorizonClient.yaml
61 lines (59 loc) · 3.05 KB
/
com.vmware.HorizonClient.yaml
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
---
app-id: com.vmware.HorizonClient
runtime: org.gnome.Platform
runtime-version: '42'
sdk: org.gnome.Sdk
desktop-file-name-suffix: ' (Flatpak)'
command: vmware-view
build-options:
env:
TERM: dumb
VMWARE_EULAS_AGREED: yes
finish-args:
- --share=network
- --socket=x11
- --socket=pulseaudio
- --device=dri
- --env=GTK_THEME=Adwaita
- --device=all
- --persist=.vmware
- --filesystem=xdg-public-share
modules:
- name: libudev1
buildsystem: autotools
sources:
- type: archive
url: https://github.com/gentoo/eudev/archive/v3.2.11.tar.gz
sha256: dcfc482099f3fdfcfdb9aeabbc4d609877cf4d2d0407f50ab0c59d43fff44f92
- name: vmware-horizon-client
buildsystem: simple
sources:
- type: file
url: https://download3.vmware.com/software/CART23FQ3_LIN_2209_TARBALL/VMware-Horizon-Client-Linux-2209-8.7.0-20616018.tar.gz
sha256: 222b645318cb67484a68810fae1209041462c1c8fb2b3e1a45f219dfba57c374
dest-filename: VMware-Horizon-Linux.tar.gz
- type: file
path: com.vmware.HorizonClient.appdata.xml
build-commands:
- mkdir MainFiles
- tar -xf "VMware-Horizon-Linux.tar.gz" -C MainFiles --strip-components 1
- cd MainFiles/x64/ && for f in *; do tar -xf "$f" -C /app/ --strip-components 1; done && cd ..
- mkdir -p "/app/share/icons/hicolor/64x64/apps/"
- mv "/app/share/icons/vmware-view.png" "/app/share/icons/hicolor/64x64/apps/com.vmware.HorizonClient.png"
- mv "/app/share/applications/vmware-view.desktop" "/app/share/applications/com.vmware.HorizonClient.desktop"
- sed -i 's+/usr/share/icons/vmware-view.png+com.vmware.HorizonClient+' "/app/share/applications/com.vmware.HorizonClient.desktop"
- sed -i 's+/usr+/app+' "/app/bin/vmware-view"
- sed -i 's+vm_append_to_library_path "$html5mmrlibPath"+vm_append_to_library_path "$html5mmrlibPath"\n vm_append_to_library_path "/app/lib"+' "/app/bin/vmware-view"
- sed -i 's+/usr+/app+' "/app/bin/vmware-view-lib-scan"
- sed -i 's+/usr+/app+' "/app/bin/vmware-url-filter"
- sed -i 's/\/usr/\/app/' "/app/bin/vmware-view-log-collector"
- sed -i 's+/usr+/app+' "/app/lib/vmware/view/bin/vmware-view" # Relink the main binary
- sed -i 's+/usr+/app+' "/app/lib/vmware/view/env/env_utils.sh"
- sed -i 's+/usr+/app+' "/app/lib/vmware/view/dct/vmware-view-log-collector"
- sed -i 's+/usr+/app+' "/app/lib/vmware/view/dct/configFiles/Client.json"
- sed -i 's+/usr+/app+' "/app/lib/vmware/view/dct/configFiles/Virtual_Channel/VDPService.json"
- for f in `find /app/lib/vmware/ -not -type d`; do sed -i 's+/usr+/app+' "$f" && sed -i 's+/usr+/app+' "$f" && sed -i 's+/usr+/app+' "$f"; done
- for f in /app/lib/vmware/view/dct/configFiles/Remote_Features/*; do sed -i 's/\/usr/\/app/' "$f"; done
- chmod +775 "/app/lib/vmware/libjson_linux-gcc-4.1.1_libmt.so" # So flatpak can compress the .so
- cd /app/lib/ && ln -s libudev.so.1 libudev.so.0
- install -Dm644 com.vmware.HorizonClient.appdata.xml "${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.appdata.xml"