Răsfoiți Sursa

Fix regression on PR builds version number since new release system

Mary 4 ani în urmă
părinte
comite
26019c7d06
1 a modificat fișierele cu 4 adăugiri și 2 ștergeri
  1. 4 2
      Ryujinx.Common/ReleaseInformations.cs

+ 4 - 2
Ryujinx.Common/ReleaseInformations.cs

@@ -1,4 +1,6 @@
-namespace Ryujinx.Common
+using System.Reflection;
+
+namespace Ryujinx.Common
 {
 {
     // DO NOT EDIT, filled by CI
     // DO NOT EDIT, filled by CI
     public static class ReleaseInformations
     public static class ReleaseInformations
@@ -25,7 +27,7 @@
             }
             }
             else
             else
             {
             {
-                return "1.0.0-dirty";
+                return Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
             }
             }
         }
         }
     }
     }