-
Notifications
You must be signed in to change notification settings - Fork 110
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
Maven/Gradle support #37
Comments
Would help kmcaster too. See flathub/flathub#2165 (comment). |
I maintain the java extensions and have been thinking about it. Current status: Apache Ant, Apache Maven, and Gradle are available for use in the openjdk extensions, but building stuff from source is quite complex due to the offline nature of flathub builds. I have been working on some tooling to help, and will keep this ticket updated. |
I don't know anything about building Java apps, or Gradle, but I think that something like this could work. Run this from the app's git repo:
With source /usr/lib/sdk/openjdk11/enable.sh
rm -rf gradle-cache
mkdir -p dependencies/flatRepo/
# Install some ghidra specific files, should probably be installed by hand/outside this script
wget https://github.com/pxb1988/dex2jar/releases/download/2.0/dex-tools-2.0.zip
unzip -j dex-tools-2.0.zip "*.jar" -d dependencies/flatRepo/
wget -P dependencies/flatRepo/ https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android4me/AXMLPrinter2.jar
# Launch gradle build with `--info` to log all the http(s) URLs
gradle -g gradle-cache/ --info --console plain buildGhidra | grep http > gradle-log.txt
# And parse gradle-log.txt to output a nice json file... The parsing could also be done outside the sandbox, probably in Python. |
This script looks easy enough to modify for our needs: https://github.com/flatpak/flatpak-builder-tools/blob/master/dotnet/flatpak-dotnet-generator.py |
this seems to be tackled here: #276 |
For Maven, flatpak/flatpak-builder#58 (comment) is probably useful to know about (and used by some existing apps on Flathub). |
Latest push(es) fixed warnings related to the regex syntax:
|
This could be used to package Bisq and jadx.
The text was updated successfully, but these errors were encountered: