mirror of
https://github.com/yawaflua/SpCloudCore.git
synced 2025-12-08 19:49:28 +02:00
First verstion of app with megrating to real server
This commit is contained in:
@@ -14,7 +14,9 @@ private:
|
||||
|
||||
FileProcessingService file_processing;
|
||||
|
||||
std::string publish_app_path = "C:/Temps/";//Todo change to linux path
|
||||
//std::string publish_app_path = "/mnt/c/Users/Danil/SpCloudApp";//Todo change to linux path
|
||||
std::string publish_app_path = "/home/danilt2000/SpCloud/SpCloudApp";//Todo change to linux path
|
||||
//std::string publish_app_path = "C:/Temps/";// Todo delete if not needed
|
||||
|
||||
public:
|
||||
PublishController(httplib::Server& svr, AuthorizationService authorization, FileProcessingService file_processing)
|
||||
|
||||
@@ -32,7 +32,8 @@ public:
|
||||
//std::string command = R"(powershell -Command "& \"C:\Program Files\WinRAR\WinRAR.exe\" x \")" + file_path + R"(\" \")" + final_files_directory + R"(\")";
|
||||
|
||||
//Linux version
|
||||
std::string command = "unzip " + file_path + " -d " + final_files_directory;
|
||||
//std::string command = "unzip " + file_path + " -d " + final_files_directory;
|
||||
std::string command = "unrar x" + file_path + " " + final_files_directory;
|
||||
|
||||
std::thread commandThread(&CommandService::execute_command, command);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user