From aed43dc389b97a8f22f9d01b2cc154b85a081a2d Mon Sep 17 00:00:00 2001 From: qnblackcat Date: Sat, 12 Nov 2022 20:47:03 +0700 Subject: [PATCH] edit bundle name/ app name --- .github/workflows/buildapp.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/buildapp.yml b/.github/workflows/buildapp.yml index 2779bb6..c9c4ae5 100644 --- a/.github/workflows/buildapp.yml +++ b/.github/workflows/buildapp.yml @@ -21,6 +21,16 @@ on: default: "" required: true type: string + bundle_id: + description: "Modify the bundle ID. Not recommended" + default: "com.google.ios.youtube" + required: true + type: string + app_name: + description: "Modify the name of the app on the Home Screen. Not recommended" + default: "YouTube" + required: true + type: string create_release: description: "Create a draft release" default: true @@ -107,15 +117,20 @@ jobs: run: | (echo 'THEOS_IGNORE_PARALLEL_BUILDING_NOTICE = yes' >> ~/.theosrc) cd ${{ github.workspace }}/main + sed -i '' "12s#.*#BUNDLE_ID = ${{ env.BUNDLE_ID }}#g" Makefile + sed -i '' "11s#.*#DISPLAY_NAME = ${{ env.APP_NAME }}#g" Makefile make package FINALPACKAGE=1 (mv "packages/$(ls -t packages | head -n1)" "packages/uYouPlus_${{ env.YOUTUBE_VERSION }}_${{ env.UYOU_VERSION }}.ipa") echo "package=$(ls -t packages | head -n1)" >>$GITHUB_OUTPUT echo -e "==> \033[1mSHASUM256: $(shasum -a 256 packages/*.ipa | cut -f1 -d' ')\033[0m" + echo -e "==> \033[1mBundle ID: ${{ env.BUNDLE_ID }}\033[0m" env: THEOS: ${{ github.workspace }}/theos UYOU_VERSION: ${{ inputs.uyou_version }} YOUTUBE_VERSION: ${{ inputs.youtube_version }} + BUNDLE_ID: ${{ inputs.bundle_id }} + APP_NAME: ${{ inputs.app_name }} - name: Upload Artifact uses: actions/upload-artifact@v3