Skip to content

EXAMPLE component_recipe - Github source - OpenBOR

Example: component_recipe.json - Github - OpenBOR

{
  "openbor": [
    {
      "source_url": "https://github.com/DCurrent/openbor/releases/download/{VERSION}/OpenBOR-Linux-x64-v4.0.Build.*.AppImage",
      "source_type": "github_release",
      "version": "$OPENBOR_DESIRED_VERSION",
      "extraction_type": "appimage",
      "assets": [
        {
          "type": "dir",
          "source": "usr/bin",
          "dest": "bin"
        },
        {
          "type": "create",
          "dest": "component_version",
          "contents": "$SOURCE_VERSION"
        },
        {
          "type": "file",
          "source": "$REPO_ROOT/$COMPONENT_NAME/component_functions.sh",
          "dest": "$COMPONENT_ARTIFACT_ROOT"
        },
        {
          "type": "file",
          "source": "$REPO_ROOT/$COMPONENT_NAME/component_launcher.sh",
          "dest": "$COMPONENT_ARTIFACT_ROOT"
        },
        {
          "type": "file",
          "source": "$REPO_ROOT/$COMPONENT_NAME/component_manifest.json",
          "dest": "$COMPONENT_ARTIFACT_ROOT"
        },
        {
          "type": "file",
          "source": "$REPO_ROOT/$COMPONENT_NAME/component_recipe.json",
          "dest": "$COMPONENT_ARTIFACT_ROOT"
        },
        {
          "type": "file",
          "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh",
          "dest": "$COMPONENT_ARTIFACT_ROOT"
        }
      ],
      "libs": [
        {
          "library": "libSDL2_gfx-1.0.so.0",
          "source": "usr/lib",
          "dest": "shared-libs"
        },
        {
          "library": "libvpx.so.5",
          "source": "usr/lib",
          "dest": "shared-libs"
        }
      ]
    }
  ]
}