Skip to content

Commit 3a05cdc

Browse files
authored
Merge pull request #6 from cloud-py-api/release/3.0.0
chore: prepare v3.0.0 release
2 parents e98d419 + 03140dc commit 3a05cdc

File tree

5 files changed

+24
-61
lines changed

5 files changed

+24
-61
lines changed

.run/AssistantTalkBot.run.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<option name="INTERPRETER_OPTIONS" value="" />
55
<option name="PARENT_ENVS" value="true" />
66
<envs>
7-
<env name="AE_VERSION" value="1.0.0" />
7+
<env name="AA_VERSION" value="3.1.0" />
88
<env name="APP_ID" value="talk_bot_ai" />
99
<env name="APP_PORT" value="10034" />
1010
<env name="APP_SECRET" value="12345" />
11-
<env name="APP_VERSION" value="1.0.0" />
12-
<env name="NEXTCLOUD_URL" value="http://stable27.local" />
11+
<env name="APP_VERSION" value="3.0.0" />
12+
<env name="NEXTCLOUD_URL" value="http://stable30.local" />
1313
<env name="PYTHONUNBUFFERED" value="1" />
1414
</envs>
1515
<option name="SDK_HOME" value="" />

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11-bookworm
1+
FROM python:3.12-bookworm
22

33
COPY requirements.txt /
44
ADD /src/ /app/

Makefile

Lines changed: 11 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,32 @@
11
.DEFAULT_GOAL := help
22

33
APP_ID := talk_bot_ai
4-
JSON_INFO := "{\"id\":\"$(APP_ID)\",\"name\":\"Assistant Talk Bot\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[\"TALK\", \"TALK_BOT\"],\"system\":0}"
4+
APP_NAME := AssistantTalkBot
5+
APP_VERSION := 3.0.0
6+
JSON_INFO := "{\"id\":\"$(APP_ID)\",\"name\":\"Assistant Talk Bot\",\"daemon_config_name\":\"manual_install\",\"version\":\"$(APP_VERSION)\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[\"TALK\", \"TALK_BOT\"]}"
57

68
.PHONY: help
79
help:
8-
@echo "Welcome to the Nextcloud Assistant talk bot. Please use \`make <target>\` where <target> is one of"
10+
@echo "Welcome to the Nextcloud Assistant talk bot. Please use \`make <target>\` where <target> is one of:"
911
@echo " "
1012
@echo " Next commands are only for dev environment with nextcloud-docker-dev!"
11-
@echo " They should run from the host you are developing on(with activated venv) and not in the container with Nextcloud!"
13+
@echo " They should run from the host you are developing on (with activated venv) and not in the container with Nextcloud!"
1214
@echo " "
1315
@echo " build-push build image and upload to ghcr.io"
1416
@echo " "
15-
@echo " run install nextcloud_talk_bot for Nextcloud Latest"
16-
@echo " run30 install nextcloud_talk_bot for Nextcloud 30"
17-
@echo " run29 install nextcloud_talk_bot for Nextcloud 29"
18-
@echo " run28 install nextcloud_talk_bot for Nextcloud 28"
19-
@echo " run27 install nextcloud_talk_bot for Nextcloud 27"
17+
@echo " run install $(APP_NAME) for Nextcloud Latest"
18+
@echo " run30 install $(APP_NAME) for Nextcloud 30"
2019
@echo " "
2120
@echo " For development of this app use PyCharm run configurations. Development is always set for last Nextcloud."
22-
@echo " First run 'nextcloud_talk_bot' and then 'make register', after that you can use/debug/develop it and easy test."
21+
@echo " First run '$(APP_NAME)' and then 'make register', after that you can use/debug/develop it and easy test."
2322
@echo " "
24-
@echo " register perform registration of running 'nextcloud_talk_bot' into the 'manual_install' deploy daemon."
25-
@echo " register30 perform registration of running 'nextcloud_talk_bot' into the 'manual_install' deploy daemon."
26-
@echo " register29 perform registration of running 'nextcloud_talk_bot' into the 'manual_install' deploy daemon."
27-
@echo " register28 perform registration of running 'nextcloud_talk_bot' into the 'manual_install' deploy daemon."
28-
@echo " register27 perform registration of running 'nextcloud_talk_bot' into the 'manual_install' deploy daemon."
23+
@echo " register perform registration of running '$(APP_NAME)' into the 'manual_install' deploy daemon."
24+
@echo " register30 perform registration of running '$(APP_NAME)' into the 'manual_install' deploy daemon."
2925

3026
.PHONY: build-push
3127
build-push:
3228
docker login ghcr.io
33-
docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/cloud-py-api/$(APP_ID):2.1.0 --tag ghcr.io/cloud-py-api/$(APP_ID):latest .
29+
docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/cloud-py-api/$(APP_ID):$(APP_VERSION) --tag ghcr.io/cloud-py-api/$(APP_ID):latest .
3430

3531
.PHONY: run
3632
run:
@@ -44,24 +40,6 @@ run30:
4440
docker exec master-stable30-1 sudo -u www-data php occ app_api:app:register $(APP_ID) --force-scopes \
4541
--info-xml https://raw.githubusercontent.com/cloud-py-api/$(APP_ID)/main/appinfo/info.xml
4642

