PkgForge
GithubSoar
  • Orgs
    • PkgForge (Core)
      • About
      • Projects
        • Soarpkgs
        • bincache
        • pkgcache
      • People
    • PkgForge-Community
    • PkgForge-Dev
      • Projects
        • Anylinux-AppImages
      • People
    • PkgForge-Security
      • Projects
        • CertStream
  • Soar
    • Soar (Docs)
    • Comparisons
      • 1. Candidates
      • 2. Dependencies
      • 3. Packages
      • 4. Security
  • Formats
    • Binaries
      • Dynamic
      • Static
        • Build Notes
          • Cargo (Rust)
          • GoLang
          • Make
          • Nim
          • Nix
          • Vlang
          • Zig (Musl)
        • Build Tests
    • Packages
      • Archive
      • AppBundle
      • AppImage
      • FlatImage
      • GameImage (TBD)
      • NixAppImage
      • RunImage
      • Errors & Quirks
        • Fonts
        • Fuse
        • Namespaces
        • Zsync
  • SBUILD
    • Introduction
    • Specification
      • 0.Prerequisite
      • 1.Shebang
      • 2.Pkg
      • 3.Version
      • 4.AppID
      • 5.BuildAsset
      • 6.BuildUtil
      • 7.Category
      • 8.Description
      • 9.Desktop
      • 10.DistroPkg
      • 11.HomePage
      • 12.Icon
      • 13.License
      • 14.Maintainer
      • 15.Note
      • 16.Provides
      • 17.Repology
      • 18.SourceURL
      • 19.Tag
      • 20.x_exec
    • Instructions
      • ENV_VARS (x_exec.run)
      • ENV_VARS (SBUILDER)
      • NEEDED_FILES
      • Examples
  • Repositories
    • soarpkgs
      • Contribution
      • Copy of DMCA | Copyright (Cease & Desist)
      • Differences
      • FAQ
      • Infra
      • Metadata
      • Package-Request
      • Security
    • bincache
      • Cache
      • Contribution
      • Differences
      • DMCA | Copyright (Cease & Desist)
      • FAQ
      • Infra
      • Metadata
      • Package-Request
      • Security
    • pkgcache
      • Cache
      • Contribution
      • Differences
      • DMCA | Copyright (Cease & Desist)
      • FAQ
      • Infra
      • Metadata
      • Package-Request
      • Security
    • external
      • AM
      • cargo-bins
      • appimage.github.io
      • AppImageHub
    • Nests
  • Contact
    • Chat
Powered by GitBook
On this page

Was this helpful?

  1. SBUILD
  2. Instructions

ENV_VARS (SBUILDER)

Environment Variables for SBUILDER

PreviousENV_VARS (x_exec.run)NextNEEDED_FILES

Last updated 4 months ago

Was this helpful?

This is internal documentation meant for the SBUILDER, not for humans

  • Description: If the Build Was Successful or Failed, if It Failed (SBUILD_SUCCESSFUL==false) Bail & Exit Immediately (Still Copy ${SBUILD_OUTDIR} to SOAR_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 <ALWAYS Available>

  • Value:

  • Description: The Package ID (value: )

  • Also used as default OutputDir if -o | --outputPATH was NOT Specified (ONLY IF SBUILD_SUCCESSFUL==true)

  • Description: The Package Name + Package ID

  • Value:

  • Description: One of appbundle|appimage|archive|dynamic|flatimage|gameimage|nixappimage|runimage|static

  • ALWAYS Re-Checked using Magic Bytes for Utmost Sanity

  • dynamic|static are , don't need Integration (Desktop,Icons etc)

  • UNKNOWN means, the value was empty, Rechecked anyway

  • 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 IF SBUILD_SUCCESSFUL==truespecified using -o | --outputPATH, 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 to SOAR_CACHEDir

  • 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 | --keepduring prevous build), it is cleaned/purged with --clean-build or -c | --clean

Description: The Root (Temporary) Working Directory is Run From <ALWAYS Available>

All must exist in this Directory

writing SBUILD Scripts
ALL NEEDED Files
.pkg
.pkg_id
.pkg
+ .pkg_type
binaries (cli)
pkg_type
x_exec.run
NEEDED Files