Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
48e36fb
Update README.md
aspnmy Aug 24, 2025
65c707e
更新至v4.3版本
aspnmy2024 Aug 24, 2025
aab4e26
Merge branch 'master' of https://github.com/aspnmy/ColDataRefresh
aspnmy2024 Aug 24, 2025
d8a2444
Update README.md
aspnmy Aug 24, 2025
c62fcac
update: git-commit-msg
aspnmy2024 Aug 24, 2025
dc3eb71
Merge branch 'master' of https://github.com/aspnmy/ColDataRefresh
aspnmy2024 Aug 24, 2025
4183c8d
添加了多线程处理和内存优化功能。主要改进包括:
aspnmy2024 Aug 24, 2025
379522e
修复已知的错误
aspnmy2024 Aug 24, 2025
4947068
Update README.md
aspnmy Aug 25, 2025
50555b1
更新依赖组件
aspnmy2024 Aug 25, 2025
032ef7c
Merge branch 'master' of https://github.com/aspnmy/ColDataRefresh
aspnmy2024 Aug 25, 2025
41165f2
更新依赖关系
aspnmy2024 Aug 25, 2025
29ba673
feat: 增强日志管理和错误处理功能
aspnmy2024 Oct 22, 2025
6e3124e
fix(构建脚本): 改进pyinstaller调用方式并添加构建测试
aspnmy2024 Oct 22, 2025
bb2beb2
refactor: 重构日志路径配置并优化基准测试模块
aspnmy2024 Oct 22, 2025
87c855b
更新到v4.5版本:添加版本管理功能,实现动态版本号获取
aspnmy2024 Oct 22, 2025
bebe4e3
修复交互界面版本号显示,使用动态版本号
aspnmy2024 Oct 22, 2025
c407b4f
添加getWebSite函数,实现从GitHub获取QQ群和URL信息
aspnmy2024 Oct 22, 2025
f4a91a1
优化getWebSite函数:实现远程文件更新到本地并优先读取本地文件
aspnmy2024 Oct 22, 2025
a1a4f73
添加新版本检查功能,自动检测并提示GitHub上的最新版本
aspnmy2024 Oct 22, 2025
c2a8bff
优化requests模块依赖:添加异常处理,确保程序在模块缺失时仍能运行
aspnmy2024 Oct 22, 2025
7dfccb4
添加返回菜单功能,允许用户操作完成后返回交互界面或退出程序
aspnmy2024 Oct 22, 2025
0915654
增强操作确认机制:全盘刷新模式添加二次确认,TRIM模式添加一次确认
aspnmy2024 Oct 22, 2025
94b6eef
更新requirements.txt文件,添加依赖说明和版本要求
aspnmy2024 Oct 22, 2025
71c84c7
修正 elevate 依赖版本要求,从 1.2.0 降至 0.1.3 以匹配实际可用版本
aspnmy2024 Oct 22, 2025
2bbe035
优化确认流程:用户取消操作后返回到主菜单而不是退出程序
aspnmy2024 Oct 22, 2025
d442553
feat: 添加7-zip组件支持并优化冷数据处理工具
aspnmy2024 Oct 22, 2025
1379fda
refactor(bin): 移除7-zip相关文件并更新构建脚本
aspnmy2024 Oct 22, 2025
d13d3be
fix(build): 改进版本号读取逻辑并添加测试
aspnmy2024 Oct 22, 2025
2e7c273
feat: 更新版本至4.3.3并增强Windows 10+的TRIM优化功能
aspnmy2024 Oct 22, 2025
ab6f9c7
chore: 更新默认版本号至4.5.0并优化版本文件读取逻辑
aspnmy2024 Oct 22, 2025
62f48b2
fix: 修复版本号读取逻辑并添加测试
aspnmy2024 Oct 22, 2025
7091156
111
aspnmy2024 Oct 23, 2025
502d196
feat: 添加全盘数据覆写工具脚本
aspnmy2024 Oct 23, 2025
6d56396
feat: 添加磁盘写入测试功能和持续写入模式
Nov 24, 2025
29e855a
修复full_refresh_file函数数据写入问题,优化构建脚本,清理项目文件
Nov 27, 2025
d373f32
feat(全盘刷新): 实现完整的全盘刷新业务流程
Nov 27, 2025
165ca68
chore: 在.gitignore中添加build/目录
Nov 27, 2025
9267ca3
chore: 更新.gitignore文件,添加.trae/目录
Nov 27, 2025
e04463c
feat(FullRefreshManager): 添加盘符判断和格式化功能
Nov 27, 2025
d09a54f
feat: 升级版本至4.7.1并优化SSD冷数据维护功能
Nov 27, 2025
18c4a18
refactor: 迁移项目从Python到Rust并更新文档
Nov 28, 2025
d55af4c
Update README.md
aspnmy Dec 19, 2025
3f6125a
Update README.md
aspnmy Jan 2, 2026
9657dca
Update README.md
aspnmy Jan 2, 2026
8e76dfe
v5.0.0: Rust 重写全盘刷新完整流程
aspnmy2024 Jun 15, 2026
4315181
ci: add GitHub Actions release workflow
aspnmy2024 Jun 15, 2026
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
154 changes: 154 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
name: Release

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
build:
name: Build-${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
bin: coldatafresh
archive: tar.gz
cross: false
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
bin: coldatafresh
archive: tar.gz
cross: true
- os: ubuntu-latest
target: i686-unknown-linux-musl
bin: coldatafresh
archive: tar.gz
cross: true
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
bin: coldatafresh
archive: tar.gz
cross: true
- os: ubuntu-latest
target: aarch64-unknown-linux-musl
bin: coldatafresh
archive: tar.gz
cross: true
- os: ubuntu-latest
target: armv7-unknown-linux-gnueabihf
bin: coldatafresh
archive: tar.gz
cross: true
- os: ubuntu-latest
target: arm-unknown-linux-gnueabihf
bin: coldatafresh
archive: tar.gz
cross: true
- os: macos-latest
target: x86_64-apple-darwin
bin: coldatafresh
archive: tar.gz
cross: false
- os: macos-latest
target: aarch64-apple-darwin
bin: coldatafresh
archive: tar.gz
cross: false
- os: windows-latest
target: x86_64-pc-windows-msvc
bin: coldatafresh.exe
archive: zip
cross: false
- os: windows-latest
target: i686-pc-windows-msvc
bin: coldatafresh.exe
archive: zip
cross: false
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}

