webplay fix
This commit is contained in:
@@ -88,6 +88,7 @@ func (s *SoftwareUpdaterTIC80Service) handleLuaCartridge(name, contentsPath stri
|
||||
Version: version,
|
||||
CartridgePath: s.fileRepository.GetCartridgePath(software.Name, version, contentsPath),
|
||||
SourcePath: s.fileRepository.GetSourcePath(software.Name, version, contentsPath),
|
||||
WebPlayable: true,
|
||||
}
|
||||
|
||||
return s.releaseRepository.Create(release)
|
||||
|
||||
@@ -157,7 +157,7 @@ func (c *PlayController) ServeContent(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
htmlBaseDir := filepath.Join(contentsPath, "html", name, version)
|
||||
htmlBaseDir := filepath.Join(contentsPath, name, fmt.Sprintf("%s-%s-html", name, version))
|
||||
|
||||
if _, err := os.Stat(htmlBaseDir); os.IsNotExist(err) {
|
||||
http.Error(w, fmt.Sprintf("Content for '%s' not found.", name), http.StatusNotFound)
|
||||
|
||||
Reference in New Issue
Block a user