-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
32 lines (25 loc) · 885 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# MODULE
#
TITANIUM="/Library/Application Support/Titanium/mobilesdk/osx/1.6.1/titanium.py"
desc "Build the module"
task :build do
exec "./build.py"
end
desc "Uninstall"
task :uninstall do
puts "\n\n\n\n UNINSTALLING XXXXXX..."
rm_rf "/Library/Application Support/Titanium/modules/iphone/com.mathieuravaux.ti_ios_couchbase", :verbose => true
end
desc "Install the module in /Library/Application Support/Titanium (without deflating)"
task :install => [:uninstall] do
puts "\n\n\n\n INSTALLING..."
cp "com.mathieuravaux.ti_ios_couchbase-iphone-0.1.zip", '/Library/Application Support/Titanium', :verbose => true
Dir.chdir '/Library/Application Support/Titanium' do
exec 'unzip com.mathieuravaux.ti_ios_couchbase-iphone-0.1.zip'
end
end
desc "Test the sample application in the simulator"
task :sample => [] do
exec TITANIUM, 'run'
end