harbour-muchkin/README

33 lines
1.7 KiB
Plaintext
Raw Normal View History

2015-02-21 14:19:19 +00:00
Sailfish Python
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
these packages are needed to build/install the package:
fpm -- to package a a root tree from a temporary directory to a rpm package
rsync -- to send the package to your testing machine (jolla phone or sailfish emulator)
use these make commands to build/install your app for testing:
make make-virt
2015-02-21 14:27:45 +00:00
build your package, and install it on your Sailfish Emulator on localhost:2223, considering your Sailfish-SDK is installed at ~/SailfishOS
2015-02-21 14:19:19 +00:00
make make-jolla-wifi
2015-02-21 14:27:45 +00:00
build your package, and install 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
make make-jolla-usb [jolla_usb_ip=192.168.2.15]
2015-02-21 14:27:45 +00:00
build your package, and install 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 14:27:45 +00:00
a basic set of dependencies are already added to the Makefile, 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 are included in the package.
2015-02-21 14:27:45 +00:00
for now, i like to package both an armv7l and a x86 version and select the package version within the qml code. Packages are built with "noarch", so they should run an any device. I had success using pip wheel to build these packages directly on the jolla phone/sailfish emulator and unpacking them to pyPackages. As an example, the is pillow (Python Imaging Library) included in the package.
2015-02-21 14:19:19 +00:00
Renaming your App:
./renamep.py "my-new-appname"