succeeded adding the assets to the bundle

This commit is contained in:
Peter Tillemans 2024-05-22 16:13:55 +02:00
parent e0a76f579a
commit e82381e39f
4 changed files with 39 additions and 6 deletions

1
.gitignore vendored
View file

@ -11,3 +11,4 @@
/scripts/run-game /scripts/run-game
/*.log /*.log
/.envrc /.envrc
/gnu/

View file

@ -26,13 +26,16 @@ SOURCES = \
game/render/hero.scm \ game/render/hero.scm \
game/main.scm game/main.scm
asset_files = \
EXTRA_DIST = \
$(SOURCES) \
assets/images \
assets/images/simples_pimples.png \ assets/images/simples_pimples.png \
assets/images/lr_penguin2.png \ assets/images/lr_penguin2.png \
assets/images/glamshot.png \ assets/images/glamshot.png \
assets/levels \ assets/levels/level1.tmx \
assets/levels/level-1.map \ assets/levels/tiles.tsx \
assets/levels/level-1.map
nobase_dist_pkgdata_DATA = $(asset_files)
EXTRA_DIST = \
$(SOURCES) \
$(asset_files) \
README.org README.org

View file

@ -140,9 +140,33 @@ build instructions and sources and outputs.
I followed the instructions at [[https://guix.gnu.org/en/blog/2023/from-development-environments-to-continuous-integrationthe-ultimate-guide-to-software-development-with-guix/][Ultimate Guide to Software Development I followed the instructions at [[https://guix.gnu.org/en/blog/2023/from-development-environments-to-continuous-integrationthe-ultimate-guide-to-software-development-with-guix/][Ultimate Guide to Software Development
with Guix]] . with Guix]] .
To add the assets we need to define them
#+BEGIN_SRC
asset_files = \
assets/images/simples_pimples.png \
assets/images/lr_penguin2.png \
assets/images/glamshot.png \
assets/levels/level1.tmx \
assets/levels/tiles.tsx \
assets/levels/level-1.map
nobase_dist_pkgdata_DATA = $(asset_files)
...
EXTRA_DIST = \
$(SOURCES) \
$(subdir_files)
README.org
#+END_SRC
see [[https://www.gnu.org/software/automake/manual/html_node/Data.html#Data][Architecture independent datafiles section of the automake manual.]]
#+BEGIN_SRC shell #+BEGIN_SRC shell
guix pack -L .guix/modules bloatrunner guix pack -L .guix/modules bloatrunner
#+END_SRC #+END_SRC
Generates a 750Mb installed folder structure with everything in it, theoretically

5
channel.scm Normal file
View file

@ -0,0 +1,5 @@
;; This file lets us present this repo as a Guix channel.
(channel
(version 0)
(directory ".guix/modules")) ;look for package modules under .guix/modules/