package
3.0.0-alpha.33
Repository: https://github.com/wailsapp/wails.git
Documentation: pkg.go.dev

# README

The Wails CLI

The Wails CLI is a command line tool that allows you to create, build and run Wails applications. There are a number of commands related to tooling, such as icon generation and asset bundling.

Commands

task

The task command is for running tasks defined in Taskfile.yml. It is a wrapper around Task.

generate

The generate command is used to generate resources and assets for your Wails project. It can be used to generate many things including:

  • application icons,
  • resource files for Windows applications
  • Info.plist files for macOS deployments

icon

The icon command generates icons for your project.

FlagTypeDescriptionDefault
-exampleboolGenerates example icon file (appicon.png)
-inputstringThe input image file
-sizesstringThe sizes to generate in .ico file (comma separated)"256,128,64,48,32,16"
-windowsFilenamestringThe output filename for the Windows iconicon.ico
-macFilenamestringThe output filename for the Mac icon bundleicons.icns
wails3 generate icon -input myicon.png -sizes "32,64,128" -windowsFilename myicon.ico -macFilename myicon.icns       

This will generate icons for mac and windows and save them in the current directory as myicon.ico and myicons.icns.

syso

The syso command generates a Windows resource file (aka .syso).

wails3 generate syso <options>
FlagTypeDescriptionDefault
-exampleboolGenerates example manifest & info files
-manifeststringThe manifest file
-infostringThe info.json file
-iconstringThe icon file
-outstringThe output filename for the syso filewails.exe.syso
-archstringThe target architecture (amd64,arm64,386)runtime.GOOS

If -example is provided, the command will generate example manifest and info files in the current directory and exit.

If -manifest is provided, the command will use the provided manifest file to generate the syso file.

If -info is provided, the command will use the provided info.json file to set the version information in the syso file.

NOTE: We use winres to generate the syso file. Please refer to the winres documentation for more information.

NOTE: Whilst the tool will work for 32-bit Windows, it is not supported. Please use 64-bit.

defaults

wails3 generate defaults      

This will generate all the default assets and resources in the current directory.

bindings

wails3 generate bindings

Generates bindings and models for your bound Go methods and structs.