add local filesystem storage for packages and assets with upload handlers

This commit is contained in:
2026-01-18 21:16:42 +01:00
parent 01a0ac68a4
commit 149736108e
7 changed files with 481 additions and 12 deletions

View File

@@ -698,6 +698,14 @@ func (db *DB) PublishVersion(ctx context.Context, id string) error {
return err
}
// UpdateVersionPackage updates the package_url and package_size for a version
func (db *DB) UpdateVersionPackage(ctx context.Context, id, packageURL string, packageSize int64) error {
_, err := db.ExecContext(ctx, `
UPDATE app_versions SET package_url = ?, package_size = ? WHERE id = ?
`, packageURL, packageSize, id)
return err
}
// PublicApp represents a published app for the store
type PublicApp struct {
PackageID string `json:"package_id"`