← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #140119]: can i compile .slk

 

Question #140119 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/140119

    Status: Open => Answered

RaiMan proposed the following answer:
Principally it might be possible to make a .jar, that contains
everything needed.

Besides your .sikuli/.skl it needs the content of sikuli-script.jar and
the content of the libs folder (Windows/Linux) or the modified content
of the Frameworks folder (Mac).

Basic information can be found in feature request bug 696822

The .jar has to be configured, so that when started using java -jar it
starts the contained jython, that in turn starts processing your
contained script.py.

But in the moment, you have to add some bootstrap function, that does the following, when the .jar is started:
- set some relevant java system properties (class path, python path, ...)
- copy the native library modules (content of libs) to the appropriate temp folder (cannot be loaded from a .jar)
- set system path appropriately
- copy the contained images to a temp folder and set it to bundle path (Sikuli cannot load images from a .jar)

It might be easier in the moment to make a self-extracting zip (same
contents as above), that contains a .cmd, that starts the stuff.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.