Skip to content

Commit

Permalink
Merge pull request #305 from MysteriumNetwork/fix/MYST-648-missing-ex…
Browse files Browse the repository at this point in the history
…e-release

Pack binaries with .exe for Windows to release
  • Loading branch information
interro authored Jul 25, 2018
2 parents 25218a9 + 5e14bca commit 9184022
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 7 additions & 1 deletion bin/client_package_standalone
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 9 additions & 3 deletions bin/server_package_standalone
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#> bin/server_package_standalone <os>
#
# 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

Expand All @@ -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

Expand Down

0 comments on commit 9184022

Please sign in to comment.