47-
.PHONY: run29
48-
run29:
49-
docker exec master-stable29-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true
50-
docker exec master-stable29-1 sudo -u www-data php occ app_api:app:register $(APP_ID) --force-scopes \
51-
--info-xml https://raw.githubusercontent.com/cloud-py-api/$(APP_ID)/main/appinfo/info.xml
52-
53-
.PHONY: run28
54-
run28:
55-
docker exec master-stable28-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true
56-
docker exec master-stable28-1 sudo -u www-data php occ app_api:app:register $(APP_ID) --force-scopes \
57-
--info-xml https://raw.githubusercontent.com/cloud-py-api/$(APP_ID)/main/appinfo/info.xml
58-
59-
.PHONY: run27
60-
run27:
61-
docker exec master-stable27-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true
62-
docker exec master-stable27-1 sudo -u www-data php occ app_api:app:register $(APP_ID) --force-scopes \
63-
--info-xml https://raw.githubusercontent.com/cloud-py-api/$(APP_ID)/main/appinfo/info.xml
64-
6543
.PHONY: register
6644
register:
6745
docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true
@@ -71,18 +49,3 @@ register:
7149
register30:
7250
docker exec master-stable30-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true
7351
docker exec master-stable30-1 sudo -u www-data php occ app_api:app:register $(APP_ID) manual_install --json-info $(JSON_INFO) --force-scopes --wait-finish
74-
75-
.PHONY: register29
76-
register29:
77-
docker exec master-stable29-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true
78-
docker exec master-stable29-1 sudo -u www-data php occ app_api:app:register $(APP_ID) manual_install --json-info $(JSON_INFO) --force-scopes --wait-finish
79-
80-
.PHONY: register28
81-
register28:
82-
docker exec master-stable28-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true
83-
docker exec master-stable28-1 sudo -u www-data php occ app_api:app:register $(APP_ID) manual_install --json-info $(JSON_INFO) --force-scopes --wait-finish
84-
85-
.PHONY: register27
86-
register27:
87-
docker exec master-stable27-1 sudo -u www-data php occ app_api:app:unregister $(APP_ID) --silent --force || true
88-
docker exec master-stable27-1 sudo -u www-data php occ app_api:app:register $(APP_ID) manual_install --json-info $(JSON_INFO) --force-scopes --wait-finish

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
The bot is capable of answering questions in chat depending on the model set by Nextcloud Assistant.
66

7-
Refer to [How to install](https://github.com/edward-ly/talk_bot_ai/blob/main/HOW_TO_INSTALL.md) to install the application.
7+
Refer to [How to install](https://github.com/cloud-py-api/talk_bot_ai/blob/main/HOW_TO_INSTALL.md) to install the application.

appinfo/info.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@
99
1010
The bot is capable of answering questions in chat depending on the model set by Nextcloud Assistant.
1111
12-
Refer to [How to install](https://github.com/edward-ly/talk_bot_ai/blob/main/HOW_TO_INSTALL.md) to install the application.
12+
Refer to [How to install](https://github.com/cloud-py-api/talk_bot_ai/blob/main/HOW_TO_INSTALL.md) to install the application.
1313
]]></description>
14-
<version>1.0.0</version>
14+
<version>3.0.0</version>
1515
<licence>MIT</licence>
1616
<author mail="[email protected]" homepage="https://github.com/andrey18106">Andrey Borysenko</author>
1717
<author mail="[email protected]" homepage="https://github.com/bigcat88">Alexander Piskun</author>
1818
<author mail="[email protected]" homepage="https://github.com/edward-ly">Edward Ly</author>
1919
<namespace>AssistantTalkBot</namespace>
2020
<category>tools</category>
21-
<screenshot>https://raw.githubusercontent.com/edward-ly/talk_bot_ai/main/screenshots/talk_bot_ai.png</screenshot>
22-
<website>https://github.com/edward-ly/talk_bot_ai</website>
23-
<bugs>https://github.com/edward-ly/talk_bot_ai/issues</bugs>
24-
<repository type="git">https://github.com/edward-ly/talk_bot_ai.git</repository>
21+
<screenshot>https://raw.githubusercontent.com/cloud-py-api/talk_bot_ai/main/screenshots/talk_bot_ai.png</screenshot>
22+
<website>https://github.com/cloud-py-api/talk_bot_ai</website>
23+
<bugs>https://github.com/cloud-py-api/talk_bot_ai/issues</bugs>
24+
<repository type="git">https://github.com/cloud-py-api/talk_bot_ai.git</repository>
2525
<dependencies>
2626
<nextcloud min-version="30" max-version="31"/>
2727
</dependencies>
2828
<external-app>
2929
<docker-install>
3030
<registry>ghcr.io</registry>
31-
<image>edward-ly/talk_bot_ai</image>
32-
<image-tag>1.0.0</image-tag>
31+
<image>cloud-py-api/talk_bot_ai</image>
32+
<image-tag>3.0.0</image-tag>
3333
</docker-install>
3434
<scopes>
3535
<value>TALK</value>

0 commit comments

Comments
 (0)