Commit 25fc7e0e authored by Simon McVittie's avatar Simon McVittie

Launcher: insert version at install time

This is annoyingly ad-hoc, but I'm trying to keep the launcher a
single-file executable so I can install it into packages like
quake-server, which shouldn't depend on the full (GUI) runtime stuff.
parent 1eeec8be
......@@ -416,7 +416,8 @@ install:
mkdir -p $(DESTDIR)$(pkgdatadir)
cp -ar game_data_packager/ $(DESTDIR)$(pkgdatadir)/
python3 -m game_data_packager.version $(RELEASE) > $(DESTDIR)$(pkgdatadir)/game_data_packager/
python3 -m game_data_packager.version $(RELEASE) > out/
install -m0644 out/ $(DESTDIR)$(pkgdatadir)/game_data_packager/
install -m0644 out/* $(DESTDIR)$(pkgdatadir)/
install -m0644 out/*.copyright $(DESTDIR)$(pkgdatadir)/
install -m0644 out/*.png $(DESTDIR)$(pkgdatadir)/
......@@ -429,7 +430,9 @@ install:
install -m0644 out/ $(DESTDIR)$(pkgdatadir)/
install -d $(DESTDIR)$(runtimedir)/
install runtime/ $(DESTDIR)$(runtimedir)/gdp-launcher
sed -e '/^#__insert_version_here__/ r out/' \
< runtime/ > $(DESTDIR)$(runtimedir)/gdp-launcher
chmod 0755 $(DESTDIR)$(runtimedir)/gdp-launcher
install runtime/ $(DESTDIR)$(runtimedir)/gdp-openurl
install -m0644 $(launcher_desktops) $(DESTDIR)$(runtimedir)/
install -m0644 runtime/confirm-binary-only.txt $(DESTDIR)$(runtimedir)/
......@@ -31,7 +31,10 @@ import traceback
import gi
from gi.repository import (GLib, GObject)
__version__ = '(uninstalled)'
# edited automatically, be careful
GAME_PACKAGE_VERSION = '(uninstalled)'
if 'GDP_UNINSTALLED' in os.environ:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment