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
57ebab0f
Commit
57ebab0f
authored
Mar 24, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack generic-appimage.sh: fix icon packing
parent
54034920
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
generic-appimage.sh
repack.d/generic-appimage.sh
+18
-8
No files found.
repack.d/generic-appimage.sh
View file @
57ebab0f
...
...
@@ -41,15 +41,24 @@ done
fi
DESKTOPFILE
=
"
$(
echo
*
.desktop |
head
-n1
)
"
ICONFILE
=
"
$(
cat
$DESKTOPFILE
|
grep
"^Icon"
|
head
-n1
|
sed
-e
's|Icon=||'
)
.png"
FROMICONFILE
=
''
mkdir
-p
$BUILDROOT
/usr/share/applications/
cat
$DESKTOPFILE
|
sed
-e
"s|AppRun|
$PRODUCT
|"
>
$BUILDROOT
/usr/share/applications/
$DESKTOPFILE
pack_file /usr/share/applications/
$DESKTOPFILE
if
[
-r
"
$DESKTOPFILE
"
]
;
then
mkdir
-p
$BUILDROOT
/usr/share/applications/
cat
$DESKTOPFILE
|
sed
-e
"s|AppRun|
$PRODUCT
|"
-e
's|X-AppImage-Integrate.*||'
>
$BUILDROOT
/usr/share/applications/
$DESKTOPFILE
pack_file /usr/share/applications/
$DESKTOPFILE
mkdir
-p
$BUILDROOT
/usr/share/pixmaps/
cp
$ICONFILE
$BUILDROOT
/usr/share/pixmaps/
pack_file /usr/share/pixmaps/
$ICONFILE
FROMICONFILE
=
"
$(
cat
$DESKTOPFILE
|
grep
"^Icon"
|
head
-n1
|
sed
-e
's|Icon=||'
)
.png"
fi
# it is strange, there is no icon file
# https://docs.appimage.org/reference/appdir.html
if
[
!
-s
"
$FROMICONFILE
"
]
;
then
FROMICONFILE
=
".DirIcon"
ICONFILE
=
"
$PRODUCT
.png"
grep
-q
"^<svg"
$FROMICONFILE
&&
ICONFILE
=
"
$PRODUCT
.svg"
fi
install_file
$PRODUCTDIR
/
$FROMICONFILE
/usr/share/pixmaps/
$ICONFILE
# hack for remove MacOS only stuffs
remove_dir
$(
find
$BUILDROOT
-type
d
-name
"*catalina*"
|
sed
-e
"s|
$BUILDROOT
||"
)
...
...
@@ -61,7 +70,8 @@ add_bin_exec_command $PRODUCT $PRODUCTDIR/AppRun
subst
"2iexport APPDIR=
$PRODUCTDIR
"
$BUILDROOT
/usr/bin/
$PRODUCT
subst
'1iAutoProv:no'
$SPEC
subst
'1iAutoReq:yes,nopython,nomono,nomonolib'
$SPEC
#subst '1iAutoReq:yes,nopython,nomono,nomonolib' $SPEC
subst
'1iAutoReq:no'
$SPEC
# ignore embedded libs
drop_embedded_reqs
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