2021-09-20 11:24:11 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-09-25 16:24:03 +02:00
|
|
|
[ ! -f calibre-plugin/asn1crypto.zip ] && ./package_modules.sh
|
|
|
|
[ ! -f calibre-plugin/oscrypto.zip ] && ./package_modules.sh
|
2021-09-20 11:24:11 +02:00
|
|
|
|
|
|
|
pushd calibre-plugin
|
2021-11-25 09:15:37 +01:00
|
|
|
pushd keyextract
|
2021-11-20 14:14:59 +01:00
|
|
|
|
2021-12-16 22:26:44 +01:00
|
|
|
# Compile C programs:
|
2021-11-20 14:14:59 +01:00
|
|
|
make
|
|
|
|
|
|
|
|
popd
|
2021-09-20 11:24:11 +02:00
|
|
|
|
2021-12-19 22:13:19 +01:00
|
|
|
# Delete cache
|
|
|
|
rm -r __pycache__
|
|
|
|
|
2021-12-16 22:26:44 +01:00
|
|
|
# Set module ID. This needs to be changed if any of the module ZIPs change.
|
2021-12-19 11:24:48 +01:00
|
|
|
echo -n "2021-12-19-03" > module_id.txt
|
2021-12-15 10:09:52 +01:00
|
|
|
|
2021-12-16 22:26:44 +01:00
|
|
|
# Copy LICENSE so it'll be included in the ZIP.
|
|
|
|
cp ../LICENSE LICENSE
|
|
|
|
|
|
|
|
# Create ZIP file from calibre-plugin folder.
|
2021-09-20 11:24:11 +02:00
|
|
|
zip -r ../calibre-plugin.zip *
|
|
|
|
|
|
|
|
popd
|
|
|
|
|