Hi Pablo, if its 0.1 MB it should be no issue to include the database into the RPM with the app. Just add it into data directory (/usr/share/appname/) and load it from there. Note that it will be read-only in this case. If you need to write into the database, make a copy under /home/nemo/.local in an app-assigned directory (.cache if its more appropriate).
Cheers, Rinigus On Thu, Jul 20, 2017 at 10:29 PM, J Pablo Navarro <el...@hiperones.es> wrote: > Hi SFOS devs! > > I think this is my first email over here and I don't have too much experice > with apps, so please be kind :) > > I want to ship an sqlite database with the app. The main reason is that > generating this database takes around 15 minutes... and it weights 104 > KiB, so > I think the best solution would be to shipt it as part of the app instead > of > download it from somewhere (I don't have a server, so that would be a > problem) > or generate it the first time the app is opened. > > My question is, what's the best way to do this? > > Thank you, > Pablo. > _______________________________________________ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscribe@lists. > sailfishos.org
_______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org