diff --git a/Makefile b/Makefile index f5937114..7ba135d4 100644 --- a/Makefile +++ b/Makefile @@ -697,16 +697,28 @@ out/%/data.zip: $(RAW_FILES) out/tildefriends-%.app/tildefriends: out/%/tildefriends out/tildefriends-%.app/Info.plist out/tildefriends-%.app/tildefriends.png out/tildefriends-%.app/data.zip @mkdir -p $(dir $@) @cp -v $< $@ +ifeq ($(HAVE_LINUX_IOS),1) + @zsign -k .keys/apple.p12 -f -m src/ios/embedded.mobileprovision $(realpath $(dir $@)) +endif .SECONDARY: +out/tildefriends-%.ipa: out/tildefriends-ios%.app/tildefriends + @echo [ipa] $@ + @rm -rf $@.tmp $@ + @mkdir -p $@.tmp/Payload/tildefriends.app/ + @cp -R $(dir $<)/* $@.tmp/Payload/tildefriends.app/ + @cd $@.tmp/ && zip -u ../../$@ -q -9 -r ./ + @rm -rf $@.tmp/ iossimdebug-app: out/tildefriends-iossimdebug.app/tildefriends iossimrelease-app: out/tildefriends-iossimrelease.app/tildefriends iosdebug-app: out/tildefriends-iosdebug.app/tildefriends iosrelease-app: out/tildefriends-iosrelease.app/tildefriends + +iosdebug-ipa: out/tildefriends-debug.ipa +iosrelease-ipa: out/tildefriends-release.ipa .PHONY: iossimdebug-app iossimrelease-app iosdebug-app iosrelease-app iosdebuggo: out/tildefriends-iosdebug.app/tildefriends - zsign -k .keys/apple.p12 -f -m src/ios/embedded.mobileprovision $(realpath $(dir $<)) ideviceinstaller -i $(realpath $(dir $<)) iossimdebuggo: out/tildefriends-iossimdebug.app/tildefriends