diff --git a/README.md b/README.md index fd174ae..569b33e 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,37 @@ This program was created to find Raspberry Pis in the network. - [Adafruit-Pi-Finder](https://github.com/adafruit/Adafruit-Pi-Finder) - finde deinen Raspberry Pi im Netzwerk +New Released +------------ + +When the source code is changed, create a new release. +1. Create a new tag + ``` + git tag 0.6 + git push origin 0.6 + ``` +2. Download the [latest release](https://github.com/niccokunzmann/python_dhcp_server/releases/download/0.5/python_dhcp_server_standalone_0.5.zip). + ``` + cd Downloads + wget 'https://github.com/niccokunzmann/python_dhcp_server/releases/download/0.5/python_dhcp_server_standalone_0.5.zip' + ``` +3. Unzip it. + ``` + unzip python_dhcp_server_standalone_0.5.zip + ``` +4. Replace the `server` directory. + ``` + cd python_dhcp_server_standalone + rm -r server + cp -r ~/python_dhcp_server/server/ . + rm -r server/__pycache__ + ``` +5. Zip the release. + ``` + zip -9r python_dhcp_server_standalone_0.6.zip python_dhcp_server_standalone + ``` +6. Upload the zip file to the [pushed release][releases]. + [releases]: https://github.com/niccokunzmann/python_dhcp_server/releases [zip]: https://github.com/niccokunzmann/python_dhcp_server/archive/refs/heads/master.zip