Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RepackageFile ¶
RepackageFile takes the given zip file, recreates it without compression and optionally injects the manifest specified. The compression is removed to help with deduplication – especially on IPFS. The compression also is almost negligible for mod jars
Types ¶
type PackageFile ¶
PackageFile is a local zip (or jar) file that may contain a minepkg.toml
func Open ¶
func Open(filePath string) (*PackageFile, error)
Open will open the package (zip or jar) file specified by name and return a PackageFile.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader for a zip (or jar) file that may contain a minepkg.toml
func (*Reader) ExtractModpack ¶
ExtractModpack will extract everything in this zipfile to `dest` but will NOT overwrite existing savefiles
Click to show internal directories.
Click to hide internal directories.