Re: Packing a C# project.

"Isak Savo" <[email protected]> Wed, 18 Jun 2008 08:41:19 +0200
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
2008/6/18 Neil Munro <[email protected]>:
> My understanding of reading the documentation, which I have been doing, just
> completing sections as well as I can when I reach them.
>
> Stage 1:
>
> 1) Binary relocatability, I believe I have done this.

Yes.

> 2) Dependancy audit, there's only one, mono. I know this from guess work and
> following the ldd thing on the website. However running it on the exe file
> with the | grep NEEDED did not work. I assume because it's not an ELF
> binary.

I will probably need to do some work in autopackage to help you with this.

As you noticed, the .exe's aren't ELF binaries but .NET assemblies
(microsofts format).

You can easily see all dependencies by looking in monodevelop under
the "References" folder in the project view. (See:
http://assets.devx.com/articlefigs/16626.png )... I wish it was this
simple for ELF binaries :-)

If you only have mscorelib and System.* stuff there, then you only
depend on mono.

> Stage 3:
>
> 1) Created the default.apspec.in file using the command line (from
> template).
>
> Stage 4:
>
> 1) Edited the file manually to place shortname, description, version number
> etc into it.

The above could have been handled by mkapspec, but it's also good that
you did it yourself since you learn more about how it all works :)
> Stage 5:
>
> 1) Created the install.sh file which is as above, it installs the help.txt
> file.
> 2) Placed ./install.sh %build_root in the [PrepareBuild] section just above
> preparebuild.

You can remove prepareBuild line and it should be a $ instead of % for
variable names in unix:
./install.sh $build_root

> 3) Left [BuildUnprepare] as it was.


> Stage 6:
>
> 1) use echo '*' | import to import all files.
> 2) I assume I AM using prepareBuild so skip over the next section.

No, prepareBuild can only be used for projects which use configure and
makefiles... For now, just use your install script there and make sure
you compile with monodevelop manually before creating the package

> Stage 7:
>
> 1) I assume the only dependency considering I am writing in C# is mono.

I think so.

> Please find attached the default.apspec.in file which I have been working
> on. At a guess it's only stage 7 I may be having issues with, if I am wrong,
> well then I am wrong and have to go back a bit. But I'd rather have been
> right.

I will take a look at it later. Progress so far looks good!

-Isak

---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]