forked from extern/httpie-cli
dd2c9513f3
* Single binary executables / DEB packages. * Attach single binary executables to the releases
23 lines
471 B
Bash
Executable File
23 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -xe
|
|
|
|
REPO_ROOT=../../../
|
|
ARTIFACTS_DIR=$(pwd)/artifacts
|
|
|
|
# Reset the ARTIFACTS_DIR.
|
|
rm -rf $ARTIFACTS_DIR
|
|
mkdir -p $ARTIFACTS_DIR
|
|
|
|
# Operate on the repository root to have the proper
|
|
# docker context.
|
|
pushd $REPO_ROOT
|
|
|
|
# Build the PyInstaller image
|
|
docker build -t pyinstaller-httpie -f extras/packaging/linux/Dockerfile .
|
|
|
|
# Copy the artifacts to the designated directory.
|
|
docker run --rm -i -v $ARTIFACTS_DIR:/artifacts pyinstaller-httpie:latest
|
|
|
|
popd
|