mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-10-25 17:13:35 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			716 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			716 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| const path = require("node:path");
 | |
| const process = require("node:process");
 | |
| 
 | |
| const {notarize} = require("@electron/notarize");
 | |
| const dotenv = require("dotenv");
 | |
| 
 | |
| dotenv.config({path: path.join(__dirname, "/../.env")});
 | |
| 
 | |
| exports.default = async function (context) {
 | |
|   const {electronPlatformName, appOutDir} = context;
 | |
|   if (electronPlatformName !== "darwin") {
 | |
|     return;
 | |
|   }
 | |
| 
 | |
|   const appName = context.packager.appInfo.productFilename;
 | |
| 
 | |
|   return notarize({
 | |
|     appBundleId: "org.zulip.zulip-electron",
 | |
|     appPath: `${appOutDir}/${appName}.app`,
 | |
|     appleId: process.env.APPLE_ID,
 | |
|     appleIdPassword: process.env.APPLE_ID_PASS,
 | |
|     ascProvider: process.env.ASC_PROVIDER, // Team short name
 | |
|   });
 | |
| };
 |