bump version during make
This commit is contained in:
parent
fb073a5eae
commit
4d3dc59ab2
3 changed files with 7 additions and 3 deletions
7
Makefile
7
Makefile
|
|
@ -5,11 +5,14 @@ DESKTOP_DIR := $(DESTDIR)/usr/share/applications
|
||||||
DATA_DIR := $(DESTDIR)/usr/share/flatpost
|
DATA_DIR := $(DESTDIR)/usr/share/flatpost
|
||||||
ICON_DIR := $(DESTDIR)/usr/share/icons/hicolor
|
ICON_DIR := $(DESTDIR)/usr/share/icons/hicolor
|
||||||
LICENSE_DIR := $(DESTDIR)/usr/share/licenses/flatpost
|
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:
|
install:
|
||||||
@echo "Installing Python files to $(TARGET_DIR)"
|
@echo "Installing Python files to $(TARGET_DIR)"
|
||||||
mkdir -p $(TARGET_DIR)
|
mkdir -p $(TARGET_DIR)
|
||||||
|
|
|
||||||
1
VERSION.txt
Normal file
1
VERSION.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
1.0.5
|
||||||
|
|
@ -658,7 +658,7 @@ class MainWindow(Gtk.Window):
|
||||||
# Version label
|
# Version label
|
||||||
name_label = Gtk.Label(label="Flatpost")
|
name_label = Gtk.Label(label="Flatpost")
|
||||||
name_label.get_style_context().add_class("permissions-header-label")
|
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")
|
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.")
|
program_label = Gtk.Label(label="This program comes with absolutely no warranty.")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue