ENV_VARS (SBUILDER)
Environment Variables for SBUILDER
This is internal documentation meant for the SBUILDER
, not for humans writing SBUILD Scripts
Description: If the Build Was Successful or Failed, if It Failed (
SBUILD_SUCCESSFUL
==
false
) Bail & Exit Immediately (Still Copy${SBUILD_OUTDIR}
toSOAR_CACHE
) (Also Copy
${SBUILD_TMPDIR}
(PATH:${SBUILD_OUTDIR}/
SBUILD_TEMP
) if used-k | --keep
Values:
true
|false
Description: The Package Name, used as Prefix for ALL NEEDED Files <ALWAYS Available>
Value:
.pkg+.pkg_type
Also used as default OutputDir if
-o | --output
PATH
was NOT Specified (ONLY IFSBUILD_SUCCESSFUL
==
true
)
Description: One of
appbundle|appimage|archive|dynamic|flatimage|gameimage|nixappimage|runimage|static
ALWAYS Re-Checked using Magic Bytes for Utmost Sanity
dynamic|static
are binaries (cli), don't need Integration (Desktop,Icons etc)
UNKNOWN
means, thepkg_type
value was empty, Rechecked anyway
Description: The Root (Temporary) Working Directory
x_exec.run
is Run From <ALWAYS Available>All NEEDED Files must exist in this Directory
This Directory is moved to
SOAR_CACHE
oafter Build Finishes (Regradless if Successful | Failed) but only depth 1 unless used-k | --keep
which would move the entire directory including${SBUILD_TMPDIR}
(PATH:${SBUILD_OUTDIR}/
SBUILD_TEMP
)After moving to
SOAR_CACHE
, it is also copied to OutputDir ONLY IFSBUILD_SUCCESSFUL
==
true
specified using-o | --output
PATH
, otherwise this is copied to${CWD}/${SBUILD_PKG}
directory.if
SBUILD_SUCCESSFUL
==
false
, don't copy it to OutputDir , fetch the logs & show errors along with printing realpath toSOAR_CACHE
Dir
Description: The SBUILD_TEMP Directory inside ${SBUILD_OUTDIR} (PATH:
${SBUILD_OUTDIR}/
SBUILD_TEMP
), used for storing NON-NEEDED Files <ALWAYS Available>This dir is cleaned (Not Copied to
SOAR_CACHE
) by Default unless used-k | --keep
If rebuilding, & this dir already exists (User used
-k | --keep
during prevous build), it is cleaned/purged with--clean-build
or-c | --clean
Description: JSON Metadata file, available at
${SBUILD_OUTDIR}/${SBUILD_PKG}.json
This is auto created by the SBUILDER at the end of a BUILD (
SBUILD_SUCCESSFUL
==
true
)
Last updated