add local filesystem storage for packages and assets with upload handlers
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user