Skip to content

Commit

Permalink
chore: update tooth.json & changelog.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Pd233 committed Mar 5, 2024
1 parent 20af15a commit e02dc5d
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 20 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.1] - 2024-03-05

### Added

- Introduce support for .NET 8.0.
- Provide a built-in default proxy setter for users in Mainland China.
- Introduce a plugin configuration system.
- Add an auto-update feature.

### Changed

- Refactor the display logic of the info bar based on queue information.

### Fixed

- Fix related bugs.

## [0.4.0] - 2024-02-04

### Added
Expand Down
8 changes: 8 additions & 0 deletions src/AutoUpdate/AutoUpdate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
<InvariantGlobalization>true</InvariantGlobalization>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>none</DebugType>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
Expand Down
5 changes: 0 additions & 5 deletions src/AutoUpdate/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ void Lip_Handler()

logger.LogInformation("LipUI updated");

logger.LogInformation("Clean up");
var autoupdateDir = Path.Combine(lipuiWorkingDir, ".autoupdate");
if (Directory.Exists(autoupdateDir))
Directory.Delete(autoupdateDir);

Process.Start(Path.Combine(lipuiWorkingDir, "LipUI.exe"));
};

Expand Down
3 changes: 3 additions & 0 deletions src/LipUI/Models/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ private static void Initialize()
InitializeWorkingDir();
InitializeConfig();
InternalServices.WindowClosed += SaveConfig;
var autoupdateDir = Path.Combine(WorkingDirectory, ".autoupdate");
if (Directory.Exists(autoupdateDir))
Directory.Delete(autoupdateDir);
}

[MemberNotNull(nameof(WorkingDirectory))]
Expand Down
3 changes: 0 additions & 3 deletions src/LipUI/Pages/Settings/SettingsAndAboutView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ private void UpdateButton_Loading(FrameworkElement sender, object args)

private async void UpdateButton_Click(object sender, RoutedEventArgs e)
{
if (RuntimeInformation.ProcessArchitecture is not Architecture.X64)
throw new NotImplementedException($"{RuntimeInformation.ProcessArchitecture} is not supported yet.");

var (success, path) = await Main.TryGetLipConsolePathAsync(XamlRoot);

if (success is false)
Expand Down
49 changes: 37 additions & 12 deletions tooth.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,42 @@
"lipui"
]
},
"commands": {
"post-install": [
".autoupdate/AutoUpdate.exe --type lip_postinstall"
]
},
"files": {
"place": [
{
"src": "*",
"dest": ".autoupdate"
"platforms": [
{
"goos": "windows",
"goarch": "amd64",
"asset_url": "https://github.com/lippkg/LipUI/releases/download/v0.4.1/LipUI-win-x64.zip",
"commands": {
"post-install": [
".autoupdate/AutoUpdate.exe --type lip_postinstall"
]
},
"files": {
"place": [
{
"src": "*",
"dest": ".autoupdate"
}
]
}
]
}
},
{
"goos": "windows",
"goarch": "arm64",
"asset_url": "https://github.com/lippkg/LipUI/releases/download/v0.4.1/LipUI-win-arm64.zip",
"commands": {
"post-install": [
".autoupdate/AutoUpdate.exe --type lip_postinstall"
]
},
"files": {
"place": [
{
"src": "*",
"dest": ".autoupdate"
}
]
}
}
]
}

0 comments on commit e02dc5d

Please sign in to comment.