bitDecayGames / haxeflixel-template

Basic game template with FMOD and Bitlytics tie-ins ready to build from
3 stars 1 forks source link

Prod deploy seems broken #32

Closed Kenoshen closed 3 years ago

Kenoshen commented 3 years ago

This is the relevant console lines:

lime build html5 -final -D API_KEY=***
Warning: Could not generate *.woff web font for "assets/data/font/Brain-Slab-8.ttf"
Warning: Could not generate *.woff web font for "/var/haxelib/flixel/4,8,1/assets/fonts/nokiafc22.ttf"
Warning: Could not generate *.woff web font for "/var/haxelib/flixel/4,8,1/assets/fonts/monsterrat.ttf"
/var/haxelib/haxe-concurrent/3,0,0/src/hx/concurrent/internal/Macros.hx:38: [INFO] NOT setting compiler define 'threads'.
sh: 1: java: not found

Since the dev deploy IS working, my guess is that the difference between them is the -final flag that is being set in the lime build html5 line. One possible fix is to add java to the limebuild docker image we are using in this repo:

https://github.com/bitDecayGames/limebuild

The other option is we could just remove the -final flag.

MondayHopscotch commented 3 years ago
Java is required to run either yuicompressor-2.4.7.jar (if the -yui flag was passed) or compiler.jar (the default), found in lime/templates/bin.
compiler.jar is the closure compiler.
One or the other of these is run by default for final html5 builds, since it's standard practice to minimize js files before distribution.

This is information from the haxe discord. Looks like we may want to just try building new images that have java installed as I think I would like to keep the -final flag enabled to keep build sizes down.

MondayHopscotch commented 3 years ago

This has been resolved. I changed the limebuild image to have java installed and reworked a bunch of the images stuff.