Skip to content

Commit

Permalink
Compress JDK 17 modules file to decompress on build
Browse files Browse the repository at this point in the history
  • Loading branch information
machawk1 committed Oct 3, 2024
1 parent 257536b commit 50e8b98
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Binary file not shown.
11 changes: 11 additions & 0 deletions bundledApps/MAKEFILE.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ mvWARCsBackFromTemp ()
fi
}

# JDK 17's modules file is > 100 MB, which doesn't play well with Git, decompress it in-place here
decompressJDKModules ()
{
echo "Decompressing JDK 17 modules file for Heritrix"
cd ./bundledApps/Java/JavaVirtualMachines/jdk17.0.11.jdk/Contents/Home/lib/
unzip ./modules.zip
rm -rf ./modules.zip
cd -
}

mvProducts ()
{
echo "Moving WAIL.app to /Applications"
Expand Down Expand Up @@ -181,6 +191,7 @@ makeWAIL ()
createBinary
mvWARCsToTemp
deleteBinary # Remove previous version
decompressJDKModules
optimizeforMac
mvProducts
cleanupByproducts
Expand Down
2 changes: 1 addition & 1 deletion bundledApps/WAIL.py
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,7 @@ def generate_cdx():
cdx_file_path = (
f"{cdx_file_path_pre}"
f"{file.replace('.warc', '.cdx')}")

process = subprocess.Popen(
[cdx_indexer_path, join(warcs_path, file), cdx_file_path],
stdout=PIPE,
Expand Down

0 comments on commit 50e8b98

Please sign in to comment.