I tried to use `gradle packageMsi` in my GitHub Ac...
# compose-desktop
x
I tried to use
gradle packageMsi
in my GitHub Action pipeline. Unfortunately I fail with this error:
Copy code
* What went wrong:
Execution failed for task ':packageMsi'.
> Process 'command 'C:\hostedtoolcache\windows\jdk\14.0.2\x64\bin\jpackage.exe'' finished with non-zero exit value 1
I used this
runs-on
OS:
Copy code
Virtual Environment
  Environment: windows-2019
  Version: 20201210.0
d
No output? Try
--info
or
--verbose
x
Copy code
> Task :packageMsi
java.io.IOException: Command [light.exe, -nologo, -spdb, -ext, WixUtilExtension, -out, D:\a\CK3-Workbench\CK3-Workbench\build\compose\binaries\main\msi\ck3-workbench-0.0.1.msi, -ext, WixUIExtension, -loc, C:\Users\RUNNER~1\AppData\Local\Temp\jdk.incubator.jpackage14032834758551665868\config\MsiInstallerStrings_en.wxl, -b, C:\Users\RUNNER~1\AppData\Local\Temp\jdk.incubator.jpackage14032834758551665868\config, C:\Users\RUNNER~1\AppData\Local\Temp\jdk.incubator.jpackage14032834758551665868\wixobj\main.wixobj, C:\Users\RUNNER~1\AppData\Local\Temp\jdk.incubator.jpackage14032834758551665868\wixobj\bundle.wixobj]in C:\Users\RUNNER~1\AppData\Local\Temp\jdk.incubator.jpackage14032834758551665868\images\win-msi.image\ck3-workbench exited with 103 code
👀 1
t
Just to make sure... Does the build machine (to which C:\Users\RUNNER... relates) have WiX Toolset 3.0 or later installed?
x
@Thomas hm I think this should be all handled by the
gradle packageMsi
build doesn't it? Since on my local machine I never installed WiX as well and it works there and on all other windows 10 systems I tried it out
The only difference to the GitHub Action pipeline is that the pipeline is using:
Copy code
Environment: windows-2019
I might open an issue - maybe windows-2019 is not supported by
packageMsi
yet (wild guessing)
t
Was just wondering because the Oracle docs regarding jpackage (https://docs.oracle.com/en/java/javase/14/jpackage/packaging-overview.html#GUID-C1027043-587D-418D-8188-EF8F44A4C06A) state in section Packaging Pre-Preps: "WiX 3.0 or later is required.". On any local build on Windows machines (without GitHub actions) that tool must be present. Have not tried with GitHub Actions, though. Best of luck.
x
I see
@Thomas however it seems the
packageMsi
task does download it tho
👍 1
Copy code
:downloadWix (Thread[Execution worker for ':',5,main]) started.

> Task :downloadWix
Caching disabled for task ':downloadWix' because:
  Build cache is disabled
Task ':downloadWix' is not up-to-date because:
  Task.upToDateWhen is false.
Download <https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip>
:downloadWix (Thread[Execution worker for ':',5,main]) completed. Took 0.993 secs.
:unzipWix (Thread[Execution worker for ':',5,main]) started.

> Task :unzipWix
Caching disabled for task ':unzipWix' because:
  Build cache is disabled
Task ':unzipWix' is not up-to-date because:
  No history is available.
:unzipWix (Thread[Execution worker for ':',5,main]) completed. Took 1.533 secs.
:packageMsi (Thread[Execution worker for ':',5,main]) started.
t
Oh, I see. I am afraid I have no further ideas here. Maybe one last wild idea... If you have admin access to your virtual environment, install WixToolset on your own and see if this helps. ...still, might make things worse, too. So, am reluctant to really suggest. Again, best of luck
x
thanks for taking time anyway! Well I can't access the stuff since it's all in a build pipeline of github - maybe I just open an issue
👍 1
t
You are welcome. Sorry, for a moment confused GitHub and GitLab. 😎 Guess opening an issue is best.
x
👍 1