interface InstallPlan

What to install, and over what.

import type { InstallPlan } from './install.ts';

const plan: InstallPlan = {
  release: { tag: 'v1.0.0', version: '1.0.0', assets: [] },
  assetName: 'qunitx-deno-linux-x64.tar.gz',
  binaryPath: '/opt/qunitx/qunitx',
};
plan.assetName; // the archive whose contents replace plan.binaryPath

Properties

The release to install, as Release find returned it.

assetName: string

The archive to download from it.

binaryPath: string

The running executable to replace, and whose directory receives the sidecar.

optional
platform: NodeJS.Platform

Path and replace semantics to apply. Defaults to the host's.

Usage

import { type InstallPlan } from "lib/commands/upgrade/install.ts";