A new method for constructing gauge string field theory