platform: Add support for tvOS

This commit is contained in:
世界
2023-07-29 08:37:10 +08:00
parent 1e31d26e03
commit b054441f34
9 changed files with 278 additions and 37 deletions

View File

@@ -33,7 +33,7 @@ func NewService(configContent string, platformInterface PlatformInterface) (*Box
return nil, err
}
ctx, cancel := context.WithCancel(context.Background())
ctx = filemanager.WithDefault(ctx, sBasePath, sTempPath, sUserID, sGroupID)
ctx = filemanager.WithDefault(ctx, sWorkingPath, sTempPath, sUserID, sGroupID)
ctx = service.ContextWithPtr(ctx, urltest.NewHistoryStorage())
instance, err := box.New(box.Options{
Context: ctx,