11.DEFAULT_GOAL := help
22
33APP_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
79help :
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
3127build-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
3632run :
@@ -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
6644register :
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:
7149register30 :
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
0 commit comments