diff --git a/.gitignore b/.gitignore index 4e0d4d6..b88b146 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /scripts/run-game /*.log /.envrc +/gnu/ diff --git a/Makefile.am b/Makefile.am index efe2406..78c9cb7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -26,13 +26,16 @@ SOURCES = \ game/render/hero.scm \ game/main.scm - -EXTRA_DIST = \ - $(SOURCES) \ - assets/images \ +asset_files = \ assets/images/simples_pimples.png \ assets/images/lr_penguin2.png \ assets/images/glamshot.png \ - assets/levels \ - assets/levels/level-1.map \ + assets/levels/level1.tmx \ + assets/levels/tiles.tsx \ + assets/levels/level-1.map +nobase_dist_pkgdata_DATA = $(asset_files) + +EXTRA_DIST = \ + $(SOURCES) \ + $(asset_files) \ README.org diff --git a/README.org b/README.org index 1c9648b..5f221a3 100644 --- a/README.org +++ b/README.org @@ -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 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 guix pack -L .guix/modules bloatrunner #+END_SRC +Generates a 750Mb installed folder structure with everything in it, theoretically diff --git a/channel.scm b/channel.scm new file mode 100644 index 0000000..73a6b88 --- /dev/null +++ b/channel.scm @@ -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/