From f4c73370c8adba9508734ae22b878c534a2c8eef Mon Sep 17 00:00:00 2001 From: Dan <38832025+dayanch96@users.noreply.github.com> Date: Tue, 5 Nov 2024 17:00:30 +0300 Subject: [PATCH] workflow improvements --- .github/workflows/main.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2af02de5..976de96a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ concurrency: jobs: build: name: Build YTMusicUltimate - runs-on: macos-12 + runs-on: macos-latest permissions: contents: write @@ -29,7 +29,6 @@ jobs: - name: Install Dependencies run: brew install ldid dpkg make coreutils - - name: Set PATH environment variable run: echo "$(brew --prefix make)/libexec/gnubin" >> $GITHUB_PATH @@ -38,10 +37,9 @@ jobs: uses: actions/checkout@v4.1.7 with: repository: theos/theos - ref: 3da31488281ecf4394d10302d2629607f4a1aa07 path: theos submodules: recursive - + - name: SDK Caching id: SDK uses: actions/cache@v4.0.1 @@ -65,8 +63,7 @@ jobs: - name: Prepare YouTube Music iPA id: prepare_youtube_music - run: | - wget "$YOUTUBE_MUSIC_URL" --no-verbose -O main/YouTubeMusic.ipa + run: wget "$YOUTUBE_MUSIC_URL" --no-verbose -O main/YouTubeMusic.ipa env: YOUTUBE_MUSIC_URL: ${{ inputs.decrypted_youtube_music_url }} @@ -79,12 +76,16 @@ jobs: env: THEOS: ${{ github.workspace }}/theos + - name: Install Cyan + run: | + brew install pipx + pipx install --force https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip + - name: Inject tweak into provided IPA run: | cd ${{ github.workspace }}/main/packages tweakName=$(ls) cd ${{ github.workspace }}/main - pip3 install --force-reinstall lief git+https://github.com/asdfzxcvbn/pyzule-rw.git#egg=cyan cyan -i YouTubeMusic.ipa -o packages/YTMusicUltimate.ipa -uwsf packages/$tweakName - name: Create Release