mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	fix(build): flaky copy of the artifact
This commit is contained in:
		
							parent
							
								
									7b2bbdd52a
								
							
						
					
					
						commit
						2d3a1e9023
					
				| @ -156,7 +156,7 @@ module.exports = { | |||||||
|     hooks: { |     hooks: { | ||||||
|         postMake(_, makeResults) { |         postMake(_, makeResults) { | ||||||
|             const outputDir = path.join(__dirname, "..", "upload"); |             const outputDir = path.join(__dirname, "..", "upload"); | ||||||
|             fs.mkdirp(outputDir); |             fs.mkdirpSync(outputDir); | ||||||
|             for (const makeResult of makeResults) { |             for (const makeResult of makeResults) { | ||||||
|                 for (const artifactPath of makeResult.artifacts) { |                 for (const artifactPath of makeResult.artifacts) { | ||||||
|                     // Ignore certain artifacts.
 |                     // Ignore certain artifacts.
 | ||||||
| @ -174,7 +174,7 @@ module.exports = { | |||||||
|          |          | ||||||
|                     const outputPath = path.join(outputDir, fileName); |                     const outputPath = path.join(outputDir, fileName); | ||||||
|                     console.log(`[Artifact] ${artifactPath} -> ${outputPath}`); |                     console.log(`[Artifact] ${artifactPath} -> ${outputPath}`); | ||||||
|                     fs.copyFile(artifactPath, outputPath); |                     fs.copyFileSync(artifactPath, outputPath); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran