mirror of
https://github.com/likelovewant/ollama-for-amd.git
synced 2025-12-21 22:33:56 +00:00
* app: add code for macOS and Windows apps under 'app' * app: add readme * app: windows and linux only for now * ci: fix ui CI validation --------- Co-authored-by: jmorganca <jmorganca@gmail.com>
20 lines
264 B
Go
20 lines
264 B
Go
//go:build windows || darwin
|
|
|
|
package assets
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
)
|
|
|
|
//go:embed *.ico
|
|
var icons embed.FS
|
|
|
|
func ListIcons() ([]string, error) {
|
|
return fs.Glob(icons, "*")
|
|
}
|
|
|
|
func GetIcon(filename string) ([]byte, error) {
|
|
return icons.ReadFile(filename)
|
|
}
|