Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

U | PreviewUpdate #19

Merged
merged 31 commits into from
Dec 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
a4523c2
D | CI unsupport MacOS
FTS427 Nov 18, 2023
6c9b9b9
C | change some in CI and src named pattern
FTS427 Nov 18, 2023
8fe0d1a
Merge pull request #8 from FTS427/Preview
FTS427 Nov 18, 2023
62c5c71
C | Change some tui
FTS427 Dec 16, 2023
527e3c5
Merge pull request #10 from FTS427/Preview
FTS427 Dec 17, 2023
9e440fe
- v0.0.1.3-3
FTS427 Dec 23, 2023
0a04cd5
U | Update the README
FTS427 Dec 23, 2023
2bd1f80
Merge pull request #11 from FTS427/Preview
FTS427 Dec 23, 2023
2053cdb
D | Remove "bin/" from gitignore
FTS427 Dec 23, 2023
f7ea6ea
C | change some in README
FTS427 Dec 23, 2023
3c2b2c5
C | small change
FTS427 Dec 23, 2023
89e9c2a
Merge pull request #13 from FTS427/Preview
FTS427 Dec 23, 2023
41aa54d
D | Remove "other" directory
FTS427 Dec 23, 2023
20cd6af
D | Remove Update.md
FTS427 Dec 23, 2023
791f310
D | Remove .vscode directory
FTS427 Dec 23, 2023
77ba7f2
C | fix something wrong in GitAction
FTS427 Dec 23, 2023
8d5266b
Merge pull request #14 from FTS427/Preview
FTS427 Dec 23, 2023
3d6f8a0
U | 0.0.1.3-3 Update
FTS427 Dec 24, 2023
a000129
U | Update
FTS427 Dec 24, 2023
c315952
Merge branch 'Preview' of https://github.com/FTS427/MathCentralTool i…
FTS427 Dec 24, 2023
1117ddb
Merge pull request #15 from FTS427/Preview
FTS427 Dec 24, 2023
6e04fa7
U | Use CMake instead of Make
FTS427 Dec 24, 2023
dc710ba
U | Change the dir rules
FTS427 Dec 24, 2023
8efeaf0
U | Update github files
FTS427 Dec 24, 2023
244d637
U | Update Readme
FTS427 Dec 24, 2023
308055f
D | Remove "bin" dir
FTS427 Dec 24, 2023
dc8d3ed
Merge pull request #17 from FTS427/Preview
FTS427 Dec 24, 2023
ff6a41b
U | Update GitAction
FTS427 Dec 24, 2023
29730b6
Merge pull request #18 from FTS427/Preview
FTS427 Dec 24, 2023
cbc6464
U | Project basic update
FTS427 Dec 30, 2023
d9b2cb2
R | Rename files
FTS427 Dec 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 23 additions & 34 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: MCT-PreviewBuild
name: Preview-Build

on:
push:
Expand All @@ -7,42 +7,31 @@ on:
branches: [ "Preview" ]

jobs:
linux-pre:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build-linux-pre
run: make
working-directory: src/Preview
- name: Build Preview MCT-Linux
- name: CMake build
run: |
cd ${{ github.workspace }}
ls
mkdir build
cd build
cmake --version
cmake ../
echo "Done!"
shell: sh
- name: Make build
run: |
cd ${{ github.workspace }}
ls
cd build
make
echo "Done!"
shell: sh
- name: Upload exec file
uses: actions/[email protected]
with:
name: MCT-Linux-Pre
path: src/Preview/MCT-Linux-Pre

macos-pre:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: build-macos-pre
run: make
working-directory: src/Preview
- name: Build Preview MCT-Macos
uses: actions/[email protected]
with:
name: MCT-Macos-Pre
path: src/Preview/MCT-Linux-Pre

windows-pre:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: build-windows-pre
run: g++ MCT-Windows-Pre.cpp -o MCT-Windows-Pre.exe
working-directory: src/Preview
- name: Build Preview MCT-Windows
uses: actions/[email protected]
with:
name: MCT-Windows-Pre.exe
path: src/Preview/MCT-Windows-Pre
name: MCT-Pre
path: build/MCT

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.vscode/
.vscode
build

