TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/WyattBrashear/507ex-utils2/llms.txt
Use this file to discover all available pages before exploring further.
build command zips a project directory, prepends a structured FZX2 metadata header, computes a BLAKE2s hash over the ZIP payload, and writes the result as a .507ex file ready to distribute or upload to a CAR server. The header stores the hash, hash algorithm, a UUID, the creation timestamp, and a flag indicating whether a dependfile is present.
Usage
Path to the project directory to package. The directory must contain a
runfile.
The output file is written to <directory>.507ex in the parent directory.Required files
A plain-text file at the root of the project directory. Its contents are executed as a shell command when the
.507ex file is run with fzx2 exec. If this file is absent, the build fails immediately with No Runfile Detected!.Optional plain-text file listing dependency install instructions. When present, its contents are embedded in the metadata header and the
507ex-depends flag is set to True. Users are prompted to confirm dependency installation at exec time.How it works
Validate the directory
fzx2 checks that a runfile exists inside the target directory. If it does not, the build aborts with No Runfile Detected!.Read the dependfile (if present)
If a
dependfile exists, its raw text is read and later embedded in the metadata block.Create the ZIP archive
The entire directory is zipped using Python’s
shutil.make_archive. The resulting .zip is immediately renamed to <directory>.507ex.Compute the BLAKE2s hash
The ZIP payload is hashed using BLAKE2s (read in 8 192-byte chunks). This digest is stored in the header so
fzx2 exec can verify integrity before execution.Metadata header format
The header written to every.507ex file looks like the following:
Example
Project layout
runfile
dependfile
Build command
Success output
my_app.507ex is created in the current working directory (the parent of my_app/).
Errors
| Message | Cause |
|---|---|
No Runfile Detected! | The target directory contains no runfile. |
An error occured while building the Executable: <detail> | Any other exception during the build (permissions, disk space, etc.). |