unik documentation

Unik Documentation





1.1 -appName

This parameter to be used for run unik with a upk file instaled into your unik documents folder.
Require: 2 parameters
Issue: unik.exe -appName [only-upk-name]
Example: For run the mysql-example.upk what exist into ../Documents/unik/mysql-example.upk
Run: unik.exe -appName mysql-example
Note: A new instance of unik.exe can be running with others -appName parameters and unik always transform their apparience and funtionality.


1.2 -foldertoupk

This parameter to be used for make a upk file instaled into your unik documents folder and run unik with this upk.
Require: 4 parameters
Issue: unik.exe -foldertoupk [qml-folder-location] [any-app-id] [key]
Example: For make and run the main.qml and others qml files what exist into C:/my_folder_project/myapp/
Run: unik.exe -foldertoupk C:/my_folder_project/myapp/ v1001 ClientPayPass
Note: The user and key parameters are introduced into upk for a developer control and distribuition of the application.
Note: All unik free application has forever this pass: appid: unik-free key: free.


1.3 -folder

This parameter to be used for run your app from a local folder with qmls files.
Require: 2 parameters
Issue: unik.exe -folder [local-qml-folder-location]
Example: For run the main.qml and others qml files from a local folder, this command line load all qml files from the dir location.
Run: unik.exe -folder C:/remoteFolder


1.4 -remoteFolder

This parameter to be used for download and make a qml folder files and run your app downloaded if main.qml exist into this remote folder.
Require: 3 parameters
Issue: unik.exe -remoteFolder [remote-qml-folder-location] [string array files split by "main.qml|file2.qml|file3.qml"] [local-qml-folder-location-to-make-if-not-exist]
Example: For run the main.qml and others qml files from a remote folder, this command line download all qml files to the dir destination.
Run: unik.exe -remoteFolder http://unikdev.net/unik/unik-bot-1 "main.qml" "C:/remoteFolder"
Note: This parameters is will implemented for a next version of unik 1.49


Set unik Configuration

unik when is starting load a config file. The config file is config.json and file location is [system documents][unik documents folder]/config.json. Example: /home/nextsigner/Documents/unik/config.json

Set config.json for -folder

Json Struct:{"mode":"-folder", "arg1":"[local folder]"}
Json Example:{"mode":"-folder", "arg1":"/home/nextsigner/Desktop/app"}


Set config.json for -remoteFolder

Json Struct:{"mode":"-remoteFolder", "arg1":"[remote folder]", "arg2": "[source code file list]", "arg3":"[local folder to save remote files]"}
Json Example:{"mode":"-remoteFolder", "arg1":"http://yourdomain.com/qml-app-folder/", "arg2": "main.qml|Form.qml|View.qml", "arg3": "/home/nextsigner/Desktop/my-remote-app"}


Comentarios

Entradas populares