Files
Ant Browser Release Bot fc5a6fadbe publish: 1.1.0 snapshot (ff46de5)
channel: master
version: 1.1.0
source-ref: master
published-at-utc: 2026-03-20T14:14:07Z
2026-03-20 22:14:08 +08:00

24 lines
771 B
Go

package backend
import "ant-chrome/backend/internal/apppath"
// EnsureRuntimeLayout 为运行时准备已安装应用的用户可写目录。
func EnsureRuntimeLayout(appRoot string) error {
return apppath.EnsureWritableLayout(appRoot)
}
// ResolveRuntimePath 将相对路径解析到安装目录或用户状态目录。
func ResolveRuntimePath(appRoot, p string) string {
return apppath.Resolve(appRoot, p)
}
// RuntimeStateRoot 返回当前运行时使用的状态目录。
func RuntimeStateRoot(appRoot string) string {
return apppath.StateRoot(appRoot)
}
// RuntimeUsesDetachedState 表示当前是否启用了“安装目录只读、状态目录独立”的模式。
func RuntimeUsesDetachedState(appRoot string) bool {
return apppath.IsDetached(appRoot)
}