Skip to content

Commit c6dc1dd

Browse files
authored
Merge pull request #928 from steilerDev/beta
2 parents 4c91c9d + f56851c commit c6dc1dd

File tree

107 files changed

+6904
-3215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+6904
-3215
lines changed

.devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"GitHub.vscode-pull-request-github",
4040
"ritwickdey.LiveServer",
4141
"vscodevim.vim",
42-
"wdhongtw.gpg-indicator"
42+
"wdhongtw.gpg-indicator",
43+
"docker.docker"
4344
]
4445
}
4546
},

.github/acquire-trust-token.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ echo -n "Starting $DOCKER_IMAGE..."
3434
DOCKER_NAME=$(docker run -d \
3535
-e APPLE_ID_USER="$TEST_APPLE_ID_USER" \
3636
-e APPLE_ID_PWD="$TEST_APPLE_ID_PWD" \
37+
-e PORT="80" \
38+
-p 9999:80 \
3739
-v $TMP_DIR:/opt/icloud-photos-library \
3840
$DOCKER_IMAGE \
3941
token
@@ -57,13 +59,13 @@ echo "server available"
5759

5860
echo "Requesting code..."
5961
# Resend MFA code via SMS
60-
docker exec $DOCKER_NAME curl -s -X POST "http://localhost:80/api/resend_mfa?method=${MFA_METHOD}&phoneNumberId=${MFA_ID}" | jq -crM .message
62+
curl -s -X POST "http://localhost:9999/api/resend_mfa?method=${MFA_METHOD}&phoneNumberId=${MFA_ID}" | jq -crM .message
6163

6264
echo "Please enter MFA code:"
6365
read MFA_CODE
6466

6567
# Send MFA code
66-
docker exec $DOCKER_NAME curl -s -X POST "http://localhost:80/api/mfa?code=${MFA_CODE}" | jq -crM .message
68+
curl -s -X POST "http://localhost:9999/api/mfa?code=${MFA_CODE}" | jq -crM .message
6769

6870
echo "Waiting for container to exit..."
6971
docker wait $DOCKER_NAME

.github/actions/build/app-setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ runs:
99
using: composite
1010
steps:
1111
- id: setup-node
12-
uses: actions/setup-node@v5
12+
uses: actions/setup-node@v6
1313
with:
1414
node-version-file: ${{ inputs.app-path }}/node-version
1515
cache: npm

.github/actions/build/app/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ runs:
2121
fileName=$(cd ${{ inputs.app-path }}; npm pack)
2222
mv ${{ inputs.app-path }}/$fileName npm-pack.tgz
2323
- id: upload-artifact
24-
uses: actions/upload-artifact@v4
24+
uses: actions/upload-artifact@v5
2525
with:
2626
name: ${{ inputs.artifact-name }}
2727
path: npm-pack.tgz

.github/actions/build/docker-setup/action.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,15 @@ runs:
1212
uses: docker/setup-qemu-action@v3
1313
- id: setup-buildx
1414
uses: docker/setup-buildx-action@v3
15-
- id: setup-fs
16-
shell: bash
17-
run: mkdir -p "${{ inputs.docker-path }}/rootfs/opt/"
1815
- id: setup-release-app-artifact
19-
uses: actions/download-artifact@v5
16+
uses: actions/download-artifact@v6
2017
continue-on-error: true
2118
with:
2219
name: app-artifact-release
23-
path: ${{ inputs.docker-path }}/rootfs/opt/
20+
path: ${{ inputs.docker-path }}/
2421
- id: setup-build-app-artifact
2522
if: steps.setup-release-app-artifact.outcome == 'failure'
26-
uses: actions/download-artifact@v5
23+
uses: actions/download-artifact@v6
2724
with:
2825
name: app-artifact-build
29-
path: ${{ inputs.docker-path }}/rootfs/opt/
30-
- id: validate-app-artifact
31-
shell: bash
32-
run: |
33-
tree -a "${{ inputs.docker-path }}/"
34-
tar -xOf ${{ inputs.docker-path }}/rootfs/opt/npm-pack.tgz package/package.json
35-
- id: build-rootfs
36-
shell: bash
37-
run: tar -C ${{ inputs.docker-path }}/rootfs -czf ${{ inputs.docker-path }}/rootfs.tar.gz ./
26+
path: ${{ inputs.docker-path }}/

.github/actions/build/docker/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ runs:
5454
mv docker-*.tar.gz docker-artifact/
5555
echo "artifact-path=docker-artifact/" >> $GITHUB_OUTPUT
5656
- name: upload-artifact
57-
uses: actions/upload-artifact@v4
57+
uses: actions/upload-artifact@v5
5858
with:
5959
name: ${{ inputs.artifact-name }}
6060
path: ${{ steps.package-artifact.outputs.artifact-path }}

.github/actions/build/docs-setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ runs:
2626
shell: bash
2727
run: pip install -r ${{ inputs.docs-path }}/requirements.txt
2828
- id: setup-node
29-
uses: actions/setup-node@v5
29+
uses: actions/setup-node@v6
3030
with:
3131
node-version-file: ${{ inputs.app-path }}/node-version
3232
cache: npm

.github/actions/helper/prepare-semantic-release/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ runs:
7878
echo "Wrote:"
7979
cat ${{ inputs.release-dir }}/.releaserc.json
8080
- id: setup-node
81-
uses: actions/setup-node@v5
81+
uses: actions/setup-node@v6
8282
with:
8383
node-version-file: ${{ inputs.node-version-file }}
8484
cache: npm

0 commit comments

Comments
 (0)