There is a multi-step process to building DOOM for Compute, as it is cobbled together from pieces of different eras.
-
If you need to change the HTML that drives the app, you should modify
index.htmlorindex_sp.htmldepending on whether you are building the single player or (unsupported) multiplayer version. Then, compile and runprepwebby doingcc prepweb.c -o prepweband then running./prepweb <index>with either 1 (multiplayer) or 2 (singleplayer). So./prepweb 2would prepindex_sp.htmlinto thelinuxdoom-1.10directory. The reason this is done is to append newlines onto it so that the C can more easily load it when it needs to serve it. (seememorywad.). If there's a better way to handle that load, please feel free to fix this. -
navigate to the
linuxdoom-1.10directory and runmake. -
navigate to the
computefolder and runfastly compute pack -w ../linuxdoom-1.10/linux/linuxxdoom && fastly compute deployNOTE: [email protected] currently has access to the Compute service so you will need to talk to them.