- name: Setup cross (cross-compilation)
if: matrix.cross == true
shell: bash
run: |
curl -fsSL https://github.com/cross-rs/cross/releases/latest/download/cross-x86_64-unknown-linux-musl.tar.gz | tar -xz -C /tmp
mv /tmp/cross /usr/local/bin/cross
cross --version

- name: Build (native)
if: matrix.cross == false
shell: bash
run: cargo build --release --target ${{ matrix.target }}

- name: Build (cross)
if: matrix.cross == true
shell: bash
run: cross build --release --target ${{ matrix.target }}

- name: Prepare artifact directory
shell: bash
run: |
mkdir -p dist
cp "target/${{ matrix.target }}/release/${{ matrix.bin }}" dist/
if [ -f README_EN.md ]; then cp README_EN.md dist/; fi
if [ -f LICENSE ]; then cp LICENSE dist/; fi

- name: Create tar.gz archive
if: matrix.archive == 'tar.gz'
shell: bash
run: |
cd dist
tar -czf "../coldatafresh-${{ github.ref_name }}-${{ matrix.target }}.tar.gz" .
cd ..
ls -la "coldatafresh-${{ github.ref_name }}-${{ matrix.target }}.tar.gz"

- name: Create zip archive
if: matrix.archive == 'zip'
shell: pwsh
run: |
Compress-Archive -Path "dist/*" -DestinationPath "coldatafresh-${{ github.ref_name }}-${{ matrix.target }}.zip"
Get-Item "coldatafresh-${{ github.ref_name }}-${{ matrix.target }}.zip"

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: coldatafresh-${{ github.ref_name }}-${{ matrix.target }}
path: coldatafresh-${{ github.ref_name }}-${{ matrix.target }}.*
compression-level: 0
retention-days: 7

release:
name: Create GitHub Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Download all build artifacts
uses: actions/download-artifact@v4
with:
path: artifacts

- name: Display artifacts
run: ls -R artifacts/

- name: Create Release and upload assets
uses: softprops/action-gh-release@v2
with:
files: 'artifacts/**/*'
generate_release_notes: true
prerelease: false
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
226 changes: 226 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# Virtual environments
venv/
env/
ENV/
env.bak/
venv.bak/

# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# OS
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
.codebuddy
# Logs
*.log
logs/

# Database
*.db
*.sqlite
*.sqlite3

# Environment variables
.env
.venv

# PyInstaller
*.spec

# Jupyter Notebook
.ipynb_checkpoints

# PyCharm
.idea/

# VS Code
.vscode/

# pytest
.pytest_cache/
.coverage
htmlcov/

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
bindd/
bin/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
.idea/

# VS Code
.vscode/
*.code-workspace
# Windows
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

build/
bin/
dist/
test_data/
# Python
*.egg-info/
*.egg/
*.pyc

*.pyo
*.pyd
*.spec
# End of https://www.toptal.com/developers/gitignore/api/python
.venv/
build/

.trae/
coldatafresh/

target/
# Runtime data
refresh_log.json
error.log
Loading