Skip to content

Commit c1fd5d2

Browse files
committed
AppAPI 2.0.3+ support
1 parent 6c2ede8 commit c1fd5d2

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ run27:
5454
register:
5555
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister ai_image_generator_bot --silent --force || true
5656
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register ai_image_generator_bot manual_install --json-info \
57-
"{\"appid\":\"ai_image_generator_bot\",\"name\":\"AIImageGeneratorBot\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":9080,\"scopes\":{\"required\":[\"TALK\", \"TALK_BOT\", \"FILES\", \"FILES_SHARING\"],\"optional\":[]},\"system_app\":1}" \
57+
"{\"appid\":\"ai_image_generator_bot\",\"name\":\"AIImageGeneratorBot\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":9080,\"scopes\":[\"TALK\", \"TALK_BOT\", \"FILES\", \"FILES_SHARING\"],\"system_app\":1}" \
5858
--force-scopes --wait-finish
5959

6060
.PHONY: register27
6161
register27:
6262
docker exec master-stable27-1 sudo -u www-data php occ app_api:app:unregister ai_image_generator_bot --silent --force || true
6363
docker exec master-stable27-1 sudo -u www-data php occ app_api:app:register ai_image_generator_bot manual_install --json-info \
64-
"{\"appid\":\"ai_image_generator_bot\",\"name\":\"AIImageGeneratorBot\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":9080,\"scopes\":{\"required\":[\"TALK\", \"TALK_BOT\", \"FILES\", \"FILES_SHARING\"],\"optional\":[]},\"system_app\":1}" \
64+
"{\"appid\":\"ai_image_generator_bot\",\"name\":\"AIImageGeneratorBot\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":9080,\"scopes\":[\"TALK\", \"TALK_BOT\", \"FILES\", \"FILES_SHARING\"],\"system_app\":1}" \
6565
--force-scopes --wait-finish

appinfo/info.xml

+5-10
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,14 @@ This is not an example, this is a ready-to-use application, just enable the bot
4141
<docker-install>
4242
<registry>ghcr.io</registry>
4343
<image>cloud-py-api/ai_image_generator_bot</image>
44-
<image-tag>2.0.0</image-tag>
44+
<image-tag>2.0.1</image-tag>
4545
</docker-install>
4646
<scopes>
47-
<required>
48-
<value>TALK</value>
49-
<value>TALK_BOT</value>
50-
<value>FILES</value>
51-
<value>FILES_SHARING</value>
52-
</required>
53-
<optional>
54-
</optional>
47+
<value>TALK</value>
48+
<value>TALK_BOT</value>
49+
<value>FILES</value>
50+
<value>FILES_SHARING</value>
5551
</scopes>
56-
<protocol>http</protocol>
5752
<system>true</system>
5853
</external-app>
5954
</info>

0 commit comments

Comments
 (0)