add app review system with validation pipeline and admin htmx UI

This commit is contained in:
2026-01-18 21:35:43 +01:00
parent cf9f42b66d
commit fbcb5c9543
11 changed files with 1516 additions and 9 deletions

View File

@@ -186,6 +186,17 @@ func (s *Storage) DeleteAppAssets(appID string) error {
return os.RemoveAll(dir)
}
// GetPackagePath resolves a package URL (stored in DB) to a filesystem path
// Package URLs are stored as relative paths like "packages/{developerID}/{appID}/{versionCode}/package.mosis"
func (s *Storage) GetPackagePath(packageURL string) string {
// If it's already an absolute path, return as-is
if filepath.IsAbs(packageURL) {
return packageURL
}
// Otherwise, join with base path
return filepath.Join(s.basePath, packageURL)
}
// copyFile copies a file from src to dst
func copyFile(src, dst string) error {
in, err := os.Open(src)