gitea icon indicating copy to clipboard operation
gitea copied to clipboard

Generic package multiple assets

Open pchampio opened this issue 1 year ago • 3 comments

Feature Description

Gitea generic package only supports adding a single asset for a given tag version. https://github.com/go-gitea/gitea/blob/86e5268c396bd89716b2617a4949837982c1b0c3/routers/api/packages/generic/generic.go#L92-L112

I think having the possibility to add multiple assets (for example Windows, MacOS, Linux executable) to a single version is very common.

Ping @KN4CK3R :wink:

Screenshots

No response

pchampio avatar Aug 03 '22 12:08 pchampio

Sure, may be a bad decission to allow only one file per version. I did it because I don't know how to count the downloads of a version with multiple assests. Should every download of single file increase the version download counter?

KN4CK3R avatar Aug 03 '22 21:08 KN4CK3R

Added this in #20661 and increases the download counter for every file.

KN4CK3R avatar Aug 03 '22 21:08 KN4CK3R

Should every download of single file increase the version download counter?

yes!

pchampio avatar Aug 03 '22 22:08 pchampio