|
|
2010-09-16
, 17:16
|
|
Posts: 203 |
Thanked: 152 times |
Joined on May 2009
@ Austria
|
#2
|
|
|
2010-09-16
, 19:13
|
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#3
|
|
|
2010-09-16
, 20:01
|
|
Posts: 203 |
Thanked: 152 times |
Joined on May 2009
@ Austria
|
#4
|
I have updated the DrinkCounter app, i did my last upload with PR1.1
I'm using py2deb because i think its the easiest way.
I dont know why, but i'm not able to upload my app because of unmet dependencies
build_myapp.py for py2deb:
#!/usr/bin/python2.5 # -*- coding: utf-8 -*- ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published ## by the Free Software Foundation; version 2 only. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## import py2deb import os if __name__ == "__main__": try: os.chdir(os.path.dirname(sys.argv[0])) except: pass print p=py2deb.Py2deb("drinkcounter") #This is the package name and MUST be in lowercase! (using e.g. "mClock" fails miserably...) p.description="Count how many drinks do you have and calculate how many alcohol is in your blood.\nDont trust this value, its estimated...but maybe this software helps you with payment if you dont remember ;)" p.author="Andreas Weidlinger" p.mail="andreas.weidlinger@gmail.com" p.depends = "libqt4-core, libqt4-gui, libstdc++6" p.section="user/utilities" p.icon = "/home/user/drinkCounter/drinkCounter.png" p.arch="armel" #should be all for python, any for all arch p.urgency="low" #not used in maemo onl for deb os p.distribution="fremantle-1.2" p.repository="extras-devel" p.xsbc_bugtracker="http://bugs.maemo.org" # p.postinstall="""#!/bin/sh # chmod +x /usr/bin/mclock.py""" #Set here your post install script # p.postremove="""#!/bin/sh # chmod +x /usr/bin/mclock.py""" #Set here your post remove script # p.preinstall="""#!/bin/sh # chmod +x /usr/bin/mclock.py""" #Set here your pre install script # p.preremove="""#!/bin/sh # chmod +x /usr/bin/mclock.py""" #Set here your pre remove script version = "0.6.2" #Version of your software, e.g. "1.2.0" or "0.8.2" build = "4" #Build number, e.g. "1" for the first build of this version of your software. Increment for later re-builds of the same version of your software. #Text with changelog information to be displayed in the package "Details" tab of the Maemo Application Manager changeloginformation = "Fixed bugs, added car-drive estimation" dir_name = "src" #Name of the subfolder containing your package source files (e.g. usr\share\icons\hicolor\scalable\myappicon.svg, usr\lib\myapp\somelib.py). We suggest to leave it named src in all projects and will refer to that in the wiki article on maemo.org #Thanks to DareTheHair from talk.maemo.org for this snippet that recursively builds the file list for root, dirs, files in os.walk(dir_name): real_dir = root[len(dir_name):] fake_file = [] for f in files: fake_file.append(root + os.sep + f + "|" + f) if len(fake_file) > 0: p[real_dir] = fake_file print p r = p.generate(version,build,changelog=changeloginformation,tar=True,dsc=True,changes=True,build=False,src=True)Output from Autobuilder: