MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / push

Method push

source/MaaAdbControlUnit/Invoke/InvokeApp.cpp:104–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104bool InvokeApp::push(const std::filesystem::path& path)
105{
106 LogFunc << VAR(path);
107
108 std::string absolute_path = path_to_utf8_string(std::filesystem::absolute(path));
109 merge_replacement({ { "{BIN_PATH}", absolute_path }, { "{BIN_WORKING_FILE}", tempname_ } });
110
111 auto argv_opt = push_bin_argv_.gen(argv_replace_);
112 if (!argv_opt) {
113 return false;
114 }
115
116 auto output_opt = startup_and_read_pipe(*argv_opt);
117 if (!output_opt) {
118 return false;
119 }
120
121 pushed_ = true;
122 return true;
123}
124
125bool InvokeApp::chmod()
126{

Callers 3

init_binaryMethod · 0.80
push_minitouchMethod · 0.80
initMethod · 0.80

Calls 1

genMethod · 0.80

Tested by

no test coverage detected