Yaml for golang sciter library looks like?


#1

Hello friends, is it possible to share here yaml file for golang sciter program? I do not know what to write to yaml file. My basic idea is to use ldd in linux to show all dependent libs for compiled golang program and then copy them to local directory within my exe file. Then to create basic snap? Is it correct? What is the link among libs in local folder and libs necessary in yaml file? Thanks for any yaml suggestions, this is my golang source code for SCITER.COM library:

package main

import (
	"log"

	"github.com/sciter-sdk/go-sciter"
	"github.com/sciter-sdk/go-sciter/window"
)

func main() {
	w, err := window.New(sciter.SW_TITLEBAR|sciter.SW_RESIZEABLE|sciter.SW_CONTROLS|sciter.SW_MAIN|sciter.SW_ENABLE_DEBUG, nil)
	if err != nil {
		log.Fatal(err)
	}
	// log.Printf("handle: %v", w.Handle)
	w.LoadFile("simple.html")
	w.SetTitle("Example")
	w.Show()
	w.Run()
}

#2

Nothing too special with Sciter other than the requirement that libsciter-gtk.so to be installed (copied) in the same folder as resulting go executable.

So you will have basic Go rules: https://docs.snapcraft.io/go-applications/7818
and libsciter-gtk.so (x64) listed in fileset : https://docs.snapcraft.io/snapcraft-filesets/8973