#4062 Update installing odo on Windows section to fix filename and ad… (#4176)

* #4062 Update installing odo on Windows section to fix filename and add additional steps and information required

* #4062 updated to make it generic, got rid of go/bin references

* Incorporated feedback from dharmit

* #4062 made changes to replace tar.gz for .zip for windows installer

* #4062 incorporated feedback from Dharmit

* #4062 Fixed a couple of typos to addres dharmit feedback

* 4062 fix mising dot in .exe

* 4062 fix if sattement

* 4062 fix syntax error

* 4062 fix syntax error

* 4062 fix syntax error

* 4062 fix syntax error

* 4062 fix syntax error

* Fixed statements for when suffix is .exe

* Fixed if syntax

* changed syntax

* Fixed syntax

* fixed zip command syntax

* Removed unnecessary comments and updtaed redistributable filename to add .exe before .zip
This commit is contained in:
Rodolfo Napoles
2020-12-18 01:53:39 -05:00
committed by GitHub
parent 802ce80bd1
commit 051ad88c2c
3 changed files with 20 additions and 14 deletions

View File

@@ -32,8 +32,13 @@ for arch in `ls -1 $BIN_DIR/`;do
target_file=$RELEASE_DIR/odo-$arch$suffix
# Create a tar.gz of the binary
echo "gzipping binary $source_file as $target_file"
tar -czvf $target_file.tar.gz --directory=$source_dir $source_filename
if [[ $suffix == .exe ]]; then
echo "zipping binary $source_file as $target_file.zip"
zip -9 -y -r -q $target_file.zip $source_dir/$source_filename
else
echo "gzipping binary $source_file as $target_file.tar.gz"
tar -czvf $target_file.tar.gz --directory=$source_dir $source_filename
fi
# Move binaries to the release directory as well
echo "copying binary $source_file to release directory"