Repackaging scriptΒΆ

  1. Save the following snippet as repack.sh:

#!/bin/bash

set -e

printUsage()
{
   echo "Usage: $0 /user/home/sparkling-water-3.32.1.2-1-2.4.zip"
}

if [ -z "$1" ]
  then
    echo "Sparkling Water engine path not supplied"
    printUsage
    exit 1
fi

tmp_directory=$(basename "$1" .zip)

# Unzip the engine archive
unzip -o "$1"

# Remove scoring artifact
rm ./"$tmp_directory"/py/h2o_pysparkling_scoring_*

# Remove original archive
rm "$1"

# Zip modified directory
zip -r "$1" ./"$tmp_directory"

# Remove unzipped tmp directory
rm -rf ./"$tmp_directory"
  1. Make the Shell script executable:

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

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

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