Advertisement
jmawebtech

qb xpkg

Mar 29th, 2013
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. require "rake/clean"
  2.  
  3. CLEAN.include "*.xam"
  4. CLEAN.include "xpkg"
  5.  
  6. COMPONENT = "QuickBooksConnex-1.0.xam"
  7.  
  8. file "xpkg/xpkg.exe" do
  9. puts "* Downloading xpkg..."
  10. mkdir "xpkg"
  11. sh "curl -L https://components.xamarin.com/submit/xpkg > xpkg.zip"
  12. sh "unzip -o xpkg.zip -d xpkg"
  13. sh "rm xpkg.zip"
  14. end
  15.  
  16. task :default => "xpkg/xpkg.exe" do
  17. line = <<-END
  18. mono xpkg/xpkg.exe create #{COMPONENT} \
  19.  
  20. --name="QuickBooks Connex for Xamarin" \
  21. --summary="Integrate your mobile app with QuickBooks Desktop, POS, and QuickBooks Online." \
  22. --publisher="JMA Web Technologies, Inc." \
  23. --website="http://www.jmawebtechnologies.com/support/quickbooks/getting-started" \
  24. --details="Details.md" \
  25. --license="License.md" \
  26. --getting-started="GettingStarted.md" \
  27. --icon="icons/QuickBooks_Icons-Small.png" \
  28. --icon="icons/QuickBooks_Icons-Large.png" \
  29. --library="ios":"bin/JMA.Plugin.Accounting.QuickBooks.dll" \
  30. --library="android":"bin/JMA.Plugin.Accounting.QuickBooks.dll" \
  31.  
  32. END
  33. puts "* Creating #{COMPONENT}..."
  34. puts line.strip.gsub "\t\t", "\\\n "
  35. sh line, :verbose => false
  36. puts "* Created #{COMPONENT}"
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement