-
Notifications
You must be signed in to change notification settings - Fork 569
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
215c32f
commit d49ae34
Showing
21 changed files
with
173 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,13 @@ A command-line tool to download all your iCloud photos. | |
## [EXPERIMENTAL] Install, Run, and Use | ||
|
||
``` sh | ||
npx icloudpd --directory /data --username [email protected] --watch-with-interval 3600 | ||
npx --yes icloudpd --directory /data --username [email protected] --watch-with-interval 3600 | ||
``` | ||
|
||
Synchronization logic can be adjusted with command-line parameters. Run the following to get full list: | ||
|
||
``` sh | ||
npx icloudpd --help | ||
npx --yes icloudpd --help | ||
``` | ||
|
||
## Getting Node and Npm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.version |= $version | (.optionalDependencies |= with_entries(.value |= $version))? // . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# icloudpd | ||
|
||
The macOS ARM 64-bit binary for icloudpd, a iCloud Photo Downloader. See https://github.com/icloud_photo_downloader/icloud_photo_downloader for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "@icloudpd/darwin-arm64", | ||
"version": "0.0.1", | ||
"description": "The macOS ARM 64-bit binary for icloudpd, a iCloud Photo Downloader.", | ||
"repository": "https://github.com/icloud_photo_downloader/icloud_photo_downloader", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=12" | ||
}, | ||
"preferUnplugged": true, | ||
"os": [ | ||
"darwin" | ||
], | ||
"cpu": [ | ||
"arm64" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# prepare npm packages in dist | ||
# expects dist to have comipled binary versions | ||
# required param: version | ||
|
||
pyinstaller --collect-all keyrings.alt --hidden-import pkgutil --collect-all tzdata --onefile icloudpd.py icloud.py --name icloudpd-$1-linux-$2 | ||
pyinstaller --collect-all keyrings.alt --hidden-import pkgutil --collect-all tzdata --onefile icloud.py --name icloud-$1-linux-$2 | ||
pyinstaller --collect-all keyrings.alt --hidden-import pkgutil --collect-all tzdata --onefile exec.py --name icloudpd-ex-$1-linux-$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# prepare npm packages in dist | ||
# expects dist to have comipled binary versions | ||
# required param: version | ||
|
||
pyinstaller --collect-all keyrings.alt --hidden-import pkgutil --collect-all tzdata --onefile icloudpd.py icloud.py --name icloudpd-$1-macos-$2 | ||
pyinstaller --collect-all keyrings.alt --hidden-import pkgutil --collect-all tzdata --onefile exec.py --name icloudpd-ex-$1-macos-$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# prepare bin packages in dist | ||
# expects python with installed dependencies | ||
# required param: version | ||
|
||
pyinstaller --collect-all keyrings.alt --hidden-import pkgutil --collect-all tzdata --onefile icloudpd.py icloud.py --name icloudpd-$1-windows-$2 | ||
pyinstaller --collect-all keyrings.alt --hidden-import pkgutil --collect-all tzdata --onefile icloud.py --name icloud-$1-windows-$2 | ||
pyinstaller --collect-all keyrings.alt --hidden-import pkgutil --collect-all tzdata --onefile exec.py --name icloudpd-ex-$1-windows-$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# prepare npm packages in dist | ||
# expects dist to have comipled binary versions | ||
# required param: version | ||
|
||
# clean start | ||
rm -rf dist/npm | ||
|
||
# basic | ||
cp -r npm dist/npm | ||
|
||
# main package | ||
cp LICENSE.md dist/npm/icloudpd | ||
cp README_NPM.md dist/npm/icloudpd/README.md | ||
jq --arg version $1 --from-file jq/version.jq < npm/icloudpd/package.json > dist/npm/icloudpd/package.json | ||
|
||
# win32-x64 | ||
mkdir -p dist/npm/@icloudpd/win32-x64/bin | ||
cp dist/icloudpd-$1-windows-amd64.exe dist/npm/@icloudpd/win32-x64/bin/icloudpd.exe | ||
chmod +x dist/npm/@icloudpd/win32-x64/bin/icloudpd.exe | ||
cp LICENSE.md dist/npm/@icloudpd/win32-x64/ | ||
jq --arg version $1 --from-file jq/version.jq < "npm/@icloudpd/win32-x64/package.json" > "dist/npm/@icloudpd/win32-x64/package.json" | ||
|
||
# linux-x64 | ||
mkdir -p dist/npm/@icloudpd/linux-x64/bin | ||
cp dist/icloudpd-$1-linux-amd64 dist/npm/@icloudpd/linux-x64/bin/icloudpd | ||
chmod +x dist/npm/@icloudpd/linux-x64/bin/icloudpd | ||
cp LICENSE.md dist/npm/@icloudpd/linux-x64/ | ||
jq --arg version $1 --from-file jq/version.jq < npm/@icloudpd/linux-x64/package.json > dist/npm/@icloudpd/linux-x64/package.json | ||
|
||
# macos x64 | ||
mkdir -p dist/npm/@icloudpd/darwin-x64/bin | ||
cp dist/icloudpd-$1-macos-amd64 dist/npm/@icloudpd/darwin-x64/bin/icloudpd | ||
chmod +x dist/npm/@icloudpd/darwin-x64/bin/icloudpd | ||
cp LICENSE.md dist/npm/@icloudpd/darwin-x64/ | ||
jq --arg version $1 --from-file jq/version.jq < npm/@icloudpd/darwin-x64/package.json > dist/npm/@icloudpd/darwin-x64/package.json | ||
|
||
# macos arm64 | ||
mkdir -p dist/npm/@icloudpd/darwin-arm64/bin | ||
# using Intel binary for now | ||
cp dist/icloudpd-$1-macos-amd64 dist/npm/@icloudpd/darwin-arm64/bin/icloudpd | ||
chmod +x dist/npm/@icloudpd/darwin-arm64/bin/icloudpd | ||
cp LICENSE.md dist/npm/@icloudpd/darwin-arm64/ | ||
jq --arg version $1 --from-file jq/version.jq < npm/@icloudpd/darwin-arm64/package.json > dist/npm/@icloudpd/darwin-arm64/package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# dev script | ||
# expecting dist/npm to be set | ||
# required param registry_url | ||
# | ||
# prereq | ||
# npm --registry registry_url adduser | ||
# | ||
|
||
# note verdaccio did not work properly when supplying npm folder with @, so we are changing dir... | ||
|
||
cd dist/npm/@icloudpd/linux-x64 | ||
npm --registry $1 publish . | ||
cd ../../../.. | ||
|
||
cd dist/npm/@icloudpd/win32-x64 | ||
npm --registry $1 publish . | ||
cd ../../../.. | ||
|
||
cd dist/npm/@icloudpd/darwin-x64 | ||
npm --registry $1 publish . | ||
cd ../../../.. | ||
|
||
cd dist/npm/@icloudpd/darwin-arm64 | ||
npm --registry $1 publish . | ||
cd ../../../.. | ||
|
||
npm --registry $1 publish dist/npm/icloudpd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# dev script | ||
# required param: registry_url | ||
# | ||
# note that verdaccio v5 is flaky around unpublishing and restart may be required to clean things | ||
# | ||
npm --registry $1 unpublish -f icloudpd | ||
npm --registry $1 unpublish -f @icloudpd/linux-x64 | ||
npm --registry $1 unpublish -f @icloudpd/win32-x64 | ||
npm --registry $1 unpublish -f @icloudpd/darwin-x64 | ||
npm --registry $1 unpublish -f @icloudpd/darwin-arm64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters