Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "rake/clean"
- CLEAN.include "*.xam"
- CLEAN.include "xpkg"
- COMPONENT = "QuickBooksConnex-1.0.xam"
- file "xpkg/xpkg.exe" do
- puts "* Downloading xpkg..."
- mkdir "xpkg"
- sh "curl -L https://components.xamarin.com/submit/xpkg > xpkg.zip"
- sh "unzip -o xpkg.zip -d xpkg"
- sh "rm xpkg.zip"
- end
- task :default => "xpkg/xpkg.exe" do
- line = <<-END
- mono xpkg/xpkg.exe create #{COMPONENT} \
- --name="QuickBooks Connex for Xamarin" \
- --summary="Integrate your mobile app with QuickBooks Desktop, POS, and QuickBooks Online." \
- --publisher="JMA Web Technologies, Inc." \
- --website="http://www.jmawebtechnologies.com/support/quickbooks/getting-started" \
- --details="Details.md" \
- --license="License.md" \
- --getting-started="GettingStarted.md" \
- --icon="icons/QuickBooks_Icons-Small.png" \
- --icon="icons/QuickBooks_Icons-Large.png" \
- --library="ios":"bin/JMA.Plugin.Accounting.QuickBooks.dll" \
- --library="android":"bin/JMA.Plugin.Accounting.QuickBooks.dll" \
- END
- puts "* Creating #{COMPONENT}..."
- puts line.strip.gsub "\t\t", "\\\n "
- sh line, :verbose => false
- puts "* Created #{COMPONENT}"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement