mirror of
https://github.com/xtool-org/xtool.git
synced 2026-02-04 11:53:30 +01:00
* getTeamIsFree -> XcodeAuthData.team().isFree * Only revoke certificates if on a free team * Update OpenAPI spec, handle AVP * Fix App ID capabilities on paid accounts
23 lines
811 B
Makefile
23 lines
811 B
Makefile
SPEC_URL = https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip
|
|
|
|
.PHONY: api update-api
|
|
|
|
api: openapi/openapi.json
|
|
swift run swift-openapi-generator generate \
|
|
openapi/openapi.json \
|
|
--config Sources/DeveloperAPI/openapi-generator-config.yaml \
|
|
--output-directory Sources/DeveloperAPI/Generated
|
|
for file in Sources/DeveloperAPI/Generated/*.swift; do \
|
|
sed -i '' -e 's/[[:<:]]Client[[:>:]]/DeveloperAPIClient/g' $$file; \
|
|
done
|
|
|
|
update-api:
|
|
@+$(MAKE) -B api
|
|
|
|
openapi/openapi.json: openapi/base.json Sources/DeveloperAPI/openapi-overlay.yaml
|
|
npx --yes bump-cli overlay openapi/base.json Sources/DeveloperAPI/openapi-overlay.yaml > openapi/openapi.json
|
|
|
|
openapi/base.json:
|
|
@mkdir -p openapi
|
|
curl -fsSL "$(SPEC_URL)" | bsdtar -xOf- > openapi/base.json
|