Unable to package Windows app on Linux
- Dominant language
- Kotlin
- Stars
- 3k
- Forks
- 148
- Avg merge
- 13h 44m
- Merged PRs (30d)
- 1
Description
Attempting to use the `packageJvmWindowsApp` task fails with a permission denied error:
```
java.io.IOException: Cannot run program "$HOME/.konan/dependencies/resourcehacker/ResourceHacker.exe": error=13, Permission denied
```
Looking at the source for the Gradle supporting code, it should use Wine to run ResourceHacker, but doesn't appear to do so.
```
Shell: zsh 5.9
KorGE Forge 2025.2.1.1 (Fenix Edition)
Build #KF-252.25557.SNAPSHOT, built on September 6, 2025 at 06:35
Source revision: 917b28f78c531
Runtime version: 21.0.8+9-b1038.71 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.X11.XToolkit
Linux 6.18.7-arch1-1
Arch Linux; glibc: 2.42
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 8192M
Cores: 12
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
com.intellij.plugins.vscodekeymap (252.23892.201)
com.nbadal.ktlint (0.30.2)
com.github.copilot (1.5.63-243)
Kotlin: 252.25557.20250906-IJ
Current Desktop: KDE
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Gradle supporting code behind the `packageJvmWindowsApp` task and trace how it invokes `$HOME/.konan/dependencies/resourcehacker/ResourceHacker.exe` on Linux. Verify the task uses Wine for this executable, then rerun the packaging task to confirm the permission-denied error is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100