Question: how to create osz file?
Answer: Go to "Edit" and choose the beatmap you want to convert to . osz.
Open "File", then "Export Package..."
The . osz will be produced and placed in the "Exports" folder of the osu! folder.