mirror of
https://github.com/portainer/portainer.git
synced 2025-07-18 21:09:40 +02:00
* Revert "fix(build-system): fix local build system after appveyor introduction (#2528)" This reverts commit79c24ced96
. * Revert "feat(build-system): add support for AppVeyor CI (#2449)" This reverts commit65979709e9
.
22 lines
737 B
Bash
Executable file
22 lines
737 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
PLATFORM=$1
|
|
ARCH=$2
|
|
DOCKER_VERSION=$3
|
|
|
|
DOWNLOAD_FOLDER=".tmp/download"
|
|
|
|
rm -rf "${DOWNLOAD_FOLDER}"
|
|
mkdir -pv "${DOWNLOAD_FOLDER}"
|
|
|
|
if [ "${PLATFORM}" == 'win' ]; then
|
|
wget -O "${DOWNLOAD_FOLDER}/docker-binaries.zip" "https://download.docker.com/${PLATFORM}/static/stable/${ARCH}/docker-${DOCKER_VERSION}.zip"
|
|
unzip "${DOWNLOAD_FOLDER}/docker-binaries.zip" -d "${DOWNLOAD_FOLDER}"
|
|
mv "${DOWNLOAD_FOLDER}/docker/docker.exe" dist/
|
|
else
|
|
wget -O "${DOWNLOAD_FOLDER}/docker-binaries.tgz" "https://download.docker.com/${PLATFORM}/static/stable/${ARCH}/docker-${DOCKER_VERSION}.tgz"
|
|
tar -xf "${DOWNLOAD_FOLDER}/docker-binaries.tgz" -C "${DOWNLOAD_FOLDER}"
|
|
mv "${DOWNLOAD_FOLDER}/docker/docker" dist/
|
|
fi
|
|
|
|
exit 0
|