mirror of
https://github.com/jellyfin/jellyfin-sdk-swift.git
synced 2024-11-22 21:59:46 +00:00
22 lines
703 B
Makefile
22 lines
703 B
Makefile
# Download latest spec and run CreateAPI
|
|
.PHONY: update
|
|
update: download generate
|
|
|
|
# Download the latest Jellyfin spec
|
|
.PHONY: download
|
|
download:
|
|
curl -fsSl https://api.jellyfin.org/openapi/jellyfin-openapi-stable.json -o Sources/jellyfin-openapi-stable.json
|
|
|
|
# Run CreateAPI
|
|
.PHONY: generate
|
|
generate:
|
|
swift package --allow-writing-to-package-directory generate-api
|
|
|
|
# Download latest unstable spec and run CreateAPI
|
|
.PHONY: update-unstable
|
|
update-unstable: download-unstable generate
|
|
|
|
# Donload the latest Jellyfin unstable spec
|
|
.PHONY: download-unstable
|
|
download-unstable:
|
|
curl -fsSL https://repo.jellyfin.org/releases/openapi/jellyfin-openapi-unstable.json -o Sources/jellyfin-openapi-stable.json
|