scripts - generate index in postbuild script