earthengine-api/python/ee/cli/build_archive.sh
Google Earth Engine Authors fbf409381c v0.1.276
PiperOrigin-RevId: 387649804
2021-07-29 13:10:26 -07:00

16 lines
396 B
Bash
Executable File

#!/bin/sh
# Builds a self-contained archive from the open source release of EE CLI tool.
EE_CLI_DIR="earthengine-cli"
mkdir -p $EE_CLI_DIR/third_party
pip install -t $EE_CLI_DIR/third_party earthengine-api
cp eecli.py commands.py utils.py $EE_CLI_DIR/
cp eecli_wrapper.py $EE_CLI_DIR/earthengine
chmod +x $EE_CLI_DIR/earthengine
tar cvf earthengine-cli.tar.gz $EE_CLI_DIR
rm -rf $EE_CLI_DIR