20.x_exec
Code Execution that produces the Required Artifacts during SBUILD (TYPE: ENFORCED)
Main Fields
#Example ONLY
x_exec:
shell: "bash" #Invokes /usr/bin/env ${SHELL}, bash in this case
pkgver: |
${RAW SHELL CMDS TO FETCH VERSION}
run: |
${RAW SHELL CMDS TO BUILD|DOWNLOAD|FETCH PACKAGE}
Additional Fields
arch
conflicts
depends
entrypoint
#Example ONLY
x_exec:
entrypoint: "${PATH TO MAIN BINARY aka $SBUILD_PKG}"
shell: "bash"
pkgver: |
#stuff
run: |
#stuff
#Another Example
x_exec:
#${SBUILD_TMPDIR} is NOT SUPPORTED for Obvious reasons
entrypoint: "${SBUILD_OUTDIR}/path/example"
#If you only use `/path/example` or `path/example`, it is assumed as: `${SBUILD_OUTDIR}/path/example`
entrypoint: "path/example" #Same as writing ${SBUILD_OUTDIR}/path/example
shell: "bash"
pkgver: |
#stuff
run: |
#stuff
#The entrypoint entrypoint: "${SBUILD_OUTDIR}/bin/example-cli" #The structure after a successful Build ${SBUILD_OUTDIR} ├── bin │ ├── example-cli │ └── example-helper #Then, it's symlinked as ${SBUILD_OUTDIR} ├── example-cli --> ./bin/example-cli ├── bin │ ├── example-cli │ └── example-helper
os
host
Last updated
Was this helpful?