아래 코드를 동작시키려면 어떤 파일이 필요한가? #!/bin/bash To build, either place the IPA file in the…
- User
아래 코드를 동작시키려면 어떤 파일이 필요한가?
#!/bin/bash
To build, either place the IPA file in the project's root directory, or get the path to the IPA, then run
./build.shread -p $'\e[34m==> \e[1;39mPath to the decrypted YouTube.ipa or YouTube.app. If nothing is provied, any ipa/app in the project's root directory will be used: ' PATHTOYT
Check if PATHTOYT is empty
if [ -z "$PATHTOYT" ]; then # Look for ipa/app files in the current directory IPAS=$(find . -maxdepth 1 -type f ( -name ".ipa" -o -name ".app" ))
code# Check if there are two or more ipa/app files COUNT=\$(echo "\$IPAS" | wc -l) if [ "\$COUNT" -ge 2 ]; then echo "❌ Error: Multiple IPA/app files found in the project's root directory directory. Make sure there is only one ipa." exit 1 elif [ -n "\$IPAS" ]; then PATHTOYT=\$(echo "\$IPAS" | head -n 1) else echo "❌ Error: No IPA/app file found in the project's root directory directory." exit 1 fifi
make package THEOS_PACKAGE_SCHEME=rootless IPA="$PATHTOYT" FINALPACKAGE=1
SHASUM
if [[ $? -eq 0 ]]; then open packages echo "SHASUM256: $(shasum -a 256 packages/*.ipa)"
else echo "Failed building uYouPlus"
fi
- Assistant
이 스크립트를 실행하려면 다음과 같은 파일이 필요합니다:
-
YouTube.ipa 또는 YouTube.app 파일: 스크립트는 사용자로부터 YouTube.ipa 또는 YouTube.app 의 경로를 입력받습니다. 입력이 없을 경우, 스크립트는 현재 디렉토리에서 ".ipa" 또는 ".app" 확장자를 가진 파일을 검색하여 사용합니다. 이 파일은 YouTube 애플리케이션의 해독된 버전을 의미하며, 스크립트에서 처리하고자 하는 주요 대상입니다.
-
Theos 또는 해당 패키징 도구: 스크립트에는
make package라는 Theos 빌드 시스템 명령이 포함되어 있습니다. Theos는 iOS 개발을 위한 크로스 플랫폼 빌드 시스템입니다. 이 명령이 정상적으로 실행되기 위해서는 스크립트를 실행하는 환경에 Theos가 설치되어 있어야 하며, 적절한 환경 설정이 수행되어 있어야 합니다. -
터미널 또는 쉘 환경: 이 스크립트는 Bash 쉘 스크립트이므로, Bash가 지원되는 리눅스, macOS, 또는 WSL(Windows Subsystem for Linux) 등의 환경에서 실행해야 합니다.
-
읽기/쓰기 권한: 스크립트는 실행하는 디렉토리 내 파일을 읽고 쓰는 작업을 수행하므로, 해당 디렉토리에 대한 적절한 접근 권한이 설정되어 있어야 합니다.
이러한 요구 사항을 충족시키면, 스크립트는 사용자로부터 IPA 또는 APP 파일의 경로를 입력받거나 현재 디렉토리에서 해당 파일을 찾아 처리할 수 있습니다.
-
- User
아래를 보고 뭐가 문제인지 알려줘.
Run wget "YOUTUBE_URL" --no-verbose -O main/YouTube.ipa cd /Users/runner/work/uYouPlus/uYouPlus/main mv YouTube.ipa YouTube.zip unzip -q YouTube.zip youtube_version=(pwd)/Payload/YouTube.app/Info" CFBundleVersion) echo "==> YouTube v{youtube_version}#g" Makefile echo "youtube_version=GITHUB_OUTPUT shell: /bin/bash -e {0} env: THEOS: /Users/runner/work/uYouPlus/uYouPlus/theos YOUTUBE_URL: 2024-05-12 08:00:59 URL: [85241] -> "main/YouTube.ipa" [1] [YouTube.zip] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of YouTube.zip or YouTube.zip.zip, and cannot find YouTube.zip.ZIP, period. Error: Process completed with exit code 9.
- Assistant
문제는
wget명령어를 사용하여 YouTube.ipa 파일을 다운로드하려고 시도했지만, 실제로는 파일이 올바르게 다운로드되지 않았습니다. 제공된 URL(YOUTUBE_URL)은 Google 드라이브의 공유 링크이며, 이 링크를 통해 직접적으로 파일을 다운로드하는 것은 정상적인 파일 대신 웹 페이지의 HTML 내용이나 기타 메타데이터만을 다운로드 받을 가능성이 높습니다.wget을 사용하여 Google 드라이브 링크에서 파일을 다운로드하려면, Google 드라이브의 다운로드 가능한 직접 링크를 사용해야 합니다. 다음과 같은 변경을 통해 이를 수행할 수 있습니다:-
Google 드라이브 링크 변경: Google 드라이브에서 직접 다운로드 링크를 생성해야 합니다. 공유 링크에서 파일 ID를 추출하고 (
1gkROXX6U7Lq23ixvbDNhhnBd15bvigBZ), 이를 다운로드 링크 형식으로 변환하세요. 예:https://drive.google.com/uc?export=download&id=YOUR_FILE_ID여기서YOUR_FILE_ID는 추출한 파일 ID입니다. -
wget 사용법 확인: 변경한 링크를 사용하여
wget명령어를 다음과 같이 수정하세요:bashwget "https://drive.google.com/uc?export=download&id=1gkROXX6U7Lq23ixvbDNhhnBd15bvigBZ" --no-verbose -O main/YouTube.ipa -
추가 검증: 파일을 다운로드한 후, 정말 IPA 파일이 맞는지 확인할 필요가 있습니다. 파일의 종류를 확인하려면 명령어를 사용할 수 있습니다:
-