Documentation
¶
Index ¶
- func CopyIcon(appName string, targetDir string) error
- func CreateDesktopFile(appName string, category string, execPath string, iconPath string) error
- func CreateWindowsShortcut(appName string, execPath string) error
- func GetExecutableDir() (string, error)
- func GetExecutablePath() (string, error)
- func GetIconPath(appName string) (string, error)
- func GetSystemDataPath(appName string) (string, error)
- func RemoveAssets(appName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDesktopFile ¶
func CreateWindowsShortcut ¶
CreateWindowsShortcut maakt een .lnk bestand via PowerShell conform de bronnen.
func GetExecutableDir ¶
GetExecutableDir geeft de map terug waar de exe staat. Dit is nodig om de assets te vinden zoals het icoon (.png)
func GetExecutablePath ¶
GetExecutablePath bepaalt het absolute path waar het uitvoerbare bestand word uitgevoerd.
func GetIconPath ¶
GetIconPath geeft het pad voor het icoon terug voor linux
func GetSystemDataPath ¶
GetSystemDataPath Linux: ~/.local/share/{appName} Windows: AppData\Local\{appName}
func RemoveAssets ¶
RemoveAssets verwijdert alle installatiebestanden en mappen conform de bronnen. [6]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.