18 changes: 18 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"configurations": [
{
"name": "linux-gcc-x64",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "/usr/bin/gcc",
"cStandard": "${default}",
"cppStandard": "${default}",
"intelliSenseMode": "linux-gcc-x64",
"compilerArgs": [
""
]
}
],
"version": 4
}
24 changes: 24 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "C/C++ Runner: Debug Session",
"type": "cppdbg",
"request": "launch",
"args": [],
"stopAtEntry": false,
"externalConsole": false,
"cwd": "/home/fts427/Git/MathCentralTool/src",
"program": "/home/fts427/Git/MathCentralTool/src/build/Debug/outDebug",
"MIMode": "gdb",
"miDebuggerPath": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
60 changes: 57 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,59 @@
{
"githubPullRequests.ignoredPullRequestBranches": [
"main"
]
"C_Cpp_Runner.msvcBatchPath": "",
"C_Cpp_Runner.cCompilerPath": "gcc",
"C_Cpp_Runner.cppCompilerPath": "g++",
"C_Cpp_Runner.debuggerPath": "gdb",
"C_Cpp_Runner.cStandard": "",
"C_Cpp_Runner.cppStandard": "",
"C_Cpp_Runner.useMsvc": false,
"C_Cpp_Runner.warnings": [
"-Wall",
"-Wextra",
"-Wpedantic",
"-Wshadow",
"-Wformat=2",
"-Wcast-align",
"-Wconversion",
"-Wsign-conversion",
"-Wnull-dereference"
],
"C_Cpp_Runner.msvcWarnings": [
"/W4",
"/permissive-",
"/w14242",
"/w14287",
"/w14296",
"/w14311",
"/w14826",
"/w44062",
"/w44242",
"/w14905",
"/w14906",
"/w14263",
"/w44265",
"/w14928"
],
"C_Cpp_Runner.enableWarnings": true,
"C_Cpp_Runner.warningsAsError": false,
"C_Cpp_Runner.compilerArgs": [],
"C_Cpp_Runner.linkerArgs": [],
"C_Cpp_Runner.includePaths": [],
"C_Cpp_Runner.includeSearch": [
"*",
"**/*"
],
"C_Cpp_Runner.excludeSearch": [
"**/build",
"**/build/**",
"**/.*",
"**/.*/**",
"**/.vscode",
"**/.vscode/**"
],
"C_Cpp_Runner.useAddressSanitizer": false,
"C_Cpp_Runner.useUndefinedSanitizer": false,
"C_Cpp_Runner.useLeakSanitizer": false,
"C_Cpp_Runner.showCompilationTime": false,
"C_Cpp_Runner.useLinkTimeOptimization": false,
"C_Cpp_Runner.msvcSecureNoWarnings": false
}
29 changes: 29 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc 生成活动文件",
"command": "/usr/bin/gcc",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}",
""
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "调试器生成的任务。"
}
],
"version": "2.0.0"
}
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.9)

PROJECT(MCT)
INCLUDE_DIRECTORIES(
./src/include
)
AUX_SOURCE_DIRECTORY(src ./src)
ADD_EXECUTABLE(${PROJECT_NAME} ./src/main.cpp)
45 changes: 17 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<div align="center">
<img width="175" src="/other/MCT.png"></img>
<img width="175" src="/assets/MCT.png"></img>
</div>

<h1 align="center">MathCentralTool</h1>

<div align="center">

