mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	chore(nx/ci): display output of signing
This commit is contained in:
		
							parent
							
								
									3f7b42d656
								
							
						
					
					
						commit
						b2f8b0014f
					
				| @ -1,8 +1,12 @@ | ||||
| const child_process = require("child_process"); | ||||
| const fs = require("fs"); | ||||
| 
 | ||||
| module.exports = function (filePath) { | ||||
|     const { WINDOWS_SIGN_EXECUTABLE } = process.env; | ||||
| 
 | ||||
|     const stats = fs.lstatSync(filePath); | ||||
|     console.log(filePath, stats); | ||||
| 
 | ||||
|     if (!WINDOWS_SIGN_EXECUTABLE) { | ||||
|         console.warn("[Sign] Skip signing due to missing environment variable."); | ||||
|         return; | ||||
| @ -10,5 +14,7 @@ module.exports = function (filePath) { | ||||
| 
 | ||||
|     const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${filePath}"`; | ||||
|     console.log(`[Sign] ${command}`); | ||||
|     child_process.execSync(command); | ||||
| 
 | ||||
|     const output = child_process.execSync(command); | ||||
|     console.log(`[Sign] ${output}`); | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran