updates should be done from distribution files

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2020-09-08 11:56:09 +02:00
parent 9b3d689b9f
commit c2a110a74d
10 changed files with 34 additions and 21 deletions

View File

@ -269,6 +269,6 @@ It features background tasks and interactive chats, and can serve as an interfac
<p>@Gnadelwartz</p>
<h2>That's it!</h2>
<p>If you feel that there's something missing or if you found a bug, feel free to submit a pull request!</p>
<h4>$$VERSION$$ v1.0-0-g99217c4</h4>
<h4>$$VERSION$$ v1.0-18-g9b3d689</h4>
</body>
</html>

View File

@ -261,4 +261,4 @@ bashbotBlockRecover() {
If you feel that there's something missing or if you found a bug, feel free to submit a pull request!
#### $$VERSION$$ v1.0-0-g99217c4
#### $$VERSION$$ v1.0-18-g9b3d689

View File

@ -351,4 +351,4 @@ wait
If you feel that there's something missing or if you found a bug, feel free to
submit a pull request!
#### $$VERSION$$ v1.0-0-g99217c4
#### $$VERSION$$ v1.0-18-g9b3d689

View File

@ -11,7 +11,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ v1.1-dev-1-gd8c10ef
#### $$VERSION$$ v1.0-18-g9b3d689
#
# Exit Codes:
# - 0 success (hopefully)

View File

@ -15,7 +15,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ v1.0-0-g99217c4
#### $$VERSION$$ v1.0-18-g9b3d689
#
# adjust your language setting here, e.g. when run from other user or cron.

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# this has to run once atfer git clone
# and every time we create new hooks
#### $$VERSION$$ v1.0-0-g99217c4
#### $$VERSION$$ v1.0-18-g9b3d689
# magic to ensure that we're always inside the root of our application,
# no matter from which directory we'll run script

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
#### $$VERSION$$ v1.0-0-g99217c4
#### $$VERSION$$ v1.0-18-g9b3d689
############
# NOTE: you MUST run install-hooks.sh again when updating this file!

View File

@ -15,17 +15,6 @@ Now your Bot is ready to start ...
**If you are new to Bot development read [Bots: An introduction for developers](https://core.telegram.org/bots)**
### Install from github
As an alternative to download the zip files, you can clone the github repository to get the latest improvements/fixes.
1. Go to the directory you want to install bashbot, e.g.
* your $HOME directory (install and run with your user-ID)
* /usr/local if you want to run as service
2. Run ```git clone https://github.com/topkecleon/telegram-bot-bash.git```
3. Change into the directory ```telegram-bot-bash```
4. Run ``` dev/all-tests.sh``` and if everything finish OK ...
5. Run ```sudo ./bashbot.sh init``` to setup the environment and enter your Bots token given by botfather.
### Update bashbot
@ -43,6 +32,30 @@ If you modified ```commands.sh``` move your changes to ```mycommands.sh```, this
Now you can restart your bashbot instances.
### Install from github
The first install can also be done from github, updates should always done from the zip or tar archive to avoid
overwriting your config and mycommands.sh files.
1. Go to the directory you want to install bashbot, e.g.
* your $HOME directory (install and run with your user-ID)
* /usr/local if you want to run as service
2. Run ```git clone https://github.com/topkecleon/telegram-bot-bash.git```
3. Change into the directory ```telegram-bot-bash```
4. Run ``` dev/all-tests.sh``` and if everything finish OK ...
5. Run ```sudo ./bashbot.sh init``` to setup the environment and enter your Bots token given by botfather.
### Get the latest development updates from github
To update an existing installation to the latest development version from github you must create the update archives yourself.
1. Run ```git clone https://github.com/topkecleon/telegram-bot-bash.git```
2. Change into the directory ```telegram-bot-bash```
3. Run ``` dev/make-distribution.sh```
4. If no errors occcure you will find archive files in DISTRIBUTION
### Note for BSD and MacOS
**On MacOS** you must install a more recent version of bash, as the default bash is way to old,
@ -131,5 +144,5 @@ The old format is supported for backward compatibility, but may fail for corner
#### [Next Create Bot](1_firstbot.md)
#### $$VERSION$$ v1.0-0-g99217c4
#### $$VERSION$$ v1.0-18-g9b3d689

View File

@ -283,5 +283,5 @@ send_action "${CHAT[ID]}" "action"
#### [Prev Create Bot](1_firstbot.md)
#### [Next Advanced Usage](3_advanced.md)
#### $$VERSION$$ v1.0-0-g99217c4
#### $$VERSION$$ v1.0-18-g9b3d689

View File

@ -8,7 +8,7 @@
# #### if you start to develop your own bot, use the clean version of this file:
# #### mycommands.clean
#
#### $$VERSION$$ v1.0-0-g99217c4
#### $$VERSION$$ v1.0-18-g9b3d689
#
# uncomment the following lines to overwrite info and help messages