Jxcore

  • Home
  • Tech
  • How To
  • Best Sites List
  • Best Apps
  • free ringtones music downloads

Packaging & Code Protection

September 21, 2017

Packaging & Code Protection
Rate this post

Introduction

Stability level

Current stability level for Packaging Code Protection:

– Pre b2.1.3 code protection part logic is removed from the native side and may not protect your IP.
– It’s back again with the b2.3.0. Use embedding feature for source code protection.
Visit here to report an issue or request a feature enhancement.

JXcore introduces a unique feature for packaging and encryption of source files and other assets.

Let’s assume you have a large project consisting of many files. This feature packs them all into a single file to simplify the distribution. It also protects your server side javascript code by encrypting all source files.

Long story short

The full documentation is further down the page. But if you want a summary on how to create JX package and run, here it is:

> jx package helloworld.js "Hello world"
> jx helloworld.jx

JX package

About JX package file

The JX package file is what you get as a result of compiling, packaging and encrypting of your project. It’s a binary file used only by JXcore executable. It contains all of the script files of your project, as well as assets, which can be considered as static resources.

Compiling

Creating a JX package out of your project is very easy. You can either use a command line. Or you can use the Terminal (or Command Window on Windows).

First, go to the directory, where the project is located:

> cd Hello_world

Basically, the compilation tool needs a JXP project file. You can read more about this in another section: JXP project file.

But you can also generate it if you want to make your life easier. To accomplish this, just type:

> jx package helloworld.js "Hello world"

More on this can be found at package.

As a result, you will receive both helloworld.jxp (the projects description file) and helloworld.jx (the final package itself).

Now, having the helloworld.jxp file, you could modify it using a text editor (to add a version number, for example), and later recompile the JX package by:

> jx compile helloworld.jxp

Launching

JX packages can be executed as follows:

> jx my_project.jx

Obviously, you need to have JXcore installed first. For this, please visit the Downloads page.

You can also run the package in multiple instances.

> jx mt my_project.jx
or
> jx mt-keep my_project.jx

For more details, please refer here.

JXP project file

About JXP project file

The JXP file is a JX package description. It contains information about the package. This is also the input file for the compilation of a JX file. It means, if you want to package your project into a JX package, you need to create a JXP project file first.

You can do it either manually or by using our jx package generation tool.

Generating

JXcore contains an internal JXP file generation tool. It recursively scans the current folder and generates a JXP package information file based on all the files in that directory.

It’s very easy to use from the command line. You can use the Terminal (or Command Window on Windows) for this.

First, go to the directory, where your project is located:

Type jx package to see the command syntax for creating JXP file

Suppose you have a simple Hello_World project, with just two files: helloworld.js and index.html.

Now you can create the first JXP file with the following command:

> jx package helloworld.js "Hello World"


Initially, the tool generates JXP project file (helloworld.jxp). Then it creates the output package helloworld.jx by using the project file. In the end, you’ll have the following files in the folder

Now, you can move helloworld.jx file to another folder and type the command:

> jx helloworld.jx

You are done!

Check 3gp mobile movies sites list and watch free movies online

Read other posts:

  • Watch anime online free english dubbed
  • free music download apps for android
  • Free movie streaming sites no sign up
  • Watch Tv shows online free
  • Free movie download sites
  • Watch movies online free without downloading

Related

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Xmodgames – Download Xmod Apk For Android & iOS [Official]
  • Link2sd App Download for Android
  • Game Guardian APK Download for Android
  • Business Case for JavaScript and Node.js / JXcore
  • Packaging & Code Protection
  • Multithreaded Javascript Tasks
  • 80+ Legal Sites to Download Free Ebooks
  • Managing Node.JS Applications with JXcore Plesk Extension
  • 50 Funny Things to Ask Siri – Funny Questions to Ask Siri
  • 10 Best Free Video Players for Android

Top Posts & Pages

  • Xmodgames - Download Xmod Apk For Android & iOS [Official]

Pages

  • About
  • Contact
  • Downloads

ABOUT JXCORE

JXCore is a technology blog which mainly focuses on Best sites list related articles. Along with it, we also share tech tricks and some programming tutorials.

Copyright © 2018 · Jxcore