Seed and chop the chile peppers. Peel, core and slice the apples; sprinkle them with the salt and set aside. Finely mince half the garlic and ginger. Finely slice the other half. Heat the oil, put in all the ginger and garlic and fry until fragrant. Add the other spices and the chopped chiles. Cook gently for a few min and add the apples or pears, raisins, vinegar and sugar. Stir and simmer on low for about 30 minutes. Cool and bottle.