Advertisement
dannybuntu

com.greenaddress.greenbits_android-4.0.28-2024-06-06

Jun 5th, 2024
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | Source Code | 0 0
  1. 1. Build using existing script. 😩 [LINK](https://pastebin.com/uGHtzQq7)
  2. 2. Clone repository to build server and build using docker 😩 [Pastebin - LINK](https://pastebin.com/r9dd9Pf3) [OpenAI Solution](https://chatgpt.com/c/940abada-5884-4d69-b2c1-1c60ba15af5c)
  3. 1. change what's inside Dockerfile to `RUN ./gradlew assembleProductionGoogleRelease`
  4. 2. edit bullseye_deps.sh to include:
  5. ```
  6. # bullseye_deps.sh
  7. apt-get update
  8. apt-get install -y openjdk-17-jdk # or openjdk-11-jdk if you prefer
  9. # Other dependencies installation
  10. ```
  11. 3. ensure correct **JAVA_HOME** in Dockerfile
  12. ```
  13. # Deps
  14. COPY bullseye_deps.sh /deps.sh
  15. RUN /deps.sh && rm /deps.sh
  16.  
  17. # Volume
  18. VOLUME /ga
  19.  
  20. # Env
  21. ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 # Change this path based on your Java version
  22. ENV ANDROID_HOME=/opt
  23.  
  24. # Cache Gradle
  25. COPY gradle /gradle
  26. COPY gradlew /gradlew
  27. RUN ./gradlew --version && rm -rf /gradle*
  28.  
  29. # Entry point
  30. COPY entrypoint.sh /entrypoint.sh
  31. ENTRYPOINT ["/entrypoint.sh"]
  32. ```
  33. 4. **Update entrypoint.sh**
  34. ```
  35. #!/bin/sh
  36.  
  37. # Ensure JAVA_HOME is set
  38. export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
  39.  
  40. # Navigate to the project directory
  41. cd /ga
  42.  
  43. # Run the Gradle build with the correct task
  44. ./gradlew assembleProductionGoogleRelease
  45. ```
  46. - Even after editing these, it failed 😩 [PASTEBIN](https://pastebin.com/8KLGdtRZ)
  47. 3. **Pull the Docker image** 😩 [PASTEBIN](https://pastebin.com/2ekUXdkk)
  48. 1. `docker pull greenaddress/android && docker run -it -v $PWD:/ga greenaddress/android`
  49.  
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement