Launching after 0compile with dup-src

Björn Pollex <[email protected]>
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <[email protected]>
Hi all,

I’m trying to create a local feed for a project of mine that enables me to build it using 0compile. So far all that I am trying is to just call make and then run the build binary. My feed looks like this:

<?xml version="1.0"?>
<interface xmlns="http://zero-install.sourceforge.net/2004/injector/interface"
  xmlns:compile="http://zero-install.sourceforge.net/2006/namespaces/0compile">
  <name>my-application</name>

  <group>
    <implementation arch="*-src" id="." local-path="." version="0.1-pre" compile:dup-src="true">
      <command name="compile" shell-command="make">
	<compile:implementation>
	  <command name="run" path=“my-application" />
	</compile:implementation>
      </command>
    </implementation>
  </group>
</interface>

I am using dup-src because the makefile only works correctly if it is executed from the source root. Something like make -f $SRCDIR/Makefile causes build errors. I will fix this soon, but I’d like to get this to work first.

To build it, I run the following commands:

0compile setup my-application.xml
cd my-application
0compile build

This works and compiles everything. However, when I try to run it, it doesn’t find the executable:

Path '/Users/bjoern/my-application/my-application/my-application-darwin-x86_64/my-application' does not exist: see <command> at /Users/bjoern/my-application/my-application/my-application-darwin-x86_64/0install/feed.xml:7:103
... building command for /Users/bjoern/my-application/my-application/my-application-darwin-x86_64/0install/feed.xml
... running my-application-darwin-x86_64/0install/feed.xml

After the build, the executable is at my-application/build/my-application. How do I have to write the run command to find that executable?

Cheers,

	Björn

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/

_______________________________________________
Zero-install-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zero-install-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.