{
  "name": "sync-binaries",
  "root": "scripts/sync-binaries",
  "targets": {
    "run": {
      "executor": "nx:run-commands",
      "dependsOn": [{"projects": "pmg", "target": "build-snapshot"}],
      "options": {
        "command": "go run ./scripts/sync-binaries/ --strict --verify-bins --artifacts-path dist/artifacts.json --packages-path ./packages",
        "cwd": "{workspaceRoot}"
      },
      "inputs": ["goSyncSources", "{workspaceRoot}/dist/artifacts.json"],
      "outputs": [
        "{workspaceRoot}/packages/pmg-linux-x64/bin",
        "{workspaceRoot}/packages/pmg-linux-arm64/bin",
        "{workspaceRoot}/packages/pmg-darwin-x64/bin",
        "{workspaceRoot}/packages/pmg-darwin-arm64/bin",
        "{workspaceRoot}/packages/pmg-win32-x64/bin"
      ]
    },
    "run-release": {
      "executor": "nx:run-commands",
      "options": {
        "command": "go run ./scripts/sync-binaries/ --strict --verify-bins --artifacts-path dist/artifacts.json --packages-path ./packages --set-version $VERSION",
        "cwd": "{workspaceRoot}"
      },
      "inputs": ["goSyncSources", "{workspaceRoot}/dist/artifacts.json"],
      "outputs": [
        "{workspaceRoot}/packages/pmg-linux-x64/bin",
        "{workspaceRoot}/packages/pmg-linux-arm64/bin",
        "{workspaceRoot}/packages/pmg-darwin-x64/bin",
        "{workspaceRoot}/packages/pmg-darwin-arm64/bin",
        "{workspaceRoot}/packages/pmg-win32-x64/bin"
      ],
      "cache": false
    }
  }
}
