This seems to be a bug in electron-builder versions 25.x, try downgrading to a 24.x version until it gets fixed.
electron-builder