Skip to content

Commit e29de4f

Browse files
committed
fix: 설치 링크 URL 인코딩 방식 수정(#63)
1 parent d3fe34d commit e29de4f

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/deployment.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
uses: actions/checkout@v4
5151

5252
# github workflow에서 사용할 키체인 설정
53-
- name: Configure Keychain
53+
- name: Configure Keychain
5454
run: |
5555
security create-keychain -p "" "$KEYCHAIN"
5656
security list-keychains -s "$KEYCHAIN"
@@ -92,7 +92,7 @@ jobs:
9292
echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV
9393
9494
# 아카이브
95-
- name: Archive app
95+
- name: Archive app
9696
run: |
9797
xcodebuild clean archive \
9898
-workspace "$XC_WORKSPACE" \
@@ -142,7 +142,7 @@ jobs:
142142
IPA_DOWNLOAD_LINK=$(echo "$Shared_LINK" | sed 's|https://www.dropbox.com|https://dl.dropboxusercontent.com|' | sed 's/.....$//')
143143
echo "IPA_DOWNLOAD_LINK=$IPA_DOWNLOAD_LINK" >> $GITHUB_ENV
144144
145-
# manifest.plist 파일 생성
145+
# manifest.plist 파일 생성
146146
- name: Create manifest.plist
147147
run: |
148148
cat <<EOF > manifest.plist
@@ -214,6 +214,11 @@ jobs:
214214
# 배포 링크 생성
215215
- name: Generate Install Link
216216
run: |
217-
# manifest 다운링크를 url 인코딩
218-
ENCODED_MANIFEST_LINK=$(echo "${{ env.MANIFEST_DOWNLOAD_LINK }}" | jq -sRr @uri)
219-
echo "Install link: itms-services://?action=download-manifest&url=$ENCODED_MANIFEST_LINK"
217+
# manifest 다운링크에서 특정 문자를 URL 인코딩
218+
ENCODED_MANIFEST_LINK=$(echo "$MANIFEST_DOWNLOAD_LINK" | \
219+
sed -e 's/=/\%3D/g' \
220+
-e 's/&/\%26/g' \
221+
-e 's/?/\%3F/g')
222+
223+
echo "ENCODED_MANIFEST_LINK=$ENCODED_MANIFEST_LINK" >> $GITHUB_ENV
224+
echo "Install link: itms-services://?action=download-manifest&url=$ENCODED_MANIFEST_LINK"

0 commit comments

Comments
 (0)