Skip to content

Commit

Permalink
1.1.4 更新
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceTimee committed Dec 21, 2024
1 parent bd73327 commit 5af134c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
DispatcherUnhandledException="App_DispatcherUnhandledException">
Startup="App_OnStartup" DispatcherUnhandledException="App_DispatcherUnhandledException">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
Expand Down
2 changes: 1 addition & 1 deletion App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Sheas_Cealer;

public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
private void App_OnStartup(object sender, StartupEventArgs e)
{
#region Upgrade Settings
if (Settings.Default.IsUpgradeRequired)
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
## 自我介绍
**Sheas Cealer**: 一只基于 **WPF(.Net8)** 的 SNI 伪造工具

* 适用平台: Windows x64
* 适用平台: Windows

## 词汇解释
**[Sheas Cealer Dictionary](https://github.com/SpaceTimee/Sheas-Cealer/wiki/Sheas-Cealer-Dictionary)**
Expand All @@ -34,6 +34,8 @@
1. Setup 安装器 (首选): 下载 Sheas Cealer Setup.exe 并运行 -> 按照提示设置即可安装
2. Zip 压缩包 (免安装): 下载 Sheas Cealer Zip.zip 并解压 -> 完成后即可直接使用

> Scd 版本: Scd 版本内置 .Net 运行时,可在缺乏 .Net 运行时的环境下运行,但代价是更大的文件体积以及更差跨平台能力,如果没有特殊原因,不建议使用 Scd 版本
## 食用文档
**[Sheas Cealer Documentation](https://github.com/SpaceTimee/Sheas-Cealer/wiki/Sheas-Cealer-Documentation)**

Expand Down
4 changes: 3 additions & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
## About
**Sheas Cealer**: A SNI concealing tool based on **WPF(.Net8)**

* Applicable platform: Windows x64
* Applicable platform: Windows

## Vocabulary
**[Sheas Cealer Dictionary](https://github.com/SpaceTimee/Sheas-Cealer/wiki/Sheas-Cealer-Dictionary)**
Expand All @@ -30,6 +30,8 @@
1. Github (preferred): [https://github.com/SpaceTimee/Sheas-Cealer/releases](https://github.com/SpaceTimee/Sheas-Cealer/releases)
2. Lanzou (password 3wnj) (recommended in mainland China): [https://spacetime.lanzouu.com/b017hp0lc](https://spacetime.lanzouu.com/b017hp0lc)

> Scd version: The Scd version has a built-in .Net runtime and can run in an environment without a .Net runtime, but the cost is a larger file size and worse cross-platform capabilities. If there is no special reason, it is not recommended to use the Scd version
## Installation
1. Setup Installer (preferred): Download Sheas Cealer Setup.exe and run -> Then follow the prompts to install
2. Zip Package (installation-free): Download Sheas Cealer Zip.zip and unzip -> Then you can use it directly
Expand Down
6 changes: 4 additions & 2 deletions Wins/AboutWin.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>

<Button Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Margin="5" d:Foreground="{x:Static consts:AboutConst.AccentBlueColor}"
<Button Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Margin="5"
d:Foreground="{Binding Source={x:Static consts:AboutConst.AccentBlueColor}, Converter={x:Static convs:AboutConv.AboutAccentButtonForegroundConv}}"
Foreground="{Binding AccentForegroundColor, Converter={x:Static convs:AboutConv.AboutAccentButtonForegroundConv}}"
Content="{x:Static consts:AboutConst.DeveloperButtonContent}"
ToolTip="{x:Static consts:AboutConst.DeveloperButtonUrl}"
Click="AboutButton_Click" />
<Button x:Name="VersionButton"
Grid.Row="1" Grid.Column="0" Margin="5" d:Foreground="{x:Static consts:AboutConst.AccentBlueColor}" d:Content="# # #: #.#.#"
Grid.Row="1" Grid.Column="0" Margin="5" d:Content="# # #: #.#.#"
d:Foreground="{Binding Source={x:Static consts:AboutConst.AccentBlueColor}, Converter={x:Static convs:AboutConv.AboutAccentButtonForegroundConv}}"
Foreground="{Binding AccentForegroundColor, Converter={x:Static convs:AboutConv.AboutAccentButtonForegroundConv}}"
ToolTip="{x:Static consts:AboutConst.VersionButtonUrl}"
Click="AboutButton_Click">
Expand Down
4 changes: 2 additions & 2 deletions Wins/MainWin.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ await Task.Run(async () =>
await NginxCleaner.Clean();

if (Array.Exists(Environment.GetCommandLineArgs(), arg => arg.Equals("-s", StringComparison.OrdinalIgnoreCase)))
LaunchButton_Click(null!, null!);
LaunchButton_Click(null, null!);

UpdateUpstreamHostButton_Click(null!, null!);
UpdateUpstreamHostButton_Click(null, null!);
});
}
private async void MainWin_Closing(object sender, CancelEventArgs e)
Expand Down

0 comments on commit 5af134c

Please sign in to comment.