icloud_photos_downloader/scripts/build_binary_dist_macos

20 lines
650 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# prepare binary wheels in dist
# expects dist to have comipled binary versions
# required param: version
# clean start
rm -rf dist/binary_dist
# basic
cp -r binary_dist dist/binary_dist
cp LICENSE.md dist/binary_dist/
cp README_PYPI.md dist/binary_dist/
cp dist/icloudpd-$1-macos-amd64 dist/binary_dist/src/icloudpd/icloudpd
cp dist/icloud-$1-macos-amd64 dist/binary_dist/src/icloud/icloud
python3 -m pip wheel dist/binary_dist/ -w dist/binary_dist --no-deps --no-build-isolation
mv -f dist/binary_dist/icloudpd-$1-py2.py3-none-any.whl dist/icloudpd-$1-py2.py3-none-macosx_13_0_x86_64.macosx_13_0_arm64.whl