Skip to content

Commit

Permalink
Added function for generating zip files for windows os
Browse files Browse the repository at this point in the history
Signed-off-by: Adhithya Srinivasan <adhithya.srinivasan@walmart.com>
  • Loading branch information
Adhithya Srinivasan committed Jul 17, 2022
1 parent 3fc25b1 commit a1fb43e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion scripts/package-deploy.sh
Expand Up @@ -46,6 +46,24 @@ function package {
rm -rf $PACKAGE_STAGING_DIR
}

# package pulls built files for the platform ($1). If you pass in a file
# extension ($2) it will be used on the binaries
function package_zip {
local PLATFORM=$1
local FILE_EXTENSION=$2
# script start
local PACKAGE_STAGING_DIR=jaeger-$VERSION-$PLATFORM

mkdir $PACKAGE_STAGING_DIR

stage-platform-files $PLATFORM $PACKAGE_STAGING_DIR $FILE_EXTENSION

local ARCHIVE_NAME="$PACKAGE_STAGING_DIR.zip"
echo "Packaging into $ARCHIVE_NAME:"
zip -r ./deploy/$ARCHIVE_NAME $PACKAGE_STAGING_DIR
rm -rf $PACKAGE_STAGING_DIR
}

set -e

DEPLOY_STAGING_DIR=./deploy-staging
Expand All @@ -60,7 +78,7 @@ mkdir $DEPLOY_STAGING_DIR
package linux-amd64
package darwin-amd64
package darwin-arm64
package windows-amd64 .exe
package_zip windows-amd64 .exe
package linux-s390x
package linux-arm64
package linux-ppc64le

0 comments on commit a1fb43e

Please sign in to comment.