succeeded adding the assets to the bundle
This commit is contained in:
parent
e0a76f579a
commit
e82381e39f
4 changed files with 39 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -11,3 +11,4 @@
|
|||
/scripts/run-game
|
||||
/*.log
|
||||
/.envrc
|
||||
/gnu/
|
||||
|
|
15
Makefile.am
15
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
|
||||
|
|
24
README.org
24
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
|
||||
|
|
5
channel.scm
Normal file
5
channel.scm
Normal 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/
|
Loading…
Reference in a new issue