Skip to content

Commit

Permalink
feat: v1.3.7 change request header
Browse files Browse the repository at this point in the history
  • Loading branch information
minkostaev committed May 28, 2024
1 parent 9dc4369 commit 31ee049
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 19 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,11 @@ jobs:
cd ${{ env.Proj_Name }}
#dotnet publish ShortcutsGrid.csproj /p:PublishProfile="Win System"
#copy "bin\Win System\net8.0-windows\publish\win-x64\Win System.exe" ..\\${{ env.Test_Proj_Dir }}\\TestResults
copy "Resources\ListCsv\Win Admin.csv" ..\\${{ env.Test_Proj_Dir }}\\TestResults
copy "Resources\ListCsv\Win System.csv" ..\\${{ env.Test_Proj_Dir }}\\TestResults
copy "Resources\ListCsv\Virtual Machines.csv" ..\\${{ env.Test_Proj_Dir }}\\TestResults
$exes = "Win System","Win Admin","Office","Utils","Browsers","Connections","Disk Tools","Audio","Image","Video","Hardware","Virtual Machines","Programming","Games"
foreach ($name in $exes)
{ dotnet publish ShortcutsGrid.csproj /p:PublishProfile="$name"
copy "bin\$name\net8.0-windows\publish\win-x64\$name.exe" ..\\${{ env.Test_Proj_Dir }}\\TestResults }
copy "bin\$name\net8.0-windows\publish\win-x64\$name.exe" ..\\${{ env.Test_Proj_Dir }}\\TestResults
copy "Resources\ListCsv\$name.csv" ..\\${{ env.Test_Proj_Dir }}\\TestResults }
# Upload artifacts in the ations section
- name: Upload artifacts
Expand Down
2 changes: 0 additions & 2 deletions ShortcutsGrid/Models/AppValues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ internal static class AppValues
public static string? ExeDir => Environment.CurrentDirectory;
public static string? ExeName => Path.GetFileNameWithoutExtension(ExePath);

public static string? ProjectName => AppDomain.CurrentDomain.FriendlyName;//"ShortcutsGrid";

public static string? AppVersion
{
get
Expand Down
5 changes: 1 addition & 4 deletions ShortcutsGrid/Models/Shortcut.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ public ImageSource? Image
{
get
{
if (_image == null)
{
_image = ImageUtilities.GetImageFromPaths(ImgPath, ExePath);
}
_image ??= ImageUtilities.GetImageFromPaths(ImgPath, ExePath);
return _image;
}
}
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
5 changes: 2 additions & 3 deletions ShortcutsGrid/Resources/ListCsv/Video.csv

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ShortcutsGrid/Services/ShowShortcuts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static void WaitForResponseOnClose(MainWindow window)
{
{ exitRequest ? "null" : "Desktop-Machine", machine.Hash },
{ "Desktop-Value", AppValues.LastExecuted },
{ "Desktop-Version", $"{AppValues.ProjectName}|{AppValues.AppVersion}" }
{ "Desktop-Version", $"ShortcutsGrid|{AppValues.AppVersion}" }
};
var requestManager = new RequestManager(headers!);
string jsonString = JsonSerializer.Serialize(machine);
Expand All @@ -67,7 +67,7 @@ public static void Load(MainWindow window)

var shortcuts = ReadShortcuts.FileToShortcuts();

shortcuts.Add(new Shortcut() { AppName = "Drag or Close", ImgPath = AppValues.CloseDragImage, Tag = AppValues.CloseDragId });
shortcuts.Add(new Models.Shortcut() { AppName = "Drag or Close", ImgPath = AppValues.CloseDragImage, Tag = AppValues.CloseDragId });

foreach (var shortcut in shortcuts)
{
Expand Down
8 changes: 4 additions & 4 deletions ShortcutsGrid/ShortcutsGrid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<UseWPF>true</UseWPF>
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
<ApplicationIcon>Resources\web-browser-128.ico</ApplicationIcon>
<AssemblyVersion>1.3.6.0</AssemblyVersion>
<FileVersion>1.3.6.0</FileVersion>
<VersionPrefix>1.3.6</VersionPrefix>
<AssemblyVersion>1.3.7.0</AssemblyVersion>
<FileVersion>1.3.7.0</FileVersion>
<VersionPrefix>1.3.7</VersionPrefix>
<VersionSuffix>$([System.DateTime]::UtcNow.ToString(yyyy-MM-dd))</VersionSuffix>
</PropertyGroup>

Expand All @@ -18,7 +18,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Forms.Wpf.Mls.Tools" Version="1.0.10" />
<PackageReference Include="Forms.Wpf.Mls.Tools" Version="1.0.11" />
<PackageReference Include="System.Drawing.Common" Version="8.0.5" />
</ItemGroup>

Expand Down

0 comments on commit 31ee049

Please sign in to comment.