From ea0d3009fa7020d75c1657cb532570305de699a6 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 22 Sep 2023 08:24:42 -0400 Subject: Allow game to be properly installable. --- scripts/run-game | 3 --- scripts/super-bloom.in | 12 ++++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) delete mode 100755 scripts/run-game create mode 100755 scripts/super-bloom.in (limited to 'scripts') diff --git a/scripts/run-game b/scripts/run-game deleted file mode 100755 index 15bbf9d..0000000 --- a/scripts/run-game +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -exec guile -c '(use-modules (super-bloom main)) (launch-game)' diff --git a/scripts/super-bloom.in b/scripts/super-bloom.in new file mode 100755 index 0000000..1e9a41b --- /dev/null +++ b/scripts/super-bloom.in @@ -0,0 +1,12 @@ +#!@GUILE@ \ +--no-auto-compile -s +!# + +;; Add installed modules to load path. +(define-syntax-rule (push! elt v) (set! v (cons elt v))) +(push! "@guilemoduledir@" %load-path) +(push! "@guileobjectdir@" %load-compiled-path) + +;; Launch game. +(use-modules (super-bloom main)) +(launch-game) -- cgit v1.2.3