Skip to content

Commit

Permalink
add mac binary (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyNikiforov authored Mar 10, 2023
1 parent 4df7841 commit def6ebf
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/quality-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 14 additions & 0 deletions EXPERIMENTAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,17 @@ Example:
`docker run -it --rm icloudpd:icloudpd copy [email protected] /path/to/{album}/{date_created:%Y/%Y-%m}`

`icloudpd-ex-1.11.0-windows-amd64 copy [email protected] /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 [email protected] --list-albums` or any other supported command/option

0 comments on commit def6ebf

Please sign in to comment.