Results 1 to 7 of 7

Thread: Creating static packages

  1. #1
    Join Date
    Oct 2007
    Location
    Aleppo, Syria
    Beans
    89
    Distro
    Kubuntu

    [solved] Creating static packages

    Hi All,

    I want to know how I can create static package (standalone package) just like most MS windows installers?

    Static package example:
    http://www.wormux.org/wiki/download.php?/en/
    Last edited by mhdbnoimi; July 19th, 2009 at 03:21 PM.

  2. #2
    Join Date
    Apr 2008
    Beans
    37
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Creating static packages

    A static package you download (wormux-0.8.4-static-x86.sh) is in fact a .tar.gz archive with a small wrapper written in sh.
    When you execute it the content of archive is unpacked to tmp folder and then a game is launched. This archive contains not only binary and data files (i.e. music and graphics) but also all needed libraries.

    You can see for yourself how it looks by doing:
    Code:
    cat wormux-0.8.4-static-x86.sh |tail -n +11 |tar xz
    This command will create a new folder wormux-0.8.4svn-r that contains all the files.

    Now to create a static package like that all you have to do is prepare required files, compress them and create the small sh wrapper that unpacks it and runs a program. Now, I know that there is a package that prepare such a wrapper but I can't think of its name. But you can use the script that is distributed with wormux. You will get it by doing
    Code:
    head -11 wormux-0.8.4-static-x86.sh
    Last edited by kklimonda; July 8th, 2009 at 06:11 AM.

  3. #3
    Join Date
    Oct 2007
    Location
    Aleppo, Syria
    Beans
    89
    Distro
    Kubuntu

    Re: Creating static packages

    But you can use the script that is distributed with wormux
    I think this is not a practical solution, because there are many packaging tools such as installjammer working like windows installers (actually it's cross-plateforms tool) but most of them don't fix dependecy hell where this problem not exist at all in windows, but I noticed that there are some softwares dealing with this problem in mysteries way like wormux and QtCreator.

    I know exactly what wormux-0.8.4-static-x86.sh does, but how they get all dependecies of wormux excutable? this is exactly what I'm looking for in Linux/ubuntu.

    In windows this is not a problem at all, because there is a free tool called Dependecy Walker can collect whole needed files for specific excutable, where in Linux/ubuntu I cound't find like this tool!!

  4. #4
    Join Date
    Apr 2008
    Beans
    37
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Creating static packages

    Quote Originally Posted by mhdbnoimi View Post
    I know exactly what wormux-0.8.4-static-x86.sh does, but how they get all dependecies of wormux excutable? this is exactly what I'm looking for in Linux/ubuntu.

    In windows this is not a problem at all, because there is a free tool called Dependecy Walker can collect whole needed files for specific excutable, where in Linux/ubuntu I cound't find like this tool!!
    You can use ldd binary to get a list of libraries it is linked against.

  5. #5
    Join Date
    Oct 2007
    Location
    Aleppo, Syria
    Beans
    89
    Distro
    Kubuntu

    Re: Creating static packages

    Quote Originally Posted by kklimonda
    You can use ldd binary to get a list of libraries it is linked against.
    Thanks, this is exactly what I'm looking for, but is there any GUI application for ldd

  6. #6
    Join Date
    May 2009
    Beans
    5

    Re: Creating static packages

    You might also be interested in GiftWrap, a .deb package creation wizard. It's brand new and only has basic functionality but I already couldn't live without it.

    http://giftwrap.tuxfamily.org/index.php?

    ---

    If no GUI front-end to ldd exists I'll make one.

  7. #7
    Join Date
    Oct 2007
    Location
    Aleppo, Syria
    Beans
    89
    Distro
    Kubuntu

    [solved] Creating static packages

    Quote Originally Posted by badeagle
    You might also be interested in GiftWrap, a .deb package creation wizard.
    Nice, it's a wizard but it can't collect all needed dependencies. Anyway kklimonda answered my question clearly but if anyone wants to provide me any gui application just like ldd I'll be glad.

    Thanks all

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •