← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #165282]: While distributing Sikuli executable to clients, do we need to install Sikuli on client's pc?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
To protect your code is not possible on the Python level (even a .skl is
only a zipped version of your script folder, which is some disguise but
not a protection).

You have to transpose your script to Java code and finally wrap
everything together as a .jar.

This would be run as

java -cp path-to-some-dir/sikuli-script.jar -jar path-to-some-dir/your-
script.jar

or even

java -jar path-to-some-dir/your-script.jar
if you integrate sikuli-script.jar into your script jar.

This would protect your code, but you need some feature, to copy the
images from inside the .jar to a temp folder outside (as far as I
understand: the images cannot be loaded from inside a .jar) and you
still need the libs and path stuff (which could be implemented in your
jar rather simple similar to the image copy).

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