Skip to content

Latest commit

 

History

History

json_embed

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

JSON Embedding

Embed JSON into Executables

Tuw has a command-line utility to embed JSON into an executable.
Type Tuw merge in the command prompt (or terminal).
It'll merge Tuw and gui_definition.json into Tuw.new.
The merged executable can create a GUI without needing gui_definition.json!

Tuw merge

You can also specify the file paths with the -j and -e options.

Tuw merge -j gui_definition.json -e Tuw.new

And you can use -f to skip the overwrite confirmation.

Tuw merge -j gui_definition.json -e Tuw.new -f

Extract JSON from Executables

You can use the split command if you want to extract a JSON file from the merged executable.

Tuw.new split -j extracted.json -e Tuw -f

GUI wrapper for JSON Embedding

The JSON file in this folder is for JSON embedding.
This means Tuw will act as the GUI wrapper for itself.

embed json