protected void createRawFile() {
		FidFile fidFile = askChoice("Choose destination FidDb",
			"Please choose the destination FidDb for population",
			fidFileManager.getUserAddedFiles(), null);
		if (fidFile == null) {
			return;
		}
		GhidraFileChooser chooser = new GhidraFileChooser(tool.getToolFrame());
		chooser.setTitle("Where do you want to create the read-only installable database?");
		chooser.setFileSelectionMode(GhidraFileChooserMode.DIRECTORIES_ONLY);
		File selectedFile = chooser.getSelectedFile();
		chooser.dispose();
		if (selectedFile == null) {
			return;
		}
		File outputFile =
			new File(selectedFile, fidFile.getBaseName() + FidFile.FID_RAW_DATABASE_FILE_EXTENSION);

		try (FidDB fidDB = fidFile.getFidDB(false)) {
			fidDB.saveRawDatabaseFile(outputFile, TaskMonitor.DUMMY);
		}
		catch (VersionException | IOException | CancelledException e) {
			// BTW CancelledException can't happen because we used a DUMMY monitor.
			Msg.showError(this, null, "Error saving read-only installable database", e.getMessage(),
				e);
		}
	}
Creates a raw read-only database file from a packed database.  This file is useful
for including in a distribution.
Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/plugin/FidDebugPlugin.java