The Shopify terms state that if your application accesses the Shopify API and is used by two or more merchants, then you have to give 20% to Shopify.
Do you have any references on there being an exception for apps not installed through the store ? I would be very interested.