mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-01-02 11:36:22 +01:00
ensure that android is built and packaged
This commit is contained in:
parent
7c32995615
commit
7b9352f00f
@ -83,7 +83,7 @@ end
|
||||
|
||||
task :java_compile do
|
||||
Dir.chdir(java_source) do
|
||||
system('mvn package -Ddeploy.path=output -Dandroid.release=true -q -P deploy')
|
||||
system('mvn package -Ddeploy.path=output -Dandroid.sdk.path=$ANDROID_HOME -Dandroid.ndk.path=$ANDROID_NDK_HOME -Dandroid.release=true -q -P deploy')
|
||||
end
|
||||
end
|
||||
|
||||
@ -98,6 +98,7 @@ end
|
||||
task :java_copy do
|
||||
copy_files(platform_config[:java], meterpreter_dest)
|
||||
FileUtils.remove_entry_secure('./java', :force => true)
|
||||
FileUtils.cp_r('../java/output/data/android', dest)
|
||||
FileUtils.cp_r('../java/output/data/java', dest)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user