wails/v3/examples/ios
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 Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
frontend Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
.gitignore Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +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
greetservice.go Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
ios_runtime_events_ios.go Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
ios_runtime_events_stub.go Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
main.go Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
README.md Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00
Taskfile.yml Merge iOS support from v3-alpha-feature/ios-support 2025-12-10 18:34:21 +11:00

Welcome to Your New Wails3 Project!

Congratulations on generating your Wails3 application! This README will guide you through the next steps to get your project up and running.

Getting Started

  1. Navigate to your project directory in the terminal.

  2. To run your application in development mode, use the following command:

    wails3 dev
    

    This will start your application and enable hot-reloading for both frontend and backend changes.

  3. To build your application for production, use:

    wails3 build
    

    This will create a production-ready executable in the build directory.

Exploring Wails3 Features

Now that you have your project set up, it's time to explore the features that Wails3 offers:

  1. Check out the examples: The best way to learn is by example. Visit the examples directory in the v3/examples directory to see various sample applications.

  2. Run an example: To run any of the examples, navigate to the example's directory and use:

    go run .
    

    Note: Some examples may be under development during the alpha phase.

  3. Explore the documentation: Visit the Wails3 documentation for in-depth guides and API references.

  4. Join the community: Have questions or want to share your progress? Join the Wails Discord or visit the Wails discussions on GitHub.

Project Structure

Take a moment to familiarize yourself with your project structure:

  • frontend/: Contains your frontend code (HTML, CSS, JavaScript/TypeScript)
  • main.go: The entry point of your Go backend
  • app.go: Define your application structure and methods here
  • wails.json: Configuration file for your Wails project

Next Steps

  1. Modify the frontend in the frontend/ directory to create your desired UI.
  2. Add backend functionality in main.go.
  3. Use wails3 dev to see your changes in real-time.
  4. When ready, build your application with wails3 build.

Happy coding with Wails3! If you encounter any issues or have questions, don't hesitate to consult the documentation or reach out to the Wails community.