diff --git a/domain/service.software_updater_tic80.go b/domain/service.software_updater_tic80.go index bddc96b..737e0be 100644 --- a/domain/service.software_updater_tic80.go +++ b/domain/service.software_updater_tic80.go @@ -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) diff --git a/http/controller.play.go b/http/controller.play.go index 7b1d044..eb220bc 100644 --- a/http/controller.play.go +++ b/http/controller.play.go @@ -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)