Add code to remove UISupportedDevices
This commit is contained in:
parent
665abdd65a
commit
911425b9eb
1 changed files with 16 additions and 0 deletions
16
.github/workflows/buildapp.yml
vendored
16
.github/workflows/buildapp.yml
vendored
|
|
@ -135,6 +135,22 @@ jobs:
|
||||||
# Remove contents in the iPA that interfere with sideloading
|
# 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/_CodeSignature/CodeResources
|
||||||
rm -rf main/tmp/Payload/YouTube.app/PlugIns/*
|
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:
|
env:
|
||||||
THEOS: ${{ github.workspace }}/theos
|
THEOS: ${{ github.workspace }}/theos
|
||||||
YOUTUBE_URL: ${{ inputs.decrypted_youtube_url }}
|
YOUTUBE_URL: ${{ inputs.decrypted_youtube_url }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue