Skip to content

Commit

Permalink
FInish task and publish 3.5.209.0 version
Browse files Browse the repository at this point in the history
1.FInish task and publish 3.5.209.0 version
2.Update Windows Sdk version to 10.0.22621.33
  • Loading branch information
Gaoyifei1011 committed Feb 9, 2024
1 parent 792637f commit 5540f8c
Show file tree
Hide file tree
Showing 17 changed files with 55 additions and 52 deletions.
2 changes: 1 addition & 1 deletion GetStoreApp/GetStoreApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<WindowsAppSDKDeploymentManagerInitialize>false</WindowsAppSDKDeploymentManagerInitialize>
<WindowsAppSDKSelfContained>false</WindowsAppSDKSelfContained>
<WindowsPackageType>MSIX</WindowsPackageType>
<WindowsSdkPackageVersion>10.0.22621.31</WindowsSdkPackageVersion>
<WindowsSdkPackageVersion>10.0.22621.33</WindowsSdkPackageVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)'=='x86'">
Expand Down
Binary file modified GetStoreApp/GetStoreAppResource.res
Binary file not shown.
15 changes: 0 additions & 15 deletions GetStoreApp/Helpers/Converters/ValueCheckConverterHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,6 @@ public static bool FileExistReverseCheck(string path)
return !File.Exists(path);
}

/// <summary>
/// 检测文件是否存在,进行文字提示
/// </summary>
public static string FileExistTextCheck(string path)
{
if (File.Exists(path))
{
return ResourceService.GetLocalized("Download/CompleteDownload");
}
else
{
return ResourceService.GetLocalized("Download/FileNotExist");
}
}

/// <summary>
/// 检测当前页面是否为应用列表页面
/// </summary>
Expand Down
16 changes: 16 additions & 0 deletions GetStoreApp/Helpers/Converters/ValueConverterHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,21 @@ public static Visibility BooleanToVisibilityReverseConvert(bool value)
{
return value is false ? Visibility.Visible : Visibility.Collapsed;
}

/// <summary>
/// 空字符串值与显示值转换
/// </summary>
public static Visibility StringVisibilityConvert(string value)
{
return !string.IsNullOrEmpty(value) ? Visibility.Visible : Visibility.Collapsed;
}

/// <summary>
/// 空字符串值与显示值转换(判断结果相反)
/// </summary>
public static Visibility StringReverseVisibilityConvert(string value)
{
return string.IsNullOrEmpty(value) ? Visibility.Visible : Visibility.Collapsed;
}
}
}
6 changes: 3 additions & 3 deletions GetStoreApp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
[assembly: AssemblyCompany("高怡飞")]
[assembly: AssemblyCopyright("Copyright ©2022-2023 高怡飞, All Rights Reserved.")]
[assembly: AssemblyDescription("获取商店应用")]
[assembly: AssemblyFileVersion("3.4.208.0")]
[assembly: AssemblyInformationalVersion("3.4.208.0")]
[assembly: AssemblyFileVersion("3.5.209.0")]
[assembly: AssemblyInformationalVersion("3.5.209.0")]
[assembly: AssemblyProduct("获取商店应用")]
[assembly: AssemblyTitle("获取商店应用")]
[assembly: AssemblyVersion("3.4.208.0")]
[assembly: AssemblyVersion("3.5.209.0")]

// 设置程序集对 COM 组件的访问权限
[assembly: ComVisible(false)]
Expand Down
2 changes: 1 addition & 1 deletion GetStoreApp/Strings/en-us/About.resw
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
<value>Open App settings</value>
</data>
<data name="AppVersion" xml:space="preserve">
<value>Application Version: {0}</value>
<value>Application Version: </value>
</data>
<data name="Backdrop" xml:space="preserve">
<value>Backdrop settings instructions</value>
Expand Down
2 changes: 1 addition & 1 deletion GetStoreApp/Strings/en-us/Store.resw
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
<value>Publisehr:</value>
</data>
<data name="QueryedAppType" xml:space="preserve">
<value>AppType: {0}</value>
<value>AppType: </value>
</data>
<data name="QueryLinks" xml:space="preserve">
<value>Query links</value>
Expand Down
2 changes: 1 addition & 1 deletion GetStoreApp/Strings/zh-hans/About.resw
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
<value>打开应用设置</value>
</data>
<data name="AppVersion" xml:space="preserve">
<value>应用版本:{0}</value>
<value>应用版本:</value>
</data>
<data name="Backdrop" xml:space="preserve">
<value>背景色设置说明</value>
Expand Down
2 changes: 1 addition & 1 deletion GetStoreApp/Strings/zh-hans/Store.resw
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
<value>发布者:</value>
</data>
<data name="QueryedAppType" xml:space="preserve">
<value>应用类型:{0}</value>
<value>应用类型:</value>
</data>
<data name="QueryLinks" xml:space="preserve">
<value>查询链接</value>
Expand Down
4 changes: 2 additions & 2 deletions GetStoreApp/UI/Controls/Download/CompletedControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
VerticalAlignment="Center"
x:Load="{x:Bind io:File.Exists(FilePath)}"
FontSize="14"
Text="{x:Bind converter:ValueCheckConverterHelper.FileExistTextCheck(FilePath)}"
Text="{x:Bind root:ResourceService.GetLocalized('Download/CompleteDownload')}"
TextAlignment="Left" />

<TextBlock
Expand All @@ -310,7 +310,7 @@
x:Load="{x:Bind converter:ValueCheckConverterHelper.FileExistReverseCheck(FilePath)}"
FontSize="14"
Foreground="{ThemeResource InfoBarErrorSeverityIconBackground}"
Text="{x:Bind converter:ValueCheckConverterHelper.FileExistTextCheck(FilePath)}"
Text="{x:Bind root:ResourceService.GetLocalized('Download/FileNotExist')}"
TextAlignment="Left" />
</StackPanel>

Expand Down
20 changes: 19 additions & 1 deletion GetStoreApp/UI/Controls/Store/QueryLinksControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,25 @@
VerticalAlignment="Center"
Visibility="{x:Bind converter:ValueConverterHelper.IntToVisibilityConvert(QueryLinksCollection.Count), Mode=OneWay}">

<TextBlock Text="{x:Bind LocalizeQueryedAppType(AppInfo.CategoryID), Mode=OneWay}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<TextBlock Grid.Column="0" Text="{x:Bind root:ResourceService.GetLocalized('Store/QueryedAppType')}" />

<TextBlock
Grid.Column="1"
Text="{x:Bind root:ResourceService.GetLocalized('Store/NonPackagedApp')}"
Visibility="{x:Bind converter:ValueConverterHelper.StringReverseVisibilityConvert(AppInfo.CategoryID), Mode=OneWay}" />

<TextBlock
Grid.Column="2"
Text="{x:Bind root:ResourceService.GetLocalized('Store/PackagedApp')}"
Visibility="{x:Bind converter:ValueConverterHelper.StringVisibilityConvert(AppInfo.CategoryID), Mode=OneWay}" />
</Grid>

<TextBlock Text="{x:Bind sys:String.Format(QueryLinksCountInfo, QueryLinksCollection.Count), Mode=OneWay}" />
</StackPanel>

Expand Down
15 changes: 0 additions & 15 deletions GetStoreApp/UI/Controls/Store/QueryLinksControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -853,21 +853,6 @@ private void OnPropertyChanged([CallerMemberName] string propertyName = null)
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}

/// <summary>
/// 本地化应用类型字符串
/// </summary>
private string LocalizeQueryedAppType(string categoryId)
{
if (string.IsNullOrEmpty(categoryId))
{
return string.Format(ResourceService.GetLocalized("Store/QueryedAppType"), ResourceService.GetLocalized("Store/NonPackagedApp"));
}
else
{
return string.Format(ResourceService.GetLocalized("Store/QueryedAppType"), ResourceService.GetLocalized("Store/PackagedApp"));
}
}

/// <summary>
/// 从本地数据存储中加载查询链接历史记录数据
/// </summary>
Expand Down
9 changes: 5 additions & 4 deletions GetStoreApp/Views/Pages/AboutPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:collection="using:System.Collections"
xmlns:converter="using:GetStoreApp.Helpers.Converters"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:helper="using:GetStoreApp.Helpers.Root"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:root="using:GetStoreApp.Services.Root"
Loaded="{x:Bind OnLoaded}"
Expand Down Expand Up @@ -166,10 +167,10 @@
FontSize="30"
Text="{x:Bind root:ResourceService.GetLocalized('About/AppName')}" />

<TextBlock
Margin="0,0,0,10"
FontSize="15"
Text="{x:Bind AppVersion}" />
<StackPanel Margin="0,0,0,10" Orientation="Horizontal">
<TextBlock FontSize="15" Text="{x:Bind root:ResourceService.GetLocalized('About/AppVersion')}" />
<TextBlock FontSize="15" Text="{x:Bind helper:InfoHelper.AppVersion.ToString()}" />
</StackPanel>

<StackPanel Orientation="Horizontal">

Expand Down
2 changes: 0 additions & 2 deletions GetStoreApp/Views/Pages/AboutPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ public sealed partial class AboutPage : Page
{
private AppNaviagtionArgs aboutNavigationArgs = AppNaviagtionArgs.None;

private string AppVersion { get; } = string.Format(ResourceService.GetLocalized("About/AppVersion"), InfoHelper.AppVersion.ToString());

//项目引用信息
private Hashtable ReferenceDict { get; } = new Hashtable()
{
Expand Down
2 changes: 1 addition & 1 deletion GetStoreAppPackage/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Identity
Name="Gaoyifei1011.GetStoreApp"
Publisher="CN=高怡飞"
Version="3.4.208.0" />
Version="3.5.209.0" />

<Properties>
<DisplayName>ms-resource:PackageDisplayName</DisplayName>
Expand Down
6 changes: 3 additions & 3 deletions GetStoreAppWebView/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
[assembly: AssemblyCompany("高怡飞")]
[assembly: AssemblyCopyright("Copyright ©2022-2023 高怡飞, All Rights Reserved.")]
[assembly: AssemblyDescription("网页浏览器")]
[assembly: AssemblyFileVersion("3.4.208.0")]
[assembly: AssemblyInformationalVersion("3.4.208.0")]
[assembly: AssemblyFileVersion("3.5.209.0")]
[assembly: AssemblyInformationalVersion("3.5.209.0")]
[assembly: AssemblyProduct("网页浏览器")]
[assembly: AssemblyTitle("网页浏览器")]
[assembly: AssemblyVersion("3.4.208.0")]
[assembly: AssemblyVersion("3.5.209.0")]

// 设置程序集对 COM 组件的访问权限
[assembly: ComVisible(false)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Platforms>x64;x86;ARM64</Platforms>
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
<WindowsSdkPackageVersion>10.0.22621.31</WindowsSdkPackageVersion>
<WindowsSdkPackageVersion>10.0.22621.33</WindowsSdkPackageVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Platform)'=='x86'">
Expand Down

0 comments on commit 5540f8c

Please sign in to comment.