mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-10-31 12:03:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			615 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			615 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const path = require('path');
 | |
| const dotenv = require('dotenv');
 | |
| 
 | |
| dotenv.config({ path: path.join(__dirname, '/../.env') });
 | |
| 
 | |
| const { notarize } = require('electron-notarize');
 | |
| 
 | |
| exports.default = async function notarizing(context) {
 | |
|   const { electronPlatformName, appOutDir } = context;
 | |
|   if (electronPlatformName !== 'darwin') {
 | |
|     return;
 | |
|   }
 | |
| 
 | |
|   const appName = context.packager.appInfo.productFilename;
 | |
| 
 | |
|   return await notarize({
 | |
|     appBundleId: 'org.zulip.zulip-electron',
 | |
|     appPath: `${appOutDir}/${appName}.app`,
 | |
|     appleId: process.env.APPLE_ID,
 | |
|     appleIdPassword: process.env.APPLE_ID_PASS,
 | |
|   });
 | |
| };
 |