You've already forked goreleaser
							
							
				mirror of
				https://github.com/goreleaser/goreleaser.git
				synced 2025-10-30 23:58:09 +02:00 
			
		
		
		
	
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							5d37c9a5a0
						
					
				
				
					commit
					1ed1a62b90
				
			| @@ -3,6 +3,7 @@ package winget | |||||||
| import ( | import ( | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"os" | 	"os" | ||||||
|  | 	"path" | ||||||
| 	"path/filepath" | 	"path/filepath" | ||||||
| 	"strings" | 	"strings" | ||||||
|  |  | ||||||
| @@ -20,7 +21,7 @@ func createYAML(ctx *context.Context, winget config.Winget, in any, tp artifact. | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	filename := winget.PackageIdentifier + extFor(tp) | 	filename := winget.PackageIdentifier + extFor(tp) | ||||||
| 	path := filepath.Join(ctx.Config.Dist, "winget", winget.Path, filename) | 	path := path.Join(ctx.Config.Dist, "winget", winget.Path, filename) | ||||||
| 	if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil { | 	if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil { | ||||||
| 		return err | 		return err | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -3,6 +3,7 @@ package winget | |||||||
| import ( | import ( | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"os" | 	"os" | ||||||
|  | 	"path" | ||||||
| 	"path/filepath" | 	"path/filepath" | ||||||
| 	"regexp" | 	"regexp" | ||||||
| 	"strings" | 	"strings" | ||||||
| @@ -161,7 +162,7 @@ func (p Pipe) doRun(ctx *context.Context, winget config.Winget, cl client.Releas | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	if winget.Path == "" { | 	if winget.Path == "" { | ||||||
| 		winget.Path = filepath.Join("manifests", strings.ToLower(string(winget.Publisher[0])), winget.Publisher, winget.Name, ctx.Version) | 		winget.Path = path.Join("manifests", strings.ToLower(string(winget.Publisher[0])), winget.Publisher, winget.Name, ctx.Version) | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	filters := []artifact.Filter{ | 	filters := []artifact.Filter{ | ||||||
| @@ -300,7 +301,7 @@ func doPublish(ctx *context.Context, cl client.Client, wingets []*artifact.Artif | |||||||
| 		} | 		} | ||||||
| 		files = append(files, client.RepoFile{ | 		files = append(files, client.RepoFile{ | ||||||
| 			Content:    content, | 			Content:    content, | ||||||
| 			Path:       filepath.Join(winget.Path, pkg.Name), | 			Path:       path.Join(winget.Path, pkg.Name), | ||||||
| 			Identifier: repoFileID(pkg.Type), | 			Identifier: repoFileID(pkg.Type), | ||||||
| 		}) | 		}) | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user