This commit is contained in:
parent
e562d4a0ad
commit
c08316e222
4 changed files with 17 additions and 1 deletions
|
@ -18,6 +18,13 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Extract FileVersion from .csproj
|
||||
id: get_version
|
||||
run: |
|
||||
version=$(grep -oPm1 "(?<=<FileVersion>)[^<]+" PS2_Manager/PS2_Manager.csproj)
|
||||
echo "PS2Manager version: $version"
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build the project (Linux x64)
|
||||
run: |
|
||||
dotnet publish ./PS2_Manager/PS2_Manager.csproj \
|
||||
|
|
|
@ -68,7 +68,8 @@
|
|||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Center"
|
||||
Spacing="10">
|
||||
<TextBlock Text="Welcome to the PS2 Games Manager"
|
||||
<TextBlock Text=""
|
||||
Name="WelcomeTextTop"
|
||||
HorizontalAlignment="Center"
|
||||
TextAlignment="Center"
|
||||
FontSize="18"
|
||||
|
|
|
@ -4,6 +4,7 @@ using System.ComponentModel;
|
|||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Input;
|
||||
using Avalonia.Interactivity;
|
||||
|
@ -11,6 +12,7 @@ using Avalonia.Media;
|
|||
using Avalonia.Media.Imaging;
|
||||
using Avalonia.Platform.Storage;
|
||||
using Avalonia.Threading;
|
||||
using DiscUtils;
|
||||
using PS2_Manager.Core;
|
||||
|
||||
namespace PS2_Manager;
|
||||
|
@ -136,6 +138,10 @@ public partial class MainWindow : Window
|
|||
|
||||
private async void Control_OnLoaded(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
string fileVersion = FileVersionInfo
|
||||
.GetVersionInfo(Assembly.GetExecutingAssembly().Location)
|
||||
.FileVersion ?? "Unknown";
|
||||
WelcomeTextTop.Text = "Welcome to the PS2 Games Manager v" + fileVersion;
|
||||
Util.CheckDir(settings.library_path.GetValue<string>());
|
||||
Util.CheckDir(Path.Combine(settings.library_path.GetValue<string>(), "DVD"));
|
||||
Util.CheckDir(Path.Combine(settings.library_path.GetValue<string>(), "CD"));
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
||||
<AssemblyVersion>1.0</AssemblyVersion>
|
||||
<FileVersion>1.0</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Loading…
Add table
Reference in a new issue