mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	feat(ci): set up signing hook
This commit is contained in:
		| @@ -34,6 +34,7 @@ try { | ||||
|         "./forge.config.cjs", | ||||
|         "./bin/tpl/", | ||||
|         "./bin/electron-forge/desktop.ejs", | ||||
|         "./bin/electron-forge/sign-windows.cjs", | ||||
|         "./src/views/", | ||||
|         "./src/etapi/etapi.openapi.yaml", | ||||
|         "./src/routes/api/openapi.json", | ||||
|   | ||||
							
								
								
									
										8
									
								
								bin/electron-forge/sign-windows.cjs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								bin/electron-forge/sign-windows.cjs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| const child_process = require("child_process"); | ||||
| const SIGN_EXECUTABLE = "C:\\ev_signer_trilium\\ev_signer_trilium.exe"; | ||||
|  | ||||
| module.exports = function (filePath) { | ||||
|     const command = `${SIGN_EXECUTABLE} --executable "${filePath}"`; | ||||
|     console.log(`> ${command}`); | ||||
|     child_process.execSync(command); | ||||
| } | ||||
| @@ -26,6 +26,9 @@ module.exports = { | ||||
|             appleIdPassword: process.env.APPLE_ID_PASSWORD, | ||||
|             teamId: process.env.APPLE_TEAM_ID | ||||
|         }, | ||||
|         windowsSign: { | ||||
|             hookModulePath: "bin\\sign-windows.cjs" | ||||
|         }, | ||||
|         extraResource: [ | ||||
|             // All resources should stay in Resources directory for macOS | ||||
|             ...(process.platform === "darwin" ? [] : extraResourcesForPlatform), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user