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
- Host: GitHub
- URL: https://github.com/mahozad/compose-exe-manifest
- Owner: mahozad
- Created: 2024-09-07T06:00:59.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T10:20:02.000Z (9 months ago)
- Last Synced: 2024-09-15T14:20:14.803Z (9 months ago)
- Topics: app-manifest, compose-desktop, compose-multiplatform, compose-multiplatform-desktop, exe, gradle-plugin, manifest-files, run-as-admin
- Language: Kotlin
- Homepage: https://plugins.gradle.org/plugin/ir.mahozad.compose-exe-manifest
- Size: 1.84 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.ManifestModeplugins {
// ...
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