Serge Bazanski | 18c1a26 | 2022-07-07 14:24:53 +0200 | [diff] [blame] | 1 | love2d signage |
| 2 | === |
| 3 | |
| 4 | As used in digital signage displays in HSWAW. |
| 5 | |
| 6 | Originally hosted on code.hackerspace.pl/informatic/love2d-signage, now in hscloud. |
| 7 | |
| 8 | |
| 9 | Building & Running |
| 10 | --- |
| 11 | |
Piotr Dobrowolski | 8f986c1 | 2022-07-08 00:04:58 +0200 | [diff] [blame] | 12 | Run the following in hscloud root: |
| 13 | |
Serge Bazanski | 18c1a26 | 2022-07-07 14:24:53 +0200 | [diff] [blame] | 14 | $ nix-build -A hswaw.signage.prod |
| 15 | $ result/bin/signage |
| 16 | |
| 17 | If the result doesn't run and complains about OpenGL not being available, try building the 'local' target instead, which will use your host `<nixpkgs>`: |
| 18 | |
| 19 | $ nix-build -A hswaw.signage.local |
| 20 | |
| 21 | For non-NixOS systems you'll need something like `nixgl` to work around Nixpkgs-GL-on-Non-NixOS badness anyways. |
| 22 | |
Piotr Dobrowolski | 8f986c1 | 2022-07-08 00:04:58 +0200 | [diff] [blame] | 23 | In order to run the app in more of a development environment with hot code reload and such use: |
| 24 | |
| 25 | $ ENV=dev $(nix-build -A hswaw.signage.local.runtime --no-out-link)/bin/love hswaw/signage/ |
| 26 | |
Serge Bazanski | 18c1a26 | 2022-07-07 14:24:53 +0200 | [diff] [blame] | 27 | Custom configs |
| 28 | --- |
| 29 | |
Piotr Dobrowolski | 8f986c1 | 2022-07-08 00:04:58 +0200 | [diff] [blame] | 30 | You can either modify config.lua and rebuild, or specify a custom config at runtime by setting the `SIGNAGE_CONFIG` environment variable. |