static void write(Path propsFile, Bundle bundle) throws IOException {
        BundleProps props = new BundleProps();
        BundleHeader header = bundle.header();
        props.compressed = header.compressed();
        props.streamVersion = header.streamVersion();
        props.unityVersion = header.unityVersion().toString();
        props.unityRevision = header.unityRevision().toString();

        props.files = bundle.entryInfos().stream()
            .map(entry -> entry.name())
            .collect(Collectors.toList());

        try (Writer writer = Files.newBufferedWriter(propsFile,
                CHARSET, WRITE, CREATE, TRUNCATE_EXISTING)) {
            Gson gson = new GsonBuilder().setPrettyPrinting().create();
            gson.toJson(props, writer);
        }
    }
@author Nico Bergemann <barracuda415 at yahoo.de>
disunity-cli/src/main/java/info/ata4/disunity/cli/command/bundle/BundleProps.java