-
Notifications
You must be signed in to change notification settings - Fork 9
/
Rakefile
executable file
·35 lines (31 loc) · 1.33 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
require "rake/clean"
CLEAN.include "*.xam"
CLEAN.include "xamarin-component"
COMPONENT = "Passcode-1.0.2.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="Passcode" \
--summary="Lock screen allowing users to enter a passcode. Can be used right out of the box or you can customize everything. Styled for phone and tablet." \
--publisher="Kevin Skrei" \
--website="http://kevinskrei.com" \
--details="Details.md" \
--license="License.md" \
--getting-started="GettingStarted.md" \
--icon="icons/XamarinPasscode_128x128.png" \
--icon="icons/XamarinPasscode_512x512.png" \
--library="android":"XamarinPasscode/Passcode.Google/bin/Release/Passcode.Google.dll" \
--sample="Passcode Samples. Simple and Customized Samples.":"Samples/XamarinPasscodeSamples/XamarinPasscodeSamples.sln"
END
puts "* Creating #{COMPONENT}..."
puts line.strip.gsub "\t\t", "\\\n "
sh line, :verbose => false
puts "* Created #{COMPONENT}"
end