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

Build cross platform .jar files #13

Closed
sleeyax opened this issue Feb 9, 2022 · 0 comments
Closed

Build cross platform .jar files #13

sleeyax opened this issue Feb 9, 2022 · 0 comments
Labels
help wanted Extra attention is needed improvement

Comments

@sleeyax
Copy link
Owner

sleeyax commented Feb 9, 2022

Ideally, instead of having a release that looks like this

  • burp-awesome-tls.jar
  • *-server.dll
  • *-server.so
  • *-server.dylib

We should have something like this:

  • burp-awesome-tls-linux-x64.jar
  • burp-awesome-tls-win-x64.jar

This is much more user friendly.

Thinking further, we could also release an actual cross platform 'fat jar' burp-awesome-tls-fat.jar that contains all server binaries for all supported platforms (i.e. most popular win, mac and linux). This jar would be significantly bigger in size, but it would work everywhere and could be dragged around on an USB stick for example.


I'm not sure how this build process should look like though. I think we'd need something like this, unless I'm missing something obvious:

  • go build action builds all binaries and places them in ./src-go/server/build
  • a custom script copies each binary into src/java/resources with the correct JNA {OS}-{ARCH} folder name and builds the jar file each time one gets copied, plus cleans up afterwards (i.e delete the resources/{OS}-{ARCH} that was created)
  • a custom script copies all binaries to resources and builds the fatjar
@sleeyax sleeyax added help wanted Extra attention is needed improvement labels Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed improvement
Projects
None yet
Development

No branches or pull requests

1 participant