Repackaging scriptΒΆ

  1. Save the following snippet as repack.sh:

#!/usr/bin/env bash
SW_PATH=$1
SW_DIR_PATH=$(cd $(dirname "$SW_PATH"); pwd)
SW_ZIP_FILE_NAME=$(basename "$SW_PATH")
SW_ZIP_FILE_NAME_NO_ZIP=$(basename "$SW_ZIP_FILE_NAME" | rev | cut -c 5- | rev)
TMP_DIR="tmp"
rm -rf $TMP_DIR
unzip "$SW_PATH" -d "$TMP_DIR"
if [ ! -d "$TMP_DIR/$SW_ZIP_FILE_NAME_NO_ZIP/assembly/build/libs/" ]
then
  mkdir -p "$TMP_DIR/$SW_ZIP_FILE_NAME_NO_ZIP/assembly/build/libs"
  cp -R $TMP_DIR/$SW_ZIP_FILE_NAME_NO_ZIP/jars/sparkling-water-assembly_* "$TMP_DIR/$SW_ZIP_FILE_NAME_NO_ZIP/assembly/build/libs"
fi
rm -rf "$SW_SW_PATH"
(cd "$TMP_DIR" && zip -r "$SW_DIR_PATH/$SW_ZIP_FILE_NAME" "$SW_ZIP_FILE_NAME_NO_ZIP")
rm -rf $TMP_DIR
  1. Make the Shell script executable:

chmod +x repack.sh
  1. Repack the engine. The following example repacks Sparkling Water version 3.30.0.1.1-1-2.4. Replace this version with your Sparkling Water version.

./repack.sh sparkling-water-3.30.0.1-1-2.4.zip

You can then upload the Sparkling Water engine to Enterprise Steam.