| 123456789101112131415161718192021 |
- #!/usr/bin/env zx
- import 'zx/globals';
- import {
- cliArguments,
- getProgramFolders,
- workingDirectory,
- } from '../utils.mjs';
- // Save external programs binaries to the output directory.
- import './dump.mjs';
- // Configure additional arguments here, e.g.:
- // ['--arg1', '--arg2', ...cliArguments()]
- const buildArgs = cliArguments();
- // Build the programs.
- for (const folder of getProgramFolders()) {
- const manifestPath = path.join(workingDirectory, folder, 'Cargo.toml');
- await $`cargo-build-sbf --manifest-path ${manifestPath} ${buildArgs}`;
- }
|