Jump to content

Creating .bin files or .run files


Relic2K
 Share

Recommended Posts

Could you create an installer for the umod  ONP (Operation Na Pali)? 

 

I have one of them also :)

 

Ops, maybe I'm wrong. I played Return to Na Pali mission pack with your installer just right, but is the same this mission pack and the umod ONP single player? So, i have no win$ and I can't probe it.

Newly a lot of thanks.

Link to comment
Share on other sites

Ops, maybe I'm wrong. I played Return to Na Pali mission pack with your installer just right, but is the same this mission pack and the umod ONP single player?

 

ONP is a free Unreal Tournament MOD

Return To Na Pali is a stand-alone expansion to Unreal, although it is like a MOD when playing it in Linux

Link to comment
Share on other sites

Creating a self-extracting archive is not all that hard. I'm not on Linux right now, but here's the (not so) rought idea:

 

First create your archive, the way you want. example:

$ tar cjf myarchive.tar.bz2 location1 location2 location3 ...

Next get the size of your archive. example:

$ ls -l myarchive.tar.bz2

-rw-rw----  mylogin  mygroup  ...  12345  myarchive.tar.bz2

Then create a bash script to un-archive this archive exactly the way you want, BUT reading the file from itself (explanation later). minimal example:

#!/bin/bash



tail -c 12345 "$0" | tar xjpf -

exit

Next step is to create the wanted executable. example:

$ cat myscript.sh myarchive.tar.bz2 >myexecutable.sh

$ chmod +x myexecutable.sh

 

This should work because the first part of the global file is the script you wrote, and the tail command will get the last N bytes from the global file, which happen to be the archive, because of the cat command that grouped the two files. Since the end of the global file is not shell scripting, the script you write MUST end with exit.

 

I hope this helps.

 

Yves.

Link to comment
Share on other sites

Creating a self-extracting archive is not all that hard.

 

yes, it's really easy when you use makeself :shock:

Yes of course. I just wanted to point out an alternative. Linux is all about alternatives ;-)

With this other solution, you have total control about the way the archives extracts itself. You can:

- uncompress to a temporary directory

- run commands such as chmod or chown,

- even execute scripts like if which checkinstall; then checkinstall; else make install; fi...

There's no limit.

 

Yves.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...