Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaProductions committed Jan 5, 2024
1 parent 73ab29d commit b926183
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ Rectify11.Phase2.exe
*.exe
x64/
/Rectify11Installer/Resources/Rectify11CPL.dll
Rectify11Installer/*.7z
Rectify11Installer/Resources/*.7z
*.tmp
11 changes: 0 additions & 11 deletions Rectify11Installer/Core/Backend/Icons.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,6 @@ public static bool Install(FrmWizard frm)
{
Logger.WriteLine("Installing icons");
Logger.WriteLine("────────────────");
// extract files, delete if folder exists
frm.InstallerProgress = "Extracting files...";
Helper.SafeDirectoryDeletion(Path.Combine(Variables.r11Folder, "files"), false);
if (!Helper.SafeFileOperation(
Path.Combine(Variables.r11Folder, "files.7z"),
Properties.Resources.files7z,
Helper.OperationType.Write))
return false;

// extract the 7z
Helper.SvExtract("files.7z", "files");

// Get all patches
var patches = PatchesParser.GetAll();
Expand Down
11 changes: 11 additions & 0 deletions Rectify11Installer/Core/Backend/Installer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ public bool Install(FrmWizard frm)
// some random issue where the installer's frame gets extended
if (!Theme.IsUsingDarkMode) DarkMode.UpdateFrame(frm, false);

// extract files, delete if folder exists
frm.InstallerProgress = "Extracting files...";
Helper.SafeDirectoryDeletion(Path.Combine(Variables.r11Folder, "files"), false);
if (!Helper.SafeFileOperation(
Path.Combine(Variables.r11Folder, "files.7z"),
Properties.Resources.files7z,
Helper.OperationType.Write))
return false;

// extract the 7z
Helper.SvExtract("files.7z", "files");

// theme
if (InstallOptions.InstallThemes)
Expand Down
6 changes: 3 additions & 3 deletions Rectify11Installer/Rectify11Installer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,12 @@
<PropertyGroup>
<PreBuildEvent>echo building archives..
cd /D "$(SolutionDir)Resources\Files\"
$(SolutionDir)Resources\Tools\7z.exe a "$(ProjectDir)Resources\files.7z" * -mx9
$(SolutionDir)Resources\Tools\7z.exe a "$(ProjectDir)Resources\files.7z" * -mx9 -ssp

cd /D "$(SolutionDir)Resources\Extras\"
$(SolutionDir)Resources\Tools\7z.exe a "$(ProjectDir)Resources\extras.7z" * -mx9
$(SolutionDir)Resources\Tools\7z.exe a "$(ProjectDir)Resources\extras.7z" * -mx9 -ssp

cd /D "$(SolutionDir)Resources\Themes\"
$(SolutionDir)Resources\Tools\7z.exe a "$(ProjectDir)Resources\themes.7z" * -mx9</PreBuildEvent>
$(SolutionDir)Resources\Tools\7z.exe a "$(ProjectDir)Resources\themes.7z" * -mx9 -ssp</PreBuildEvent>
</PropertyGroup>
</Project>

0 comments on commit b926183

Please sign in to comment.