
IP_SRC = .
OUTDIR = .

releasevers:
	del /F /Q build.sh
	copy client_ios_build.sh build.sh
	$(MSVCBIN)\nmake -f $(MACBUILD_MAK) BUILDTLS=$(BUILDTLS) PRJSUBDIR=$(PRJSUBDIR) PROJECT=$(PROJECT) XCODE_PATH=$(XCODE_PATH) BUILD=$(BUILD) macbuild
	-del /F /Q bin\client_ios_dsym.zip >nul
	$(SEVENZIP) a -bd -r bin\client_ios_dsym.zip bin\Release-iphoneos\client_ios.app.dSYM

entitlements:
	del /F /Q sdk\common\ios\iphone\client_ios.entitlements
	copy sdk\common\ios\iphone\client_ios_development.entitlements sdk\common\ios\iphone\client_ios.entitlements

plistpp:
	cd client/ios/ios_tools
	$(MSVCBIN)\nmake -f ios_tools.mak
	cd ../../..
	attrib -R sdk/common/ios/iphone/client_ios-Info.plist
	exe\plistpp -e1 sdk/common/ios/iphone/client_ios-Info.plist
	attrib -R client_ios_notification_extension/Info.plist
	exe\plistpp -e1 client_ios_notification_extension/Info.plist
	attrib -R client_ios_intents_extension/Info.plist
	exe\plistpp -e1 client_ios_intents_extension/Info.plist
	attrib -R client_ios_broadcast_extension/Info.plist
	exe\plistpp -e1 client_ios_broadcast_extension/Info.plist
