diff --git a/projects/github.com/mas-cli/mas/package.yml b/projects/github.com/mas-cli/mas/package.yml index cb0d54800b..93fd6e79dc 100644 --- a/projects/github.com/mas-cli/mas/package.yml +++ b/projects/github.com/mas-cli/mas/package.yml @@ -11,17 +11,29 @@ platforms: - darwin build: - - run: - mv $PROP Sources/mas/Package.swift + - run: zsh $PROP >Package.swift + working-directory: Sources/mas/Utilities prop: | + #!/bin/zsh + + SWIFT_VERSION="$(printf %s "${${$(swift --version 2>/dev/null)#Apple Swift version }%%$'\n'*}")" + SWIFT_DRIVER_VERSION="$(printf %s "${${$((swift --version 3>&2 2>&1 1>&3) 2>/dev/null)#swift-driver version: }% }")" + + cat <