Generate a new resource file.