https://github.com/FPGAwars/apio/releases/tag/v0.7.6
I use this package for programming a TinyFPGA BX. It will probably not work with FPGAs which are not TinyFPGA boards, without modification.