From 88db2f05554bc160d1b2ea30afdac850a67fd9ce Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Mon, 29 Jul 2013 15:52:34 -0700 Subject: [PATCH] v1.0.3 - support npm uninstall --- Makefile | 5 ++++- package.json | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 33c42bf..c9d75e3 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ demo.app: demo Info.plist demo: demo.c $(IOS_CC) -arch armv7 -isysroot $(IOS_SDK) -framework CoreFoundation -o demo demo.c -ios-deploy: ios-deploy.c +ios-deploy: clean ios-deploy.c $(IOS_CC) -o ios-deploy -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks ios-deploy.c symlink: @@ -23,6 +23,9 @@ install: symlink ios-deploy mkdir -p $(prefix)/bin cp ios-deploy $(prefix)/bin +uninstall: + rm $(prefix)/bin/ios-deploy + debug: all ./ios-deploy --debug --bundle demo.app diff --git a/package.json b/package.json index 2481156..ba640ec 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,12 @@ { "name": "ios-deploy", - "version": "1.0.2", + "version": "1.0.3", "description": "launch iOS apps iOS devices from the command line (Xcode 4)", "main": "ios-deploy", "scripts": { - "install": "make install prefix=/usr/local" + "preinstall": "make ios-deploy" }, + "bin" : "./ios-deploy" , "repository": { "type": "git", "url": "https://github.com/phonegap/ios-deploy"