スキル一覧に戻る
Otard95

wails

by Otard95

ED Expedition is a tool designed to help you plan, execute, and record your journeys through the galaxy. It allows you to plot routes using several methods and join one or more routes into one expedition.

0🍴 0📅 2026年1月14日
GitHubで見るManusで実行

SKILL.md


name: wails description: Wails v2 framework knowledge for Go + web frontend desktop apps. Use when working with Wails projects, debugging build issues, understanding bindings generation, or dealing with platform-specific quirks (webkit versions, live reload, build directory structure).

Wails Framework

Wails is a Go framework for building desktop applications with web frontends. Knowledge here supplements official docs with practical learnings.

Live Reload Development

When running wails dev:

  • Frontend changes trigger instant Vite hot reload
  • Backend Go changes trigger recompilation and app restart
  • TypeScript bindings auto-regenerate when Go exported methods change

Do not manually run:

  • pnpm run build, go build, or wails build
  • wails generate module (bindings generate automatically)

To verify Go compilation without artifacts: go build -o /dev/null .

TypeScript Bindings

Wails auto-generates TypeScript from exported App struct methods:

  • Method signatures → frontend/wailsjs/go/main/App.ts
  • Go structs used in signatures → frontend/wailsjs/go/models.ts

All bindings return Promises (async). Backend is source of truth - reload data after mutations.

Webkit2 Linux Variants

Linux builds must match the system's webkit ABI:

SystemWebkit PackageWails Flag
Ubuntu 22.04, Debian 11libwebkit2gtk-4.0(none)
Ubuntu 24.04+, NixOSlibwebkit2gtk-4.1-tags webkit2_41

Building with the wrong variant causes missing library errors at runtime.

Build Directory Structure

build/
├── bin/           # Output binaries
├── darwin/        # macOS-specific (Info.plist, Info.dev.plist)
└── windows/       # Windows-specific (icon.ico, manifest, installer/)

Platform files are customizable. Delete them and run wails build to regenerate defaults.

Nix Packaging

For NixOS, the binary needs runtime library wrapping:

libs = [ glib gtk3 webkitgtk_4_1 gsettings-desktop-schemas ];

Use wrapProgram to inject LD_LIBRARY_PATH and XDG_DATA_DIRS.

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です