[![Download](https://img.shields.io/github/downloads/QuantumLS-Studio/MathCentralTool/total?logo=github&label=Download&style=for-the-badge&color=44cc11)](https://github.com/QuantumLS-Studio/MathCentralTool/releases)
[![Stars](https://img.shields.io/github/stars/QuantumLS-Studio/MathCentralTool?logo=github&label=Stars&style=for-the-badge)](https://github.com/QuantumLS-Studio/MathCentralTool/stargazers)
[![License](https://img.shields.io/github/license/QuantumLS-Studio/MathCentralTool?logo=github&label=License&style=for-the-badge&color=ff7a35)](https://github.com/QuantumLS-Studio/MathCentralTool/blob/master/LICENSE)
[![Issues](https://img.shields.io/github/issues/QuantumLS-Studio/MathCentralTool?logo=github&lable=issues&style=for-the-badge "Issues")](https://github.com/QuantumLS-Studio/MathCentralTool/issues)
Expand All @@ -17,42 +16,27 @@
[![Stable](https://img.shields.io/github/actions/workflow/status/QuantumLS-Studio/MathCentralTool/stable-build.yml?label=Stable&style=for-the-badge "Stable")](https://github.com/QuantumLS-Studio/MathCentralTool/actions/workflows/stable-build.yml)
[![Preview](https://img.shields.io/github/actions/workflow/status/QuantumLS-Studio/MathCentralTool/preview-build.yml?label=Preview&style=for-the-badge "Preview")](https://github.com/QuantumLS-Studio/MathCentralTool/actions/workflows/preview-build.yml)

![EMAIL](https://img.shields.io/badge/EMAIL-fts427%40outlook.com-4169E1?style=for-the-badge&logoColor=white)

</div>

[🀄简体中文](/README_zh.md) | 🔠[English](/README.md)

## 📃Introduce
A terminal-based math gadget that doesn't seem to be of any use.
## 📃 Introduce

This program is free and open source, this source code can be used at will. We allow everyone to use the source code for enrichment, compilation, etc. But we don't take any responsibility for any problems!
A terminal-based math tool that runs on linux.

⚠note: This program is in the development stage and cannot be used for scientific precision calculations! If anything goes wrong, do so at your own risk!
This program is free and open source. We allow everyone to use the source code for enrichment, compilation, etc. But we don't take any responsibility for any problems!

## ❔How to use
⚠worn: This program is in developing and cannot be used for scientific precision calculations! If anything goes wrong, do so at your own risk!

Look for the version in GitAction that matches your device
## ❔ How to use

Or clone and compile by yourself, but the source code of Linux and Windows is not the same, this needs to be noted!
Look in the GitAction and choose you need.

📦Linux compilation environment requirements: make, gcc
Or clone and compile by yourself.

### 🐧Linux
📦 Compilation environment requirements: cmake, make, gcc

Stable

Please open the terminal under src/stable and run "make" to compile.

Preview

Please open the terminal under src/stable and run "make" to compile.

### 💠Windows

Compile the cpp file yourself using the compiler.

## 🧑‍💻Contributing people
## 🧑‍💻 Contribution and thanks

[FTS427](https://github.com/FTS427) responsible for the entire project

Expand All @@ -62,6 +46,11 @@ Compile the cpp file yourself using the compiler.

Thank every developer very much for their help!👍

## 👀Othres things
## 👀 Other

Change log [change](/change_log.md)

This project also powered by [ECCPH](https://github.com/QuantumLS-Studio/ECCPH)

Old versions[MathCentralTools](https://github.com/FTS427/MathCentralTools)(Archived🗃️)

See for older versions[MathCentralTools](https://github.com/FTS427/MathCentralTools)(Archived🗃️)
32 changes: 9 additions & 23 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

<div align="center">

[![下载](https://img.shields.io/github/downloads/QuantumLS-Studio/MathCentralTool/total?logo=github&label=下载&style=for-the-badge&color=44cc11)](https://github.com/QuantumLS-Studio/MathCentralTool/releases)
[![星标](https://img.shields.io/github/stars/QuantumLS-Studio/MathCentralTool?logo=github&label=星标&style=for-the-badge)](https://github.com/QuantumLS-Studio/MathCentralTool/stargazers)
[![协议](https://img.shields.io/github/license/QuantumLS-Studio/MathCentralTool?logo=github&label=协议&style=for-the-badge&color=ff7a35)](https://github.com/QuantumLS-Studio/MathCentralTool/blob/master/LICENSE)
[![议题](https://img.shields.io/github/issues/QuantumLS-Studio/MathCentralTool?logo=github&lable=议题&style=for-the-badge "议题")](https://github.com/QuantumLS-Studio/MathCentralTool/issues)
Expand All @@ -17,17 +16,13 @@
[![Stable](https://img.shields.io/github/actions/workflow/status/QuantumLS-Studio/MathCentralTool/stable-build.yml?label=Stable&style=for-the-badge "Stable")](https://github.com/QuantumLS-Studio/MathCentralTool/actions/workflows/stable-build.yml)
[![Preview](https://img.shields.io/github/actions/workflow/status/QuantumLS-Studio/MathCentralTool/preview-build.yml?label=Preview&style=for-the-badge "Preview")](https://github.com/QuantumLS-Studio/MathCentralTool/actions/workflows/preview-build.yml)

![C++](https://img.shields.io/badge/c++-4B0082?style=for-the-badge&logoColor=white)

![邮箱](https://img.shields.io/badge/邮箱-fts427%40outlook.com-4169E1?style=for-the-badge&logoColor=white)

</div>

[🀄简体中文](/README_zh.md) | [🔠English](/README.md)

## 📃介绍

一个似乎没有什么用的基于终端的数学小工具
一个基于终端的数学小工具

本程序是免费开源的,此源代码可以随意使用。允许任何人使用源代码进行扩充,编译等操作。出现任何问题,本人不承担任何责任!

Expand All @@ -37,25 +32,11 @@

在GitAction中寻找符合自己设备的版本

或自行拉取编译,但Linux和Windows的源代码不一样,注意!

📦编译环境需求(Linux):make,gcc

### 🐧Linux

Stable

请在src/Stable下打开终端,执行“make“即可编译
或自行拉取编译

Preview
📦编译环境需求:cmake, make,gcc

请在src/Preview下打开终端,执行“make“即可编译

### 💠Windows

自行使用编译器编译cpp文件

## 🧑‍💻贡献人员
## 🧑‍💻感谢

[FTS427](https://github.com/FTS427)负责了整个项目

Expand All @@ -67,4 +48,9 @@ Preview

## 👀其他

之前的更改?在[这里](/change_log.md)

本项目使用了头文件[ECPPH](https://github.com/QuantumLS-Studio/ECPPH)

先前的版本参见[MathCentralTools](https://github.com/FTS427/MathCentralTools)(已归档🗃️)

File renamed without changes
6 changes: 5 additions & 1 deletion Update.md → change_log.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
- UI:部分更改
- 整体:部分已知Bug修复,代码简化,引用了“ECPPH”头文件辅助开发

##Preview
## Preview

> 注:原有的“Insider”于2023年7月8日更名为“Preview”

Expand Down Expand Up @@ -71,3 +71,7 @@
- 功能:未更新
- UI:大改界面
- 整体:引用了“ECPPH”头文件,整体代码逻辑修改,更便于维护
- v0.0.1.3-3
- 功能:移除对Windows、Mac平台的支持
- UI:部分微调
- 整体:简化代码逻辑,便于维护
5 changes: 5 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cmake -S . -B ./build &&
cd ./build &&
make &&
echo "Done!" &&
echo "Exec -> build/MCT"
Binary file removed src/Preview/linux/MCT-Linux-Pre
Binary file not shown.
Loading
Loading