const VERSION="0.27.0";
const SRC=src;
const DEST=dest;
const DOIT=config.apply;
const sourcesDir=`https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v${VERSION}`;
const sources=[
    "olm.yaml"
];
fn pre_pack() {
    for file in global::sources {
        shell(`curl -sL ${global::sourcesDir}/${file} > ${global::SRC}/${file}`);
    }
}
fn post_pack() {
    shell(`rm -f "${global::DEST}/operators.coreos.com_v1_OperatorGroup_global-operators.yaml" "${global::DEST}"/apiextensions*.yaml "${global::DEST}"/v1_Namespace*.yaml "${global::DEST}"/batch_v1_*.yaml`);
}
