wails/v3/examples/dev
Lea Anthony 41ba4e7d11
feat(linux): generate .desktop file during build (#4575) (#4780)
* ## Summary

I've implemented the fix for issue #4575. Here's what was changed:

### Changes Made

**File: `v3/internal/commands/build_assets/linux/Taskfile.yml`**

1. Added `generate:dotdesktop` as a dependency to `build:native` task (line 45)
2. Added `generate:dotdesktop` as a dependency to `build:docker` task (line 63)

This ensures that the `.desktop` file is generated during every Linux build (both native and Docker-based), not just during packaging operations.

### How it works

- When running `wails build` or `wails dev` on Linux, the build process now automatically generates a `.desktop` file at `build/linux/<app-name>.desktop`
- The `.desktop` file contains:
  - Application name
  - Executable path
  - Icon reference
  - Categories (defaulting to "Development")
- This allows Linux desktop environments to properly display the application icon and metadata even during development

### Testing

To test the changes:
1. Create a new Wails v3 project: `wails3 init -n testapp`
2. Build it: `cd testapp && wails3 build`
3. Verify the `.desktop` file exists: `cat build/linux/testapp.desktop`

Would you like me to run a test or make any additional changes?

* feat(linux): generate .desktop file during build (#4575)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-13 12:22:59 +11:00
..
build [v3] Add dev example 2023-08-18 10:51:02 +10:00
frontend [v3] Typed Events, revisited (#4633) 2025-11-11 20:25:57 +11:00
.gitignore Update contextmenus/dev example 2023-10-09 17:38:46 +11:00
go.mod feat(linux): generate .desktop file during build (#4575) (#4780) 2025-12-13 12:22:59 +11:00
go.sum feat(linux): generate .desktop file during build (#4575) (#4780) 2025-12-13 12:22:59 +11:00
main.go Refactor Manager API to use singular naming convention (#4367) 2025-06-22 12:19:14 +10:00
README.md Update Task to v3.31.0. Update deps. 2023-10-09 10:39:09 +11:00
Taskfile.yml Fix syso naming issue 2024-11-18 20:43:03 +11:00

Dev Example

NOTE: This example is currently a work in progress. It is not yet ready for use.