-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use 7zip for addon.zip creation #1821
Conversation
scripts/create_addon
Outdated
@@ -56,7 +56,7 @@ pack_addon() { | |||
fi | |||
cd $ADDON_BUILD | |||
echo "*** compressing Addon $PKG_ADDON_ID ... ***" | |||
zip -rq $PKG_ADDON_ID-$ADDONVER.zip $PKG_ADDON_ID; | |||
$TOOLCHAIN/bin/7za a -l -mx9 -bsp0 -bso0 $PKG_ADDON_ID-$ADDONVER.zip $PKG_ADDON_ID; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any special reason for ; character at the end of line?
Also why doesn't we store symbolic links as links? Is kodi even capable to extract them correctly? I think this could save space in some cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Symbolic links save space indeed but Kodi can't handle them. It unpacks symlinks as regular files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But even in this case addon itself is smaller. Which is good.
Anyway, replacing zip with 7za seems ok to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vpeter4 Any special reason for ; character at the end of line?
it works with or without - the old version had it too, idk if it was some workaround or something (I can drop if you like)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is present from start as I can see. I think you should remove it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vpeter4 done
2f3f16a
to
40979ee
Compare
updated pr, added |
40979ee
to
6b5ebac
Compare
@MilhouseVH rebased |
Good, closing my pr. |
Use our own build 7z to create the addon.zip files.
We still use plain zip (kodi understands nothing else then very basic deflate) as archive.
Somehow 7zip does a better job at compressing zip files, we got an slight saving of 2-5% file size (more or less, depending of compressed addon).
It is not too much but the saving is for basically free.
opinions @kszaq @vpeter4 @MilhouseVH ?