项目结构
了解典型 Wails 项目的文件布局
本页简要介绍使用 Vanilla 模板初始化新项目时创建的文件
text
/
├── main.go # Application entry point
├── greetservice.go # Example backend service exposed to frontend
├── go.mod # Go module definition
├── config.yml # Wails/project configuration
├── Taskfile.yml # Task runner for dev/build commands
├── build/ # Packaging and platform-specific assets
│ ├── appicon.png # Default app icon
│ ├── appicon.icon/ # Icon source files
│ ├── darwin/ # macOS build config
│ ├── windows/ # Windows build config
│ ├── linux/ # Linux build config
│ ├── android/ # Android build config
│ ├── ios/ # iOS build config
│ └── docker/ # Containerized build environment
├── frontend/ # Frontend (Vite + React + TS)
│ ├── index.html # HTML entry point
│ ├── src/
│ │ └── main.js # Frontend bootstrap
│ ├── public/ # Static assets
│ ├── dist/ # Built frontend output
│ ├── bindings/ # Auto-generated Go bindings
│ ├── package.json # Frontend dependencies
│ ├── vite.config.ts # Vite configuration
│ └── tsconfig.json # TypeScript configuration
├── bin/ # Compiled binaries
└── .task/ # Task runner cache