feat: add support for 7zz and dynamic binary selection in build script

This commit is contained in:
najdek committed 2026-06-05 16:52:52 +02:00
1 parent 5978f09206
commit 0508ad9ee0
1 file changed
+11 -2
+11 -2
View File
@@ -7,6 +7,15 @@ DATE=`date +"%Y%m%d_%H%M%S"`
echo $DATE
if command -v 7z > /dev/null; then
ZIP_BIN="7z"
elif command -v 7zz > /dev/null; then
ZIP_BIN="7zz"
else
echo "Error: 7z or 7zz not found."
exit 1
fi
if [ -d tmp ]; then
rm -rf tmp
fi
@@ -27,12 +36,12 @@ sed -i "" "s/0.1000.1000/$VERSION/" popup.html
mv manifest_firefox.json background_firefox.js load_firefox.js ../
7z a -tzip ../chrome.zip *
$ZIP_BIN a -tzip ../chrome.zip *
rm manifest.json
mv ../manifest_firefox.json manifest.json
mv ../background_firefox.js ../load_firefox.js ./
7z a -tzip ../firefox.zip *
$ZIP_BIN a -tzip ../firefox.zip *
cd ../../