hunk.code_window: 		path
   			.relative(__dirname, resourcePath)
   			.replace('node_modules', 'modules')
   			// file-loader expects posix paths, even on Windows
   			.replace(/\\/g, '/')
   	);
  
hunk.labels: keep keep add keep keep keep
hunk.after_edit: 			// use the same name on all architectures so electron-builder can build a universal dmg on mac
   			.replace(LZMA_BINDINGS_FOLDER, LZMA_BINDINGS_FOLDER_RENAMED)
  
hunk.file_path: webpack.config.ts
hunk.type: add
file: 'use strict'
  
  const cp = require('child_process');
  const rimraf = require('rimraf');
  const process = require('process');
  
  // Rebuild native modules for ia32 and run webpack again for the ia32 part of windows packages
  exports.default = function(context) {
          if (context.platform.name === 'windows') {
                  cp.execFileSync(
                          'bash',
                          ['./node_modules/.bin/electron-rebuild', '--types', 'dev', '--arch', context.arch],
                  );
  		rimraf.sync('generated');
                  cp.execFileSync(
                          'bash',
                          ['./node_modules/.bin/webpack'],
  			{
  				env: {
  					...process.env,
  					npm_config_target_arch: context.arch,
  				},
  			},
                  );
          }
  }
  