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
etersoft
eepm
Commits
5ddef69a
Commit
5ddef69a
authored
May 06, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm generic-default: improve link creation, desktop fixing, chrome-sandbox detection
parent
3df55322
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
generic-default.sh
repack.d/generic-default.sh
+17
-3
No files found.
repack.d/generic-default.sh
View file @
5ddef69a
#!/bin/sh -x
# Default repack script (used if a special script for target product is mi
e
ed)
# Default repack script (used if a special script for target product is mi
ss
ed)
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
...
...
@@ -13,12 +13,26 @@ PKG="$4"
# detect requires by libs
add_libs_requires
if
[
-f
"
$BUILDROOT
/
$PRODUCTDIR
/
$PRODUCT
"
]
;
then
# FIXME: hack for nonstandart name
pd
=
"
$(
echo
$BUILDROOT
/opt/
*)
"
[
-d
"
$pd
"
]
&&
PRODUCTDIR
=
"/opt/
$(
basename
"
$pd
"
)
"
if
[
-f
"
$BUILDROOT$PRODUCTDIR
/
$PRODUCT
"
]
;
then
add_bin_exec_command
fi
if
[
-f
$BUILDROOT
/usr/share/applications/
*
.desktop
]
;
then
EXEC
=
"
$(
cat
$BUILDROOT
/usr/share/applications/
*
.desktop |
grep
"^Exec="
|
head
-n1
|
sed
-e
's|Exec=||'
-e
's| .*||'
)
"
if
[
"/usr/bin/
$(
basename
"
$EXEC
"
)
"
=
"/usr/bin/
$PRODUCT
"
]
||
[
"
$EXEC
"
=
"
$PRODUCTDIR
/
$PRODUCT
"
]
;
then
if
[
-x
$BUILDROOT
/usr/bin/
$PRODUCT
]
;
then
fix_desktop_file
"
$EXEC
"
fi
fi
fi
# TODO: add product dir detection
if
[
-f
$PRODUCTDIR
/v8_context_snapshot.bin
]
;
then
if
[
-f
"
$BUILDROOT$PRODUCTDIR
/v8_context_snapshot.bin"
]
;
then
echo
"electron based application detected, adding requires for it ..."
add_electron_deps
fix_chrome_sandbox
fi
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