Przeglądaj źródła

Added debug install update command

flabbet 3 miesięcy temu
rodzic
commit
a018e7ad5b

+ 0 - 1
src/PixiEditor.UpdateInstaller.Exe/PixiEditor.UpdateInstaller.Exe.csproj

@@ -26,7 +26,6 @@
   </Target>
 
   <Target Name="Rename" AfterTargets="Publish" Condition="'$(RuntimeIdentifier)'=='win-x64' or '$(RuntimeIdentifier)'=='win-arm64'">
-    <Message Text="RuntimeIdentifier: '$(RuntimeIdentifier)'" Importance="high"/>
     <Move SourceFiles="$(PublishDir)PixiEditor.UpdateInstaller.Exe.exe" DestinationFiles="$(PublishDir)PixiEditor.UpdateInstaller.exe"/>
     <Message Text="Renamed published executable file." Importance="high"/>
   </Target>

+ 6 - 0
src/PixiEditor/ViewModels/SubViewModels/UpdateViewModel.cs

@@ -245,6 +245,12 @@ internal class UpdateViewModel : SubViewModel<ViewModelMain>
         Install(true);
     }
 
+    [Command.Debug("PixiEditor.Update.DebugInstall", "Debug Install Update", "(DEBUG) Install update zip file without checking for updates")]
+    public void DebugInstall()
+    {
+        Install(true);
+    }
+
     private void Install(bool startAfterUpdate)
     {
         string dir = Path.GetDirectoryName(Process.GetCurrentProcess().MainModule?.FileName) ??