Skip to content

Commit

Permalink
Bump version to v0.0.30-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
MikMuellerDev committed May 20, 2022
1 parent 4fbd8f9 commit a812a16
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .vscode/configurationCache.log
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"buildTargets":["all","build","build/linux_386.tar.gz","build/linux_amd64.tar.gz","build/linux_arm.tar.gz","build/linux_arm64.tar.gz","clean","cleanall","cleanweb","docker","docker-prepare","docker-push","linux","mysql","release","run","run-full","setup","sudo-docker","test","version","vite-dev","vtest","web"],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}}
{"buildTargets":["all","build","build/linux_386.tar.gz","build/linux_amd64.tar.gz","build/linux_arm.tar.gz","build/linux_arm64.tar.gz","clean","cleanall","cleanweb","docker","docker-prepare","docker-push","linux","release","run","run-full","setup","sudo-docker","test","version","vite-dev","vtest","web"],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
appname := smarthome
workingdir := smarthome
sources := $(wildcard *.go)
version := 0.0.29
version := 0.0.30-beta

build = CGO_ENABLED=0 GOOS=$(1) GOARCH=$(2) go build -ldflags "-s -w" -v -o $(appname) $(4)
tar = mkdir -p build && cd ../ && tar -cvzf ./$(appname)_$(1)_$(2).tar.gz $(workingdir)/$(appname) $(workingdir)/web/dist $(workingdir)/web/html $(workingdir)/resources && mv $(appname)_$(1)_$(2).tar.gz $(workingdir)/build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Smarthome
**Version**: `0.0.29`
**Version**: `0.0.30-beta`

A completely self-built Smarthome-system written in Go.

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM alpine:3

LABEL author="MikMuellerDev"
LABEL version="0.0.29"
LABEL version="0.0.30-beta"

COPY ./app /app

Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.7'
services:
smarthome:
image: mikmuellerdev/smarthome:0.0.29
image: mikmuellerdev/smarthome:0.0.30-beta
container_name: smarthome
hostname: smarthome
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion docker/motd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
######## Smarthome: A completely self-built Smarthome-system written in Go
### ### Issues : https://github.com/smarthome-go/smarthome/issues
### ### Version : 0.0.29
### ### Version : 0.0.30-beta
### ###
### ###
|# #########@ |
Expand Down
9 changes: 9 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Changelog for 0.0.30-beta

## Rooms Page
- Added support for different screen sizes, such as mobile.
- Cameras will now use the maximum space available in the *cameras* section
- The *rooms* feature is now completely finished (*rc*)

## Backend
- Added additional error log to the function which deletes a *Homescript*
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var port = 8082 // Default port on which the server listens, can be overwritten

func main() {
// Do not change manually, use the `make version` command instead
utils.Version = "0.0.29"
utils.Version = "0.0.30-beta"

startTime := time.Now()

Expand Down
18 changes: 14 additions & 4 deletions update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package_json_path = "web/package.json"
main_go_path = "main.go"
readme_path = "README.md"
changelog_path = "./docs/CHANGELOG.md"
makefile_path = "Makefile"
docker_compose_path = "docker/docker-compose.yml"

Expand Down Expand Up @@ -57,7 +58,7 @@
with open(package_json_path, "r") as package_json:
content = package_json.read()
old_version = content.split("\"version\": \"")[1].split("\",\n")[0]
print(f"Found old version in {package_json_path}:", old_version)
print(f"Found old version in {package_json_path}: {old_version}")

with open(package_json_path, "w") as package_json:
package_json.write(content.replace(old_version, VERSION))
Expand All @@ -66,16 +67,25 @@
with open(readme_path, "r") as readme:
content = readme.read()
old_version = content.split("**Version**: `")[1].split("`\n")[0]
print(f"Found old version in {readme_path}:", old_version)
print(f"Found old version in {readme_path}: {old_version}")

with open(readme_path, "w") as readme:
readme.write(content.replace(old_version, VERSION))

# The `CHANGELOG.md`
with open(changelog_path, "r") as changelog:
content = changelog.read()
old_version = content.split("## Changelog for ")[1].split("\n")[0]
print(f"Found old version in {changelog_path}: {old_version}")

with open(changelog_path, "w") as changelog:
changelog.write(content.replace(old_version, VERSION))

# The `Makefile`
with open(makefile_path, "r") as makefile:
content = makefile.read()
old_version = content.split("version := ")[1].split("\n")[0]
print(f"Found old version in {makefile_path}:", old_version)
print(f"Found old version in {makefile_path}: {old_version}")

with open(makefile_path, "w") as makefile:
makefile.write(content.replace(old_version, VERSION))
Expand All @@ -90,4 +100,4 @@
with open(docker_compose_path, "w") as compose:
compose.write(content.replace(old_version, VERSION))

print(f"Version has been upgraded from '{old_version}' -> '{VERSION}'")
print(f"Version has been changed from '{old_version}' -> '{VERSION}'")
4 changes: 2 additions & 2 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smarthome-web",
"version": "0.0.29",
"version": "0.0.30-beta",
"description": "Web interface for Smarthome",
"author": "MikMuellerDev",
"contributors": [
Expand Down

0 comments on commit a812a16

Please sign in to comment.