mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* #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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user