Re: Packing a C# project.

"Neil Munro" <[email protected]> Sun, 22 Jun 2008 13:18:17 +0100
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
2008/6/18 Neil Munro <[email protected]>:

>
>
> 2008/6/18 Isak Savo <[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.
>
>
> It appears I only depend on Mono then.
>
>
>>
>>
>> > 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 :)
>
>
> It was quite educational, yes.
>
>
>>
>> > 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
>
>
> Sorry, typo. Realised that AFTER I sent it. Typical. Presumably your
> telling me to remove prepareBuild line because you assume my project is NOT
> using configure and make? If so, see below. ;)
>
>>
>>
>> > 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
>
>
> My project DOES use configure and makefiles. MonoDevelop can create a
> tarball of sources and create the configure and make files using auto-tools.
> My plan was to create such a tarball and then do a bog standard autopackage
> based upon that.
>
>
>>
>>
>> > 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!
>
>
> Thanks :D
>
>>
>>
>> -Isak
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
>> For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
>>
>>
>
May I ask if you've had chance to look at my file yet?