Guest User

Untitled

a guest
Oct 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. # *** Build DualBootPatcher from beginning under Linux within Docker environment ***
  2.  
  3.  
  4. mkdir ~/git
  5. cd ~/git
  6.  
  7.  
  8. git clone --recursive https://github.com/chenxiaolong/DualBootPatcher.git
  9.  
  10.  
  11. git submodule update --init --recursive
  12.  
  13.  
  14. ./docker/generate.sh
  15.  
  16.  
  17. ./docker/build.sh
  18.  
  19.  
  20. docker run --rm -it
  21. -e USER_ID=$(id -u)
  22. -e GROUP_ID=$(id -g)
  23. -v "$(pwd):/builder/DualBootPatcher:rw,z"
  24. -v "${HOME}/.android:/builder/.android:rw,z"
  25. -v "${HOME}/.ccache:/builder/.ccache:rw,z"
  26. -v "${HOME}/.gradle:/builder/.gradle:rw,z"
  27. chenxiaolong/dualbootpatcher:9.3.0-6-android
  28. bash
  29.  
  30.  
  31. keytool -genkey -v
  32. -keystore /root/.android/debug.keystore
  33. -alias androiddebugkey
  34. -storepass android
  35. -keypass android
  36. -keyalg RSA
  37. -validity 10950
  38. -dname "CN=Android Debug,O=Android,C=US"
  39.  
  40.  
  41. keytool -importkeystore -srckeystore /root/.android/debug.keystore -destkeystore /root/.android/debug.keystore -deststoretype pkcs12
  42.  
  43.  
  44. mkdir /builder/DualBootPatcher/build || cd /builder/DualBootPatcher/build && cmake .. -DMBP_BUILD_TARGET=android
  45. # cd /builder/DualBootPatcher/build && cmake .. -DMBP_BUILD_TARGET=android -DMBP_BUILD_TYPE=release -DMBP_SIGN_CONFIG_PATH=/root/.android/klorinczi.keystore
  46.  
  47.  
  48. # Build the system components. This includes things like mbtool, odinupdater, and various native libraries used by the app. The build can be sped up by running things in parallel. Just pass -j<number of cores> (eg. -j4) to make.
  49. make -j10
  50.  
  51.  
  52. # Package the system components into a tarball.
  53. rm -rf assets && cpack
  54.  
  55.  
  56. # Build the APK. The resulting APK file will be in the Android_GUI/build/outputs/apk directory.
  57. make apk
  58.  
  59.  
  60.  
  61. # *** Build DualBootPatcher from beginning under Linux within Docker environment ***
  62.  
  63. mkdir ~/git
  64.  
  65.  
  66. cd ~/git
  67.  
  68.  
  69. git clone --recursive https://github.com/chenxiaolong/DualBootPatcher.git
  70.  
  71.  
  72. git submodule update --init --recursive
  73.  
  74.  
  75. ./docker/generate.sh
  76.  
  77.  
  78. ./docker/build.sh
  79.  
  80.  
  81. docker run --rm -it
  82. -e USER_ID=$(id -u)
  83. -e GROUP_ID=$(id -g)
  84. -v "$(pwd):/builder/DualBootPatcher:rw,z"
  85. -v "${HOME}/.android:/builder/.android:rw,z"
  86. -v "${HOME}/.ccache:/builder/.ccache:rw,z"
  87. -v "${HOME}/.gradle:/builder/.gradle:rw,z"
  88. chenxiaolong/dualbootpatcher:9.3.0-6-android
  89. bash
  90.  
  91.  
  92. keytool -genkey -v
  93. -keystore /root/.android/debug.keystore
  94. -alias androiddebugkey
  95. -storepass android
  96. -keypass android
  97. -keyalg RSA
  98. -validity 10950
  99. -dname "CN=Android Debug,O=Android,C=US"
  100.  
  101.  
  102. keytool -importkeystore -srckeystore /root/.android/debug.keystore -destkeystore /root/.android/debug.keystore -deststoretype pkcs12
  103.  
  104.  
  105. mkdir /builder/DualBootPatcher/build || cd /builder/DualBootPatcher/build && cmake .. -DMBP_BUILD_TARGET=android
  106.  
  107.  
  108. # Build the system components. This includes things like mbtool, odinupdater, and various native libraries used by the app. The build can be sped up by running things in parallel. Just pass -j<number of cores> (eg. -j4) to make.
  109. make -j10
  110.  
  111.  
  112. # Package the system components into a tarball.
  113. rm -rf assets && cpack
  114.  
  115.  
  116. # Build the APK. The resulting APK file will be in the Android_GUI/build/outputs/apk directory.
  117. make apk
  118.  
  119.  
  120. [root@465d02ff230d build]# make apk
  121. mmap failed for CEN and END part of zip file
  122. Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
  123. make[3]: *** [Android_GUI/CMakeFiles/apk.dir/build.make:57: Android_GUI/CMakeFiles/apk] Error 1
  124. make[2]: *** [CMakeFiles/Makefile2:710: Android_GUI/CMakeFiles/apk.dir/all] Error 2
  125. make[1]: *** [CMakeFiles/Makefile2:717: Android_GUI/CMakeFiles/apk.dir/rule] Error 2
  126. make: *** [Makefile:301: apk] Error 2
Add Comment
Please, Sign In to add comment