Documentation ¶
Index ¶
- Variables
- func AreResourcesRelevantForCurrentPlatform(os string, arch string) bool
- func Extract(zipFilename string, dir string) error
- func GenerateResourcesDirName(workDir string, filedata []byte) string
- func ParseCodebaseURL(codebase string) (*url.URL, error)
- func RemoveResourceDir(workDir string, filedata []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ArchSynonyms = map[string]string{
"x86": "386",
"i386": "386",
"i686": "386",
"x64": "amd64",
"x86_64": "amd64",
}
ArchSynonyms maps JWS architectures to Golang ones
View Source
var OSSynonyms = map[string]string{
"mac os": "darwin",
"mac os x": "darwin",
"windows 95": "windows",
"windows 98": "windows",
"windows nt": "windows",
"windows 2000": "windows",
"windows 2003": "windows",
}
OSSynonyms maps JWS OSes to Golang ones
Functions ¶
func GenerateResourcesDirName ¶
GenerateResourcesDirName generates a directory name for resource files.
func ParseCodebaseURL ¶
ParseCodebaseURL parses codebase URL, adds trailing slash if needed
func RemoveResourceDir ¶
RemoveResourceDir removes resource directory for an app filedata - content of JNLP file for app
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.