bump version during make

This commit is contained in:
GloriousEggroll 2025-04-17 19:48:09 -06:00
parent fb073a5eae
commit 4d3dc59ab2
3 changed files with 7 additions and 3 deletions

View file

@ -5,11 +5,14 @@ DESKTOP_DIR := $(DESTDIR)/usr/share/applications
DATA_DIR := $(DESTDIR)/usr/share/flatpost
ICON_DIR := $(DESTDIR)/usr/share/icons/hicolor
LICENSE_DIR := $(DESTDIR)/usr/share/licenses/flatpost
VERSION := $(shell cat VERSION.txt)
.PHONY: all install clean
.PHONY: all update-version install clean
all: install
all: update-version install
update-version:
sed -i 's/^Version .*/Version $(VERSION)/' src/flatpost.py
install:
@echo "Installing Python files to $(TARGET_DIR)"
mkdir -p $(TARGET_DIR)

1
VERSION.txt Normal file
View file

@ -0,0 +1 @@
1.0.5

View file

@ -658,7 +658,7 @@ class MainWindow(Gtk.Window):
# Version label
name_label = Gtk.Label(label="Flatpost")
name_label.get_style_context().add_class("permissions-header-label")
version_label = Gtk.Label(label="Version 1.0.0")
version_label = Gtk.Label(label="Version 1.0.5")
copyright_label = Gtk.Label(label=f"Copyright © 2025-{datetime.now().year} Thomas Crider")
program_label = Gtk.Label(label="This program comes with absolutely no warranty.")