mirror of
https://github.com/docker/compose.git
synced 2025-09-18 07:17:42 +02:00
OSX Catalina otherwise do scan the temporary executable files created by the single-file packaging. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
23 lines
761 B
Bash
Executable File
23 lines
761 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
TOOLCHAIN_PATH="$(realpath $(dirname $0)/../../build/toolchain)"
|
|
|
|
rm -rf venv
|
|
|
|
virtualenv -p "${TOOLCHAIN_PATH}"/bin/python3 venv
|
|
venv/bin/pip install -r requirements.txt
|
|
venv/bin/pip install -r requirements-build.txt
|
|
venv/bin/pip install --no-deps .
|
|
DOCKER_COMPOSE_GITSHA="$(script/build/write-git-sha)"
|
|
echo "${DOCKER_COMPOSE_GITSHA}" > compose/GITSHA
|
|
|
|
venv/bin/pyinstaller docker-compose.spec
|
|
mv dist/docker-compose dist/docker-compose-Darwin-x86_64
|
|
dist/docker-compose-Darwin-x86_64 version
|
|
|
|
# Also build as a folder, required on osx Catalina
|
|
venv/bin/pyinstaller docker-compose_darwin.spec
|
|
dist/docker-compose-Darwin-x86_64/docker-compose version
|
|
cd dist/docker-compose-Darwin-x86_64/ && tar zcvf ../docker-compose-Darwin-x86_64.tgz .
|