Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
898eb52c
Commit
898eb52c
authored
Feb 08, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack rustdesk: support repacking 1.1.9 and nightly 1.2.0
parent
9f60786b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
rustdesk.sh
repack.d/rustdesk.sh
+26
-4
No files found.
repack.d/rustdesk.sh
View file @
898eb52c
...
...
@@ -5,6 +5,8 @@ BUILDROOT="$1"
SPEC
=
"
$2
"
PRODUCT
=
rustdesk
# FIXME: move 1.2.0 to /opt
PRODUCTDIR
=
/usr/lib/
$PRODUCT
.
$(
dirname
$0
)
/common.sh
...
...
@@ -16,13 +18,35 @@ cp $BUILDROOT/usr/share/rustdesk/files/systemd/rustdesk.service $BUILDROOT/etc/s
remove_dir /usr/share/rustdesk/files/systemd
pack_file /etc/systemd/system/
$PRODUCT
.service
# TODO
# if [[ "$parsedVersion" -gt "360" ]]; then
# sudo -H pip3 install pynput
remove_file /usr/share/rustdesk/files/pynput_service.py
# filter_from_requires "python3(pynput.*"
VERSION
=
$(
grep
"^Version:"
$SPEC
|
sed
-e
"s|Version: ||"
)
if
[
"
$VERSION
"
=
"1.1.9"
]
;
then
echo
"Note: use 1.1.9 compatibility script"
echo
"Categories=GNOME;GTK;Network;RemoteAccess;"
>>
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
# thread 'main' panicked at 'error: 'libsciter-gtk.so' was not found neither in PATH nor near the current executable.
#move_to_opt /usr/lib/rustdesk
#mv $BUILDROOT/usr/bin/$PRODUCT $BUILDROOT/$PRODUCTDIR
#pack_file $PRODUCTDIR/$PRODUCT
#add_bin_exec_command
#remove_dir /usr/lib
epm assure patchelf
||
fatal
for
i
in
$BUILDROOT
/
$PRODUCTDIR
/
$PRODUCT
;
do
a
=
patchelf
--set-rpath
'$ORIGIN'
$i
||
continue
done
epm
install
glib2 libappindicator-gtk3 libcairo libgdk-pixbuf libgtk+3 libpango libpulseaudio libuuid libX11 libXau libxcb libXdmcp libXfixes libXtst xdotool
exit
fi
#### 1.2.0 and above
subst
"s|^Categories.*|Categories=GNOME;GTK;Network;RemoteAccess;|"
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
subst
"s|/usr/share/rustdesk/files/rustdesk.png|
$PRODUCT
|"
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
...
...
@@ -31,11 +55,9 @@ mkdir -p $BUILDROOT/usr/share/pixmaps/
cp
$BUILDROOT
/usr/share/rustdesk/files/rustdesk.png
$BUILDROOT
/usr/share/pixmaps/
$ICONFILE
pack_file /usr/share/pixmaps/
$ICONFILE
move_to_opt /usr/lib/rustdesk
#
move_to_opt /usr/lib/rustdesk
add_bin_link_command
remove_dir /usr/lib
epm assure patchelf
||
fatal
for
i
in
$BUILDROOT
/
$PRODUCTDIR
/lib/
*
.so
;
do
a
=
patchelf
--set-rpath
'$ORIGIN/'
$i
||
continue
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment