mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	chore(forge): gather files to be signed for analysis
This commit is contained in:
		
							parent
							
								
									614958f16c
								
							
						
					
					
						commit
						57c6dd2fee
					
				
							
								
								
									
										7
									
								
								.github/workflows/nightly.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/nightly.yml
									
									
									
									
										vendored
									
									
								
							| @ -87,6 +87,13 @@ jobs: | ||||
|           tag_name: nightly | ||||
|           name: Nightly Build | ||||
| 
 | ||||
|       - name: Publish artifacts | ||||
|         uses: actions/upload-artifact@v4 | ||||
|         if: always() | ||||
|         with: | ||||
|           name: signing ${{ matrix.os.name }} ${{ matrix.arch }} | ||||
|           path: apps/desktop/electron-forge/sign | ||||
| 
 | ||||
|       - name: Publish artifacts | ||||
|         uses: actions/upload-artifact@v4 | ||||
|         if: ${{ github.event_name == 'pull_request' }} | ||||
|  | ||||
| @ -12,7 +12,14 @@ module.exports = function (sourcePath) { | ||||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     const outputDir = path.join(__dirname, "sign"); | ||||
|     if (!fs.existsSync(outputDir)) { | ||||
|       fs.mkdirSync(outputDir); | ||||
|     } | ||||
| 
 | ||||
|     try { | ||||
|         const destPath = path.join(outputDir, path.basename(sourcePath)); | ||||
|         fs.copyFileSync(sourcePath, destPath); | ||||
|         const command = `${WINDOWS_SIGN_EXECUTABLE} --executable "${sourcePath}"`; | ||||
|         console.log(`[Sign] ${command}`); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran