Sha256: 113409581e7c3b68588dea95e954992135f6bd327c121d6d9d6acbc252c65284

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

IOS_SDK_VERSION = 7.1

IOS_CC = gcc -ObjC
DEVICE_SUPPORT = $(shell xcode-select --print-path)/Platforms/iPhoneOS.platform/DeviceSupport
IOS_SDK = $(shell xcode-select --print-path)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$(IOS_SDK_VERSION).sdk

all: clean ios_app_installer

demo.app: demo Info.plist
	mkdir -p demo.app
	cp demo demo.app/
	cp Info.plist ResourceRules.plist demo.app/
	codesign -f -s "iPhone Developer" --entitlements Entitlements.plist demo.app

demo: demo.c
	$(IOS_CC) -g -arch armv7 -isysroot $(IOS_SDK) -framework CoreFoundation -o demo demo.c

ios_app_installer: clean ios_app_installer.c
	$(IOS_CC) -g -o ios_app_installer -framework Foundation -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks ios_app_installer.c

symlink: 
	cd $(DEVICE_SUPPORT); ln -sfn "`find . -type d -maxdepth 1 -exec basename {} \; | tail -1`" Latest	
    
install: symlink ios_app_installer
	mkdir -p $(prefix)/bin
	cp ios_app_installer $(prefix)/bin

uninstall:
	rm $(prefix)/bin/ios_app_installer

debug: all
	./ios_app_installer --debug --bundle demo.app

clean:
	rm -rf *.app demo ios_app_installer

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ios_app_installer-0.0.1 node_modules/ios_app_installer/Makefile