From def6ebf7445198b8d331c962461f1665644a6e74 Mon Sep 17 00:00:00 2001 From: Andrey Nikiforov Date: Thu, 9 Mar 2023 17:50:59 -0800 Subject: [PATCH] add mac binary (#599) --- .github/workflows/create-release.yml | 6 +++++- .github/workflows/quality-checks.yml | 6 +++++- CHANGELOG.md | 1 + EXPERIMENTAL.md | 14 ++++++++++++++ 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 9f97b6bcb..2b8fd25ef 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -75,9 +75,13 @@ jobs: pyinstaller --collect-all keyrings.alt --hidden-import pkgutil --collect-all tzdata --onefile exec.py --name icloudpd-ex-${{needs.get_version.outputs.icloudpd_version}}-linux-amd64 if: ${{ matrix.os == 'ubuntu-latest' }} + - name: Build Release Executables (MacOS) + run: | + pyinstaller --collect-all keyrings.alt --hidden-import pkgutil --collect-all tzdata --onefile exec.py --name icloudpd-ex-${{needs.get_version.outputs.icloudpd_version}}-macos-amd64 + if: ${{ matrix.os == 'macos-latest' }} + - name: Upload artifacts uses: actions/upload-artifact@v3 - if: ${{ matrix.os != 'macos-latest' }} with: name: icloudpd-${{needs.get_version.outputs.icloudpd_version}}-artifacts if-no-files-found: error diff --git a/.github/workflows/quality-checks.yml b/.github/workflows/quality-checks.yml index 8d47c7f88..4cd3e542b 100644 --- a/.github/workflows/quality-checks.yml +++ b/.github/workflows/quality-checks.yml @@ -101,9 +101,13 @@ jobs: pyinstaller --collect-all keyrings.alt --hidden-import pkgutil --collect-all tzdata --onefile exec.py --name icloudpd-ex-${{needs.get_version.outputs.icloudpd_version}}-linux-amd64 if: ${{ matrix.os == 'ubuntu-latest' }} + - name: Build Release Executables (MacOS) + run: | + pyinstaller --collect-all keyrings.alt --hidden-import pkgutil --collect-all tzdata --onefile exec.py --name icloudpd-ex-${{needs.get_version.outputs.icloudpd_version}}-macos-amd64 + if: ${{ matrix.os == 'macos-latest' }} + - name: Upload artifacts uses: actions/upload-artifact@v3 - if: ${{ matrix.os != 'macos-latest' }} with: name: icloudpd-${{needs.get_version.outputs.icloudpd_version}}-artifacts if-no-files-found: error diff --git a/CHANGELOG.md b/CHANGELOG.md index 36f1d9676..f5086c61d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- experimental: add macos binary [#551](https://github.com/icloud-photos-downloader/icloud_photos_downloader/issues/551) - fix: add `icloud` script to the source distribution [#594](https://github.com/icloud-photos-downloader/icloud_photos_downloader/issues/594) ## 1.11.0 (2023-02-24) diff --git a/EXPERIMENTAL.md b/EXPERIMENTAL.md index 3e184e092..d8d8054a1 100644 --- a/EXPERIMENTAL.md +++ b/EXPERIMENTAL.md @@ -47,3 +47,17 @@ Example: `docker run -it --rm icloudpd:icloudpd copy my@email.address /path/to/{album}/{date_created:%Y/%Y-%m}` `icloudpd-ex-1.11.0-windows-amd64 copy my@email.address /path/to/{album}/{date_created:%Y/%Y-%m}` + +## MacOS binary + +Experiemental binary is available as MacOS binary. It is available as Intel 64bit binary, but works on M1 macs too. + +Here are the steps to make it working: +- download into desired folder +- add executable flag by running `chmod +x icloudpd-ex-1.11.0-macos-amd64` +- start it from the terminal: `icloudpd-ex-1.11.0-macos-amd64` +- Apple will tell you that it cannot check for malicous software and refuse to run the app; click "Ok" +- Open "System Settings"/"Privacy & Security" and find `icloudpd-ex-1.11.0-macos-amd64` as blocked app; Click "Allow" +- Start `icloudpd-ex-1.11.0-macos-amd64` from the terminal again +- Apple will show another warning; click "Open" +- After that you can run `icloudpd-ex-1.11.0-macos-amd64 icloudpd --username my@email.address --list-albums` or any other supported command/option