PDA

View Full Version : How to - Build a source package and upload os2008 themes to extras-devel


andrewfblack
10-05-2009, 02:19 PM
Theme Maker is great for slicing your template file and making a nice install .deb to install your theme with, but if you want to put it on extras then you need to get a source package and Theme Maker wont do that for you but here is an easy guide to tell you how to do it. This guide will assume you have an n8x0 device and a windows computer. We will also use only free software in doing the steps.

First we need to get you authorized to maintain the extras repository.


Go to: Maemo Garage (http://garage.maemo.org)
Register for a garage account.
Then you will need to email the garage admins to give you rights to maintain packages in extras and extras-devel


Next we will download the software needed to design themes.

Download and Install to Windows Computer

Theme Maker (https://garage.maemo.org/frs/?group_id=36) download version 1.1.7
Gimp (http://www.gimp.org/) (or other image editing program)
7zip (http://www.7-zip.org/)
Filezilla (http://filezilla-project.org/)
Script to build source deb (http://dl.getdropbox.com/u/2240466/build_myapp.py)


Download and Install to (n8x0 tablet)

Py2deb
Gainroot
ssh server


Install Gimp and 7zip, and then unzip Theme Maker to a folder somewhere.

Edit the template.psd using Gimp or other program.

Save images in .png format.

Open Theme Maker and Fill out/choose all options on Theme Maker



Enter Theme Name Max Length 9 Characters.
Enter Your Name or Screen Name if you wish to use that instead.
Select Theme Background File.
Select Theme Source File (Select the .png formatted file.)
Select Font (if you wish to)
Select Icon Template (default one is in theme maker folder.)
Layout for Theme is Diablo
Theme Version (I normally start with 0.1)
Top Bar Height need to be at least 45 pixels but I always do 60 so the Top bar is always the same size since home view will always be 60.)
System Font:I normally go with 12 -14
Large Font: I notice anything over 20 and things start to get misshaped do to font size.
Title Font: I normally got with 12 -14.
Click Build Theme Tab
Click Build Theme!


Once Progress bar hits 100% you will find your theme files in the Theme Maker Folder you unzip earlier.


Extract Data File


Now right click on your .deb file > 7zip > Extract Here
That will give you two files control.tar and data.tar.
Right Click on data.tar.gz > 7zip > Extract Here
That will give you data.tar
Right Click on data.tar > 7zip > Extract Here
That will give you a folder called usr
Now Create a new folder called src and move folder usr into that folder.


Next edit the py2deb script you downloaded earlier


Upload source data to tablet


Connect to tablet using filezilla
Create folder called build in MyDocs Folder
Upload src folder and py2deb script to build folder.


Build Source


Open xterm on tablet
Type the following commands in xterm
Sudo gainroot
cd /home/user/MyDocs/build
python build_myapp.py
Follow the instructions given in xterm


Refresh view on filezilla > View > Refresh

Upload Source to extras-devel


Download themename.changes, themename.dsc, and themename.tar.gz files
Go to Garage Extras Assistant
Login and follow steps to upload files an add files to builder queue.
Wait about 30 minutes then your files will be on extra-devel.


Please let me know if you run into any problems following this guide.

joshua.maverick
10-13-2009, 10:53 AM
Thank you sir. Got a nice theme in mind, going to start later this week.

andrewfblack
10-13-2009, 11:59 AM
good luck if you have any questions let me know.

zdux0012
12-15-2009, 02:46 AM
I'd like a theme which would look identical to the default theme but with a green highlight instead of blue. I can script that in Gimp, could you alter your script to include some variables? (Ideally a gradient)

The script could work like this:
run color1 color2 filename1
unzip
run gimp script 1..n
zip as filename1

Parody
07-27-2010, 07:42 AM
Thanks for the tutorial, I have a question though
where do I find the default theme file (Nokia Nseries)?

zifis
10-27-2010, 09:54 AM
Hello, I just started fooling around with theme maker, but as I click on "build theme" the progress bar stays at 1% forever and no new files/folders are created.

I am using windows XP 32bit

Do you know what might be wrong?