platform

package
v0.0.0-...-72135b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyIcon

func CopyIcon(appName string, targetDir string) error

Icoon copieren {appName}.png vanuit de executable map

func CreateDesktopFile

func CreateDesktopFile(appName string, category string, execPath string, iconPath string) error

func CreateWindowsShortcut

func CreateWindowsShortcut(appName string, execPath string) error

CreateWindowsShortcut maakt een .lnk bestand via PowerShell conform de bronnen.

func GetExecutableDir

func GetExecutableDir() (string, error)

GetExecutableDir geeft de map terug waar de exe staat. Dit is nodig om de assets te vinden zoals het icoon (.png)

func GetExecutablePath

func GetExecutablePath() (string, error)

GetExecutablePath bepaalt het absolute path waar het uitvoerbare bestand word uitgevoerd.

func GetIconPath

func GetIconPath(appName string) (string, error)

GetIconPath geeft het pad voor het icoon terug voor linux

func GetSystemDataPath

func GetSystemDataPath(appName string) (string, error)

GetSystemDataPath Linux: ~/.local/share/{appName} Windows: AppData\Local\{appName}

func RemoveAssets

func RemoveAssets(appName string) error

RemoveAssets verwijdert alle installatiebestanden en mappen conform de bronnen. [6]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL