Render directory trees as pretty pictures from plaintext descriptions.
DOS Games
Passport to Adventure
drives
c
dosbox.conf
Prince of Persia
drives
c
dosbox.conf
- Make sure the prerequisites are met.
- Compile with
nim c src/dirtree
. - Run
./dirtree input.txt output.png
(check out the examples). - To change the visual style, edit
src/config1.nim
and then recompile.
Install the Cairo bindings with Nimble:
nimble install cairo
The Cairo dynamic-link libraries must be available for the program.
Download the DLL files from here or here and put them in the program directory.
Install the Cairo libraries via MacPorts or a similar package manager, then set
DYLD_LIBRARY_PATH
accordingly.
export DYLD_LIBRARY_PATH=/opt/local/lib
./dirtree
Or:
DYLD_LIBRARY_PATH=/opt/local/lib ./dirtree
Make sure the architecture of the executable and the dynamic-link library
match (so both are either arm64
or x86_64
), otherwise you'll get errors at
startup. You can check this with the file
command.
The Nim compiler installed via choosenim
always creates x86_64
executables by default, so you'll need to override that
in nim.cfg
by uncomment the following:
# macOS, arm64
--l:"-target arm64-apple-macos11"
--t:"-target arm64-apple-macos11"
Unpack the fonts/Folder-Icons-v1.0.zip ZIP file
and install the fonts/Folder-Icons.ttf
font at the OS level..
Unpack the fonts/Folder-Icons-v1.0.zip ZIP file
and open demo.html
to see the list of available icon glyphs.
The easiest way to edit the font is to use the IcoMoon webapp:
- Go to the Projects view.
- Click Import Project, then select the file
selection.json
from the unpacked ZIP. - This will show up as "Untitled Project"—rename that to something more meaningful, then click Load.
- Do your edits, then click on Generate Font and Download in the bottom menu bar when you're done.
This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details.