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
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
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)
|
- name: Build the project (Linux x64)
|
||||||
run: |
|
run: |
|
||||||
dotnet publish ./PS2_Manager/PS2_Manager.csproj \
|
dotnet publish ./PS2_Manager/PS2_Manager.csproj \
|
||||||
|
|
|
@ -68,7 +68,8 @@
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Spacing="10">
|
Spacing="10">
|
||||||
<TextBlock Text="Welcome to the PS2 Games Manager"
|
<TextBlock Text=""
|
||||||
|
Name="WelcomeTextTop"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
TextAlignment="Center"
|
TextAlignment="Center"
|
||||||
FontSize="18"
|
FontSize="18"
|
||||||
|
|
|
@ -4,6 +4,7 @@ using System.ComponentModel;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
using Avalonia.Input;
|
using Avalonia.Input;
|
||||||
using Avalonia.Interactivity;
|
using Avalonia.Interactivity;
|
||||||
|
@ -11,6 +12,7 @@ using Avalonia.Media;
|
||||||
using Avalonia.Media.Imaging;
|
using Avalonia.Media.Imaging;
|
||||||
using Avalonia.Platform.Storage;
|
using Avalonia.Platform.Storage;
|
||||||
using Avalonia.Threading;
|
using Avalonia.Threading;
|
||||||
|
using DiscUtils;
|
||||||
using PS2_Manager.Core;
|
using PS2_Manager.Core;
|
||||||
|
|
||||||
namespace PS2_Manager;
|
namespace PS2_Manager;
|
||||||
|
@ -136,6 +138,10 @@ public partial class MainWindow : Window
|
||||||
|
|
||||||
private async void Control_OnLoaded(object? sender, RoutedEventArgs e)
|
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(settings.library_path.GetValue<string>());
|
||||||
Util.CheckDir(Path.Combine(settings.library_path.GetValue<string>(), "DVD"));
|
Util.CheckDir(Path.Combine(settings.library_path.GetValue<string>(), "DVD"));
|
||||||
Util.CheckDir(Path.Combine(settings.library_path.GetValue<string>(), "CD"));
|
Util.CheckDir(Path.Combine(settings.library_path.GetValue<string>(), "CD"));
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
||||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||||
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
||||||
|
<AssemblyVersion>1.0</AssemblyVersion>
|
||||||
|
<FileVersion>1.0</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
Loading…
Add table
Reference in a new issue