From 5e14bcabf843be8a841205499d179151ad72376b Mon Sep 17 00:00:00 2001 From: interro Date: Wed, 25 Jul 2018 16:12:47 +0300 Subject: [PATCH] condition to name .exe --- bin/client_package_standalone | 8 +++++++- bin/server_package_standalone | 12 +++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/bin/client_package_standalone b/bin/client_package_standalone index b85c4ca13f..8a98d7551d 100755 --- a/bin/client_package_standalone +++ b/bin/client_package_standalone @@ -29,7 +29,13 @@ DIR_BUILD="build/package" # Put all files to package directory (to avoid preserving directory structure) printf "Building Standalone package for OS '$OS' ..\n" DIR_TEMP=`mktemp -d ${DIR_BUILD}/${tempname}.XXXXXX` -cp -vp ${BINARY} ${DIR_TEMP}/mysterium_client + +if [ "$OS" == "windows" ]; then + cp -vp ${BINARY} ${DIR_TEMP}/mysterium_client.exe +else + cp -vp ${BINARY} ${DIR_TEMP}/mysterium_client +fi + copy_client_config $OS $DIR_TEMP # Tarball package directory diff --git a/bin/server_package_standalone b/bin/server_package_standalone index 30f92404ef..6b16609348 100755 --- a/bin/server_package_standalone +++ b/bin/server_package_standalone @@ -7,10 +7,10 @@ #> bin/server_package_standalone # # Package (specific OS: linux, darwin, windows): -#> bin/client_package_standalone linux +#> bin/server_package_standalone linux # # Package (specific binary): -#> BINARY=build/client/mysterium_client_darwin_amd64 bin/client_package_standalone darwin +#> BINARY=build/server/mysterium_server_darwin_amd64 bin/server_package_standalone darwin set -e @@ -28,7 +28,13 @@ DIR_BUILD="build/package" # Put all files to package directory (to avoid preserving directory structure) printf "Building Standalone package for OS '$OS' ..\n" DIR_TEMP=`mktemp -d ${DIR_BUILD}/${tempname}.XXXXXX` -cp -vp ${BINARY} ${DIR_TEMP}/mysterium_server + +if [ "$OS" == "windows" ]; then + cp -vp ${BINARY} ${DIR_TEMP}/mysterium_server.exe +else + cp -vp ${BINARY} ${DIR_TEMP}/mysterium_server +fi + cp -vrp "bin/common_package/" ${DIR_TEMP}/config cp -vrp "bin/server_package/config/." ${DIR_TEMP}/config