Add code to remove UISupportedDevices

This commit is contained in:
Bryce Hackel
2024-07-26 23:50:16 -07:00
parent 665abdd65a
commit 911425b9eb

View File

@@ -135,6 +135,22 @@ jobs:
# Remove contents in the iPA that interfere with sideloading
rm -rf main/tmp/Payload/YouTube.app/_CodeSignature/CodeResources
rm -rf main/tmp/Payload/YouTube.app/PlugIns/*
# Modify Info.plist to remove UISupportedDevices (Python script)
python - <<EOF
import plistlib
def remove_uisupporteddevices(filepath):
with open(filepath, 'rb') as f:
plist = plistlib.load(f)
if 'UISupportedDevices' in plist:
del plist['UISupportedDevices']
with open(filepath, 'wb') as f:
plistlib.dump(plist, f)
filepath = 'main/tmp/Payload/YouTube.app/Info.plist'
remove_uisupporteddevices(filepath)
EOF
env:
THEOS: ${{ github.workspace }}/theos
YOUTUBE_URL: ${{ inputs.decrypted_youtube_url }}