add app review system with validation pipeline and admin htmx UI
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user