Sparkling Water engine repacking ================================ Enterprise Steam version 1.6.5 and lower does not support Sparkling Water engines version 3.28.1.1 or higher. Engine upload will fail with the following error: ``Sparkling engine upload: archive is not a valid sparkling water archive`` You have two options to resolve this issue. Either upgrade to Enterprise Steam 1.6.6 or higher or repackage Sparkling Water engine using the following script before uploading it to Enterprise Steam. Repackaging script ------------------ 1. Save the following snippet as **repack.sh**: .. code-block:: bash #!/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 2. Make the Shell script executable: .. code-block:: bash chmod +x repack.sh 3. Repack the engine. The following example repacks Sparkling Water version |h2o-sw-version|.1-1-2.4. Replace this version with your Sparkling Water version. .. substitution-code-block:: bash ./repack.sh sparkling-water-|h2o-sw-version|-1-2.4.zip You can then upload the Sparkling Water engine to Enterprise Steam.