Skip to content

Commit

Permalink
🔖 版本 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiHuaDou committed Jan 28, 2024
1 parent 22600c0 commit fa60052
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: .NET Build

on:
push:
branches: ["master"]

pull_request:
branches: ["master"]

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install .NET
uses: actions/setup-dotnet@v3

- name: Build Solution
run: dotnet build --configuration Release

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: App
path: ./TextCalculator/bin/Release/net6.0-windows/*
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
# �ı�������
# 文本计算器

![][Shields License] ![][Shields Release] ![][Shields Downloads] ![][Shields Commit] ![][Shields CI]

![][Shields CSharp] ![][Shields .NET] ![][Shields OS] ![][Shields IDE]

[![Gitmoji][Gitmoji]](https://gitmoji.dev)

## 特点

- 极简界面
- 纯文本界面,方便高级编辑
- 支持几乎全部数学函数
- 支持角度-弧度转换
- 支持引用数学常数:`π``pi`)、`e``tau`
- 单文件便携版

## 开发环境

1. Visual Studio 2022 (Community 即可, 64-bit)
- .NET 桌面开发
- NuGet 目标和生成任务
- MSBuild

使用 `dotnet build` 以自主构建。

[Shields CI]: https://img.shields.io/github/actions/workflow/status/kaihuadou/textcalculator/build.yml
[Shields License]: https://img.shields.io/github/license/kaihuadou/textcalculator
[Shields Release]: https://img.shields.io/github/v/release/kaihuadou/textcalculator
[Shields Downloads]: https://img.shields.io/github/downloads/kaihuadou/textcalculator/total
[Shields Commit]: https://img.shields.io/github/commit-activity/y/kaihuadou/textcalculator
[Shields CSharp]: https://img.shields.io/badge/12.0-version?logo=csharp&label=C%23&color=%23512BD4
[Shields .NET]: https://img.shields.io/badge/>=6.0-version?logo=dotnet&label=.NET&color=%23512BD4
[Shields OS]: https://img.shields.io/badge/>=Windows%207%20SP1-version?logo=windows&label=OS&color=%230078D4
[Shields IDE]: https://img.shields.io/badge/2022-version?logo=visual%20studio&label=Visual%20Studio&color=%235C2D91
[Gitmoji]: https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg
2 changes: 1 addition & 1 deletion TextCalculator/Calculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static double ParseParameter(string name)
return name switch
{
"E" => E,
"PI" => PI,
"PI" or "π" => PI,
"TAU" => Tau,
_ => double.NaN
};
Expand Down

0 comments on commit fa60052

Please sign in to comment.