FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cefpython/cefpython/cef3/linux/installer/debian.postinst at cefpython31 · lloves/cefpython · GitHub
lloves
cefpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cefpython
/
cefpython
/
cef3
/
linux
/
installer
/
debian.postinst
Copy path
More file actions
More file actions
Latest commit
History
History
History
44 lines (39 loc) · 1.65 KB
Breadcrumbs
cefpython
/
cefpython
/
cef3
/
linux
/
installer
/
debian.postinst
Copy path
File metadata and controls
44 lines (39 loc) · 1.65 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!
/bin/bash
#
Exit immediately if a command exits with a non-zero status
set
-e
#
Permissions for the executable files
chmod 755 /usr/share/pyshared/cefpython3/cefclient
chmod 755 /usr/share/pyshared/cefpython3/subprocess
#
Permissions for the examples - debug.log is created.
#
If you want to run the cefclient executable you may
#
also have to chmod 777 /usr/share/pyshared/cefpython3/.
chmod 666 /usr/share/pyshared/cefpython3/debug.log
chmod 666 /usr/share/pyshared/cefpython3/examples/debug.log
chmod 666 /usr/share/pyshared/cefpython3/examples/wx/debug.log
#
Check if libudev.so.0 exists and if not, create
#
a symbolic link to libudev.so.1. See issues 145
#
and 105 in the CEFPython Issue Tracker.
#
-- Sequence of these dirs does matter, on first
#
-- match searching should be stopped.
declare
-a libdirs=(
"
/lib/x86_64-linux-gnu
"
"
/usr/lib64
"
"
/lib/i386-linux-gnu
"
"
/usr/lib
"
)
for
libdir
in
"
${libdirs[@]}
"
do
libudev_1=
"
$libdir
/libudev.so.1
"
libudev_0=
"
$libdir
/libudev.so.0
"
if
[
-f
$libudev_1
]
&&
!
[
-f
$libudev_0
]
;
then
echo
"
ln -sf
$libudev_1
$libudev_0
"
ln -sf
"
$libudev_1
"
"
$libudev_0
"
break
fi
done
#
This creates symbolic links in /usr/lib/pymodules/.../cefpython3/
#
for all the files. This is no more required, as in make-deb.py
#
we're modify the deb archive and moving the /usr/lib/pyshared/.../
#
.so files to the /usr/share/pyshared/.../ directory. Read the
#
comments in make-deb.py why it needs to be done so.
#
Let's keep the creation of symlinks for backwards compatibility.
if
which update-python-modules
>
/dev/null
2>&1
;
then
update-python-modules python-cefpython3.public
fi
Back
|
FazBrowse Home
|
New Git URL