Documentation
¶
Index ¶
- func CheckForUpdates(satisfactoryPath string, install bool) bool
- func GetInstalledVersion(satisfactoryPath string) string
- func InstallSML(satisfactoryPath string, version string) error
- func UninstallSML(satisfactoryPath string) error
- func UpdateSML(satisfactoryPath string) error
- type SMLAsset
- type SMLRelease
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForUpdates ¶
CheckForUpdates compares the installed version with the newest available and optionally downloads it
func GetInstalledVersion ¶
GetInstalledVersion gets the version of the SML dll (0.0.0 = not found, 0.0.1 = <1.0.2 and not official)
func InstallSML ¶
InstallSML checks the versions of SML and installs if the specified version is newer than the installed version
func UninstallSML ¶
UninstallSML removes the SML dll from the path
Types ¶
type SMLRelease ¶
type SMLRelease struct {
Version string `json:"tag_name"`
Description string `json:"body"`
ReleaseDateTime time.Time `json:"published_at"`
Assets []SMLAsset `json:"assets"`
DownloadURL string
}
SMLRelease part of GitHub release structure
func GetLatestSML ¶
func GetLatestSML() SMLRelease
GetLatestSML finds the latest version of SML available to download from GitHub
func GetSMLReleases ¶
func GetSMLReleases() []SMLRelease
GetSMLReleases finds the versions of SML available to download from GitHub
Click to show internal directories.
Click to hide internal directories.