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
811c4e12
Commit
811c4e12
authored
Mar 17, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm pack appimage: add support for AppDir instead of squashfs-root
parent
6a6494c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
epm-repack-rpm
bin/epm-repack-rpm
+1
-1
generic-appimage.sh
pack.d/generic-appimage.sh
+7
-4
generic-appimage.sh
repack.d/generic-appimage.sh
+2
-2
No files found.
bin/epm-repack-rpm
View file @
811c4e12
...
...
@@ -27,7 +27,7 @@ has_repack_script()
__apply_fix_code
()
{
local
repackcode
=
"
$EPM_REPACK_SCRIPTS_DIR
/
$1
.sh"
[
-s
"
$repackcode
"
]
||
return
[
-s
"
$repackcode
"
]
||
return
0
[
-f
"
$repackcode
.rpmnew"
]
&&
warning
'There is .rpmnew file(s) in $EPM_REPACK_SCRIPTS_DIR dir. The pack script can be outdated.'
shift
...
...
pack.d/generic-appimage.sh
View file @
811c4e12
...
...
@@ -34,9 +34,12 @@ if [ -z "$VERSION" ] ; then
[
-n
"
$VERSION
"
]
&&
VERSION
=
"
$(
echo
"
$VERSION
"
|
sed
-e
's|^v||'
)
"
fi
BASEDIR
=
"squashfs-root"
[
-L
"
$BASEDIR
"
]
&&
[
-d
"AppDir"
]
&&
BASEDIR
=
"AppDir"
# try get version from X-AppImage-Version
if
[
-z
"
$VERSION
"
]
;
then
DESKTOPFILE
=
"
$(
echo
squashfs-root
/
*
.desktop |
head
-n1
)
"
DESKTOPFILE
=
"
$(
echo
$BASEDIR
/
*
.desktop |
head
-n1
)
"
str
=
"
$(
grep
'^X-AppImage-Version=[0-9]'
$DESKTOPFILE
)
"
if
[
-n
"
$str
"
]
;
then
VERSION
=
"
$(
echo
$str
|
sed
-e
's|.*X-AppImage-Version=||'
)
"
...
...
@@ -60,9 +63,9 @@ upstream_file: $alpkg
generic_repack: appimage
EOF
chmod
og-w
-R
squashfs-root
chmod
a+rX
-R
squashfs-root
chmod
og-w
-R
$BASEDIR
chmod
a+rX
-R
$BASEDIR
erc pack
$PKGNAME
squashfs-root
erc pack
$PKGNAME
$BASEDIR
return_tar
$PKGNAME
repack.d/generic-appimage.sh
View file @
811c4e12
...
...
@@ -12,12 +12,12 @@ PRODUCTDIR=/opt/$PRODUCT
# move package to /opt
ROOTDIR
=
$(
basename
$(
find
$BUILDROOT
-mindepth
1
-maxdepth
1
-type
d
))
move_to_opt /
$ROOTDIR
move_to_opt /
$ROOTDIR
||
fatal
fix_chrome_sandbox
cd
$BUILDROOT$PRODUCTDIR
cd
$BUILDROOT$PRODUCTDIR
||
fatal
# TODO
if
false
;
then
...
...
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