Notices


Reply
Thread Tools
Posts: 44 | Thanked: 28 times | Joined on Mar 2010
#11
Originally Posted by robin92 View Post
give me a name for the icons
Mango iconset?
 
robin92's Avatar
Posts: 476 | Thanked: 438 times | Joined on Nov 2010 @ Sweden
#12
Originally Posted by ny-hardcore View Post
Mango iconset?

yea good name I wait for more name
I get error when I pack the icon pack :/
 
robin92's Avatar
Posts: 476 | Thanked: 438 times | Joined on Nov 2010 @ Sweden
#13
My lastest work !
Attached Images
 
 

The Following 7 Users Say Thank You to robin92 For This Useful Post:
elie-7's Avatar
Posts: 968 | Thanked: 663 times | Joined on Jun 2010 @ Australia (Melbourne/vic) / Lebanon (Zgharta/north)
#14
this icon pack would be awesome to have, waiting for it
__________________
rolling down the street, smoking ENDO, sipping on gin and juice
laid back, with my mind on my money and my money on my mind .
 
robin92's Avatar
Posts: 476 | Thanked: 438 times | Joined on Nov 2010 @ Sweden
#15
Originally Posted by elie-7 View Post
this icon pack would be awesome to have, waiting for it
yea but get some error when I pack with py2deb :/

I have almost made all general icon in 64x64 folder


EDIT!!! SOMEone that will help me with pack the iconset?
Help me if you will try it

Here is the build log :/
https://garage.maemo.org/builder/fremantle/mango_0.1-1/

Last edited by robin92; 2011-05-28 at 11:32.
 

The Following User Says Thank You to robin92 For This Useful Post:
Mike Fila's Avatar
Posts: 412 | Thanked: 480 times | Joined on Feb 2011 @ Bronx, NY
#16
Originally Posted by robin92 View Post
yea but get some error when I pack with py2deb :/

I have almost made all general icon in 64x64 folder


EDIT!!! SOMEone that will help me with pack the iconset?
Help me if you will try it

Here is the build log :/
https://garage.maemo.org/builder/fremantle/mango_0.1-1/

You dont have to place all the hicolor icons in your package just the ones that you have made. Whatever is missing will be copied automatically from hicolor.

Post your build_myapp.py script you used for the build.
 
robin92's Avatar
Posts: 476 | Thanked: 438 times | Joined on Nov 2010 @ Sweden
#17
Code:
#!/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("mango")
    p.description="white circles icon pack"
    p.author="robin92"
    p.mail="r.lundgren92@gmail.com"
    p.depends = "gtk2-engines-sapwood, hildon-theme-cacher"
    # Edit this based on your import statements (for example, you probably will not need pygame)
    p.section="user/desktop"
    # When editing the .section, make sure to use [[Packaging#Sections|an allowed section]] - otherwise the autobuilder will give a warning.
    p.icon = "/home/user/MyDocs/mango/logo.png"
    p.arch="all"                #should be all for python, any for all arch
    p.urgency="low"             #not used in maemo onl for deb os
    p.distribution="fremantle"
    p.repository="extras-devel"
    p.postinstall="""#! /bin/sh -e

# Added by maemo-optify, with apologies.

optify () {
    f="$1"
    if [ ! -h "/$f" ]; then

        # This is not atomic, but re-startable: if interrupted, doing
        # this again will eventually finish with the correct result.
        #
        # XXX - At least that's the idea, but tar needs to be properly
        #       instructed to overwrite the targets.

        echo >&2 "Optifying $f -> /opt/maemo/$f"
        if [ -d "/$f" ]; then
            (cd "/" && tar cf - "$f") | (cd "/opt/maemo/" && tar xf -)
        fi
        mv "/$f" "/$f.removed"
        ln -s "/opt/maemo/$f" "/$f"
    fi

    if [ -e "/$f.removed" ]; then
        rm -rf "/$f.removed"
    fi
}

"""

    #p.postremove=
    #p.preinstall="""#!/bin/sh
    #p.preremove="""#!/bin/sh

version = "0.1"           #Version of your software, for example "1.2.0" or "0.8.2"
build = "1"                 #Build number, for example "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 = "Faraway from done!" 
dir_name = "src"            #Name of the subfolder containing your package source files (for example, 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)
 
robin92's Avatar
Posts: 476 | Thanked: 438 times | Joined on Nov 2010 @ Sweden
#18
Here is my build.py this worked on my theme


Originally Posted by robin92 View Post
Code:
#!/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("mango")
    p.description="white circles icon pack"
    p.author="robin92"
    p.mail="r.lundgren92@gmail.com"
    p.depends = "gtk2-engines-sapwood, hildon-theme-cacher"
    # Edit this based on your import statements (for example, you probably will not need pygame)
    p.section="user/desktop"
    # When editing the .section, make sure to use [[Packaging#Sections|an allowed section]] - otherwise the autobuilder will give a warning.
    p.icon = "/home/user/MyDocs/mango/logo.png"
    p.arch="all"                #should be all for python, any for all arch
    p.urgency="low"             #not used in maemo onl for deb os
    p.distribution="fremantle"
    p.repository="extras-devel"
    p.postinstall="""#! /bin/sh -e

# Added by maemo-optify, with apologies.

optify () {
    f="$1"
    if [ ! -h "/$f" ]; then

        # This is not atomic, but re-startable: if interrupted, doing
        # this again will eventually finish with the correct result.
        #
        # XXX - At least that's the idea, but tar needs to be properly
        #       instructed to overwrite the targets.

        echo >&2 "Optifying $f -> /opt/maemo/$f"
        if [ -d "/$f" ]; then
            (cd "/" && tar cf - "$f") | (cd "/opt/maemo/" && tar xf -)
        fi
        mv "/$f" "/$f.removed"
        ln -s "/opt/maemo/$f" "/$f"
    fi

    if [ -e "/$f.removed" ]; then
        rm -rf "/$f.removed"
    fi
}

"""

    #p.postremove=
    #p.preinstall="""#!/bin/sh
    #p.preremove="""#!/bin/sh

version = "0.1"           #Version of your software, for example "1.2.0" or "0.8.2"
build = "1"                 #Build number, for example "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 = "Faraway from done!" 
dir_name = "src"            #Name of the subfolder containing your package source files (for example, 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)
 
Mike Fila's Avatar
Posts: 412 | Thanked: 480 times | Joined on Feb 2011 @ Bronx, NY
#19
Try this i think it may be because of the listed dependencies. The only thing that you need there is theme-customizer. Here is a cleaned up version of what you posted above just enter your info where you see "your" and remove .txt and example from the file name.
Attached Files
File Type: txt Example build_myapp.py.txt (2.4 KB, 148 views)
 

The Following User Says Thank You to Mike Fila For This Useful Post:
Mike Fila's Avatar
Posts: 412 | Thanked: 480 times | Joined on Feb 2011 @ Bronx, NY
#20
also take out the index.theme~ form your source files just leave index.theme
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:02.