Re: Packing a C# project.

"Isak Savo" <[email protected]> Thu, 12 Jun 2008 08:33:35 +0200
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
On Thu, Jun 12, 2008 at 1:03 AM, Neil Munro <[email protected]> wrote:
> Ok as far as I can tell it's working now, took me a while with "//"
> appearing where sometimes a prefixed forward slash was added sometimes it
> was not, depending on what functions were called, but it's all tidy now. So
> next problem.
>
> help.txt this should be in $PREFIX/share, which occurs at install time, ok I
> get it, but how do I implement this for autopackage?

I don't really know how to do this in monodevelop. What you want is
the equivalent of "make install" for mono programs.

See if there exist some sort of makefile integration for monodevelop
projects..  I've been meaning to write something like this, but
haven't had time. As a small teaser I can mention that I'm actually
developing a tool (similar to mkapspec, but less "wizardy") for
autopackage using c# which I intend to use as a pilot for making sure
autopackage can work good for mono apps.

> This is what I have so far:
>
>                 string sFileName = "";
>
>                 if ( File.Exists( "../share/help.txt" ) )
>                 {
>                     sFileName = "../share/help.txt";
>                 }
>
>                 else
>                 {
>                     sFileName = Path.Combine( BinReloc.DataDir, "help.txt"
> );
You should add "wasp" to this: Path.Combine(BinReloc.DataDir, "wasp/help.txt");

Take a look at your own /usr/share/ directory and see what other programs do.

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