I want to build windows program on Linux machine. ...
# compose-desktop
i
I want to build windows program on Linux machine. I added
TargetFormat.Exe
and tried to run
packageExe
task. Project new and just created. I got output [thread]. When i inspect build folder there is no
.exe
files. What means
SKIPPED
? Nothing builds? May i somehow build exe on linux? Why i got no errors?
Copy code
10:31:59: Executing task 'packageExe'...

> Task :wrapper

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See <https://docs.gradle.org/7.1/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD SUCCESSFUL in 135ms
1 actionable task: 1 executed
> Task :compileKotlin UP-TO-DATE
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :checkRuntime UP-TO-DATE
> Task :createRuntimeImage UP-TO-DATE
> Task :inspectClassesForKotlinIC UP-TO-DATE
> Task :jar UP-TO-DATE
> Task :packageExe SKIPPED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See <https://docs.gradle.org/7.1/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD SUCCESSFUL in 182ms
5 actionable tasks: 5 up-to-date
10:31:59: Task execution finished 'packageExe'.
m
As far as I know cross-building for different platforms is not supported.
🙁 1
c
@Michael Paus Cross-building for non-linux platforms is never supported (common to all tools), building for Linux can be done from all platforms
a
We don’t support any cross-building
i
Actually that feature not needed, because this is not difficult - setup Windows docker on ci. But i thought that may be possible. It's better to ask