浏览文件
test-app-updates.sh
8 行 · 324 B历史下载| 1 | |
| 2 | set -euo pipefail |
| 3 | cd "$(dirname "$0")/.." |
| 4 | temporary="$(mktemp -d)" |
| 5 | trap 'rm -rf "$temporary"' EXIT |
| 6 | swiftc -O -parse-as-library -framework Cocoa -framework Security desktop/Updates.swift desktop/UpdatesTests.swift -o "$temporary/updates-tests" |
| 7 | "$temporary/updates-tests" "$@" |
| 8 | go test ./internal/appupdate |

