-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Rakefile
37 lines (33 loc) · 1.23 KB
/
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
32
33
34
35
36
37
require "rake/clean"
CLEAN.include "*.xam"
CLEAN.include "xamarin-component"
COMPONENT = "Bind-1.0.xam"
file "xamarin-component/xamarin-component.exe" do
puts "* Downloading xamarin-component..."
mkdir "xamarin-component"
sh "curl -L https://components.xamarin.com/submit/xpkg > xamarin-component.zip"
sh "unzip -o -q xamarin-component.zip -d xamarin-component"
sh "rm xamarin-component.zip"
end
task :default => "xamarin-component/xamarin-component.exe" do
line = <<-END
mono xamarin-component/xamarin-component.exe create-manually #{COMPONENT} \
--name="Bind" \
--summary="Generic data binding." \
--publisher="Frank A. Krueger" \
--website="http://github.com/praeclarum/Bind" \
--details="Details.md" \
--license="License.md" \
--getting-started="GettingStarted.md" \
--icon="icons/Bind_128x128.png" \
--icon="icons/Bind_512x512.png" \
--library="ios":"bin/Bind.iOS.dll" \
--library="android":"bin/Bind.Android.dll" \
--sample="iOS Sample. Demonstrates Bind on iOS.":"samples/Bind.iOS.sln" \
--sample="Android Sample. Demonstrates Bind on Android":"samples/Bind.Android.sln"
END
puts "* Creating #{COMPONENT}..."
puts line.strip.gsub "\t\t", "\\\n "
sh line, :verbose => false
puts "* Created #{COMPONENT}"
end