PathCombine 통합 작업
This commit is contained in:
@@ -37,15 +37,15 @@ namespace Mitria_Minecraft_Launcher.Updater
|
||||
System.IO.Directory.CreateDirectory("temp");
|
||||
}
|
||||
|
||||
string downloadUrl = CommonLibrary.Extensions.PathCombineL(Settings.ServerBaseUrl, launcherPatchInformation.LauncherUrl, launcherPatchInformation.LauncherFileName);
|
||||
string launcherPackFile = CommonLibrary.Extensions.PathCombineW(tempDirectory, launcherPatchInformation.LauncherFileName);
|
||||
string downloadUrl = CommonLibrary.Extensions.PathCombine(Settings.ServerBaseUrl, launcherPatchInformation.LauncherUrl, launcherPatchInformation.LauncherFileName);
|
||||
string launcherPackFile = CommonLibrary.Extensions.PathCombine(tempDirectory, launcherPatchInformation.LauncherFileName);
|
||||
downloader.DownloadFile(downloadUrl, launcherPackFile);
|
||||
|
||||
string launcherFile = System.Reflection.Assembly.GetExecutingAssembly().Location;
|
||||
string launcherPath = System.IO.Path.GetDirectoryName(launcherFile);
|
||||
|
||||
// 기존 파일 파일명 변경후 temp 디렉토리로 이전
|
||||
string oldLauncherFile = CommonLibrary.Extensions.PathCombineW(tempDirectory, System.Reflection.Assembly.GetExecutingAssembly().GetName().Name + "_old");
|
||||
string oldLauncherFile = CommonLibrary.Extensions.PathCombine(tempDirectory, System.Reflection.Assembly.GetExecutingAssembly().GetName().Name + "_old");
|
||||
System.IO.File.Move(launcherFile, oldLauncherFile);
|
||||
|
||||
// 언패킹 과정
|
||||
|
Reference in New Issue
Block a user