harbour-muchkin/README.md

39 lines
1.8 KiB
Markdown
Raw Normal View History

2015-02-21 14:19:19 +00:00
Sailfish Python
==============
2015-02-21 14:19:19 +00:00
2015-02-21 14:27:45 +00:00
this is a pyotherside based app template for sailfish os. I simply cant get my head around the way rpm packages are built,so i found an alternative Way using fpm
2015-02-21 14:19:19 +00:00
https://github.com/jordansissel/fpm
Build Dependencies:
------------------
this package are needed to build/install the package:
2015-02-21 14:19:19 +00:00
fpm -- to package a a root tree from a temporary directory to a rpm package
2015-03-05 15:24:23 +00:00
## Make Commands:
2015-02-21 14:19:19 +00:00
use these make commands to build/install your app for testing:
2015-03-05 15:24:23 +00:00
`make make-virt`
2015-03-05 15:28:13 +00:00
builds your package, and installs it on your Sailfish Emulator on localhost:2223, considering your Sailfish-SDK is installed at ~/SailfishOS
2015-02-21 14:19:19 +00:00
2015-03-08 17:38:02 +00:00
`make make-jolla-wifi [jolla_wifi_ip=jolla]`
2015-03-05 15:28:13 +00:00
builds your package, and installs it on your jolla phone, considering your development PC is authorized for root ssh login on the phone and it is found in your dns-space as "jolla"
2015-02-21 14:19:19 +00:00
2015-03-05 15:24:23 +00:00
`make make-jolla-usb [jolla_usb_ip=192.168.2.15]`
2015-03-05 15:28:13 +00:00
builds your package, and installs it on your jolla phone, considering your development PC is authorized for root ssh login on the phone, and connected via usb development mode set your jollas ip like above.
2015-02-21 14:19:19 +00:00
## Adding dependencies:
2015-02-21 15:53:25 +00:00
a basic set of dependencies for python3 apps are already added to dependencies.txt, but you can still add other ones to the list.
2015-02-21 14:19:19 +00:00
##Adding python Modules:
all python Modules in pyPackages (suffixed correctly) are included in the package.
I like to keep both an armv7l and a x86 version in pyPackages , and package the one with the corresponding $(arch)-suffix at packaging. Select the package version within the qml code. I had success using pip wheel to build these packages directly on the jolla phone(armv7hl)/sailfish emulator(x86) and unpacking them to pyPackages. As an example, pillow (Python Imaging Library) is included in the repo.
2015-02-21 14:19:19 +00:00
## Renaming your App:
2015-03-05 15:24:23 +00:00
`/renamep.py "my-new-appname"`
2015-02-21 14:19:19 +00:00