An open API service indexing awesome lists of open source software.

https://github.com/mahozad/compose-exe-manifest

Gradle plugin to embed manifest in app exe file
https://github.com/mahozad/compose-exe-manifest

app-manifest compose-desktop compose-multiplatform compose-multiplatform-desktop exe gradle-plugin manifest-files run-as-admin

Last synced: 4 months ago
JSON representation

Gradle plugin to embed manifest in app exe file

Awesome Lists containing this project

README

        

A Gradle plugin for [Compose Multiplatform][1] projects to embed a [manifest][2] in the app exe file.

> [!NOTE]
> The embedding only works for `create*Distributable` and `run*Distributable` tasks.
> The plugin currently does **NOT** work for packaging tasks (like `packageExe`).
> For `run*Distributable` tasks, start your terminal or IDE as administrator.

### Usage

```kotlin
import ir.mahozad.manifest.ManifestMode

plugins {
// ...
id("ir.mahozad.compose-exe-manifest") version "1.0.0"
}

composeExeManifest {
enabled = true
manifestMode = ManifestMode.EMBED
manifestFile = file("app.manifest") // Same directory as the build file
}
```

### Example app.manifest to make exe run as administrator

```xml



Description of my application






```

[1]: https://github.com/jetbrains/compose-multiplatform
[2]: https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests