mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
19 lines
508 B
Bash
Executable File
19 lines
508 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Generate Client
|
|
rm src/apis src/models docs -rf
|
|
|
|
openapi-generator-cli generate \
|
|
-g rust \
|
|
--additional-properties=packageName=vrchatapi,packageVersion=1.0.4,supportAsync=false \
|
|
--git-user-id=vrchatapi \
|
|
--git-repo-id=vrchatapi-rust \
|
|
-o . \
|
|
-i https://vrchatapi.github.io/specification/openapi.yaml \
|
|
--http-user-agent="vrchatapi-rust"
|
|
|
|
sed -i '/^edition = "2018"/i license = "MIT"' Cargo.toml
|
|
sed -i '/^edition = "2018"/a description="VRChat API Library for Rust"' Cargo.toml
|
|
|
|
cargo build
|