Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java only includes linux architecture in readme? #51

Open
Zethson opened this issue Jan 10, 2020 · 1 comment
Open

Java only includes linux architecture in readme? #51

Zethson opened this issue Jan 10, 2020 · 1 comment

Comments

@Zethson
Copy link

Zethson commented Jan 10, 2020

Dear developers,

great tool! Your README only includes linux as the target architecture in the Java section. Is there any reason for that?

@metacodez
Copy link

metacodez commented Feb 26, 2021

Hi @Zethson,

great tool! Your README only includes linux as the target architecture in the Java section. Is there any reason for that?

I don't think so, I just built self-contained Java applications for Linux as well as for Windows. You can adjust the Script used for the Node.js example (it's for Windows), in the end mine looked as follows:

Content of launcher.cmd

@ECHO OFF
SETLOCAL
SET "JAVA_EXE=%~dp0\jre\bin\java.exe"
SET "APP_JAR=%~dp0\application.jar"
CALL %JAVA_EXE% -jar %APP_JAR% %*
EXIT /B %ERRORLEVEL%

Having the Windows JRE in place, creating an executable for Windows is as easy as this:

./warp-packer --arch windows-x64 --input_dir  "./bundle" --exec launcher.cmd --output application.exe

Thanks a lot to the developers, I have been looking for a tool exactly like Warp for quite some time now and was happy to find Warp!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants