Browse Source

feat(tool): Add spreed

Signed-off-by: jld3103 <jld3103yt@gmail.com>
feat/nextcloud/spreed
jld3103 1 year ago
parent
commit
2f27f480e3
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 3
      .gitmodules
  2. 1
      external/nextcloud-spreed
  3. 7
      tool/generate-specs.sh

3
.gitmodules vendored

@ -19,3 +19,6 @@
[submodule "external/flathub-shared-modules"] [submodule "external/flathub-shared-modules"]
path = external/flathub-shared-modules path = external/flathub-shared-modules
url = https://github.com/flathub/shared-modules.git url = https://github.com/flathub/shared-modules.git
[submodule "external/nextcloud-spreed"]
path = external/nextcloud-spreed
url = https://github.com/nextcloud/spreed

1
external/nextcloud-spreed vendored

@ -0,0 +1 @@
Subproject commit c1472ed4cc0f777d27d35f1cf0e3020df1c50bba

7
tool/generate-specs.sh

@ -11,7 +11,7 @@ function generate_spec() {
composer exec generate-spec -- "$path" "../../packages/nextcloud/lib/src/api/$codename.openapi.json" --first-content-type --openapi-version 3.1.0 composer exec generate-spec -- "$path" "../../packages/nextcloud/lib/src/api/$codename.openapi.json" --first-content-type --openapi-version 3.1.0
} }
for dir in external/nextcloud-server external/nextcloud-notifications; do for dir in external/nextcloud-server external/nextcloud-notifications external/nextcloud-spreed; do
( (
cd "$dir" cd "$dir"
composer install composer install
@ -50,6 +50,11 @@ done
generate_spec "." "notifications" generate_spec "." "notifications"
) )
(
cd external/nextcloud-spreed
generate_spec "." "spreed"
)
( (
cd external/nextcloud-server cd external/nextcloud-server
composer exec merge-specs -- --core ../../packages/nextcloud/lib/src/api/core.openapi.json --merged /tmp/nextcloud-neon/merged.json ../../packages/nextcloud/lib/src/api/*.openapi.json --openapi-version 3.1.0 composer exec merge-specs -- --core ../../packages/nextcloud/lib/src/api/core.openapi.json --merged /tmp/nextcloud-neon/merged.json ../../packages/nextcloud/lib/src/api/*.openapi.json --openapi-version 3.1.0

Loading…
Cancel
Save