search and/or read your saved and liked bluesky posts
wails
go
svelte
sqlite
desktop
bluesky
1package main
2
3import (
4 "embed"
5
6 "github.com/wailsapp/wails/v2"
7 "github.com/wailsapp/wails/v2/pkg/options"
8 "github.com/wailsapp/wails/v2/pkg/options/assetserver"
9 "github.com/wailsapp/wails/v2/pkg/runtime"
10)
11
12//go:embed all:frontend/dist
13var assets embed.FS
14
15func main() {
16 app := NewApp()
17 err := wails.Run(&options.App{
18 Title: "bsky-browser",
19 Width: 1024,
20 Height: 768,
21 AssetServer: &assetserver.Options{Assets: assets},
22 BackgroundColour: &options.RGBA{R: 0, G: 0, B: 0, A: 1},
23 OnStartup: app.startup,
24 OnShutdown: app.shutdown,
25 Bind: []any{app, app.authService, app.indexService, app.searchService, app.logService},
26 })
27
28 if err != nil {
29 LogErrorf("Application error: %v", err)
30 runtime.LogErrorf(app.ctx, "Application error: %v", err)
31 }
32}