diff --git a/.envrc b/.envrc deleted file mode 100644 index 8392d159f..000000000 --- a/.envrc +++ /dev/null @@ -1 +0,0 @@ -use flake \ No newline at end of file diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c4521779..000000000 --- a/.gitattributes +++ /dev/null @@ -1,3 +0,0 @@ -*.bat text eol=crlf -*.cmd text eol=crlf -MaiLauncher.bat text eol=crlf working-tree-encoding=GBK \ No newline at end of file diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 7e13963ec..6ba5af06b 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,15 +1,15 @@ name: Docker CI on: - push: - branches: - - master - - develop - tags: - - "v*.*.*" - - "v*" - - "*.*.*" - - "*.*.*-*" + # push: + # branches: + # - master + # - develop + # tags: + # - "v*.*.*" + # - "v*" + # - "*.*.*" + # - "*.*.*-*" workflow_dispatch: # 允许手动触发工作流 jobs: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 8a04e2d84..000000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,10 +0,0 @@ -repos: -- repo: https://github.com/astral-sh/ruff-pre-commit - # Ruff version. - rev: v0.9.10 - hooks: - # Run the linter. - - id: ruff - args: [ --fix ] - # Run the formatter. - - id: ruff-format diff --git a/depends-data/maimai.png b/depends-data/maimai.png deleted file mode 100644 index faccb856b..000000000 Binary files a/depends-data/maimai.png and /dev/null differ diff --git a/depends-data/video.png b/depends-data/video.png deleted file mode 100644 index 84176b2d9..000000000 Binary files a/depends-data/video.png and /dev/null differ diff --git a/flake.lock b/flake.lock deleted file mode 100644 index 894acd486..000000000 --- a/flake.lock +++ /dev/null @@ -1,57 +0,0 @@ -{ - "nodes": { - "nixpkgs": { - "locked": { - "lastModified": 0, - "narHash": "sha256-nJj8f78AYAxl/zqLiFGXn5Im1qjFKU8yBPKoWEeZN5M=", - "path": "/nix/store/f30jn7l0bf7a01qj029fq55i466vmnkh-source", - "type": "path" - }, - "original": { - "id": "nixpkgs", - "type": "indirect" - } - }, - "root": { - "inputs": { - "nixpkgs": "nixpkgs", - "utils": "utils" - } - }, - "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, - "utils": { - "inputs": { - "systems": "systems" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/flake.nix b/flake.nix deleted file mode 100644 index 23b82bb77..000000000 --- a/flake.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ - description = "MaiMBot Nix Dev Env"; - - inputs = { - utils.url = "github:numtide/flake-utils"; - }; - - outputs = { - self, - nixpkgs, - utils, - ... - }: - utils.lib.eachDefaultSystem (system: let - pkgs = import nixpkgs {inherit system;}; - pythonPackages = pkgs.python3Packages; - in { - devShells.default = pkgs.mkShell { - name = "python-venv"; - venvDir = "./.venv"; - buildInputs = with pythonPackages; [ - python - venvShellHook - scipy - numpy - ]; - - postVenvCreation = '' - unset SOURCE_DATE_EPOCH - pip install -r requirements.txt - ''; - - postShellHook = '' - # allow pip to install wheels - unset SOURCE_DATE_EPOCH - ''; - }; - }); -} diff --git a/identifier.sqlite b/identifier.sqlite deleted file mode 100644 index e69de29bb..000000000 diff --git a/mongodb_to_sqlite.bat b/mongodb_to_sqlite.bat deleted file mode 100644 index f960e508a..000000000 --- a/mongodb_to_sqlite.bat +++ /dev/null @@ -1,72 +0,0 @@ -@echo off -CHCP 65001 > nul -setlocal enabledelayedexpansion - -echo 你需要选择启动方式,输入字母来选择: -echo V = 不知道什么意思就输入 V -echo C = 输入 C 使用 Conda 环境 -echo. -choice /C CV /N /M "不知道什么意思就输入 V (C/V)?" /T 10 /D V - -set "ENV_TYPE=" -if %ERRORLEVEL% == 1 set "ENV_TYPE=CONDA" -if %ERRORLEVEL% == 2 set "ENV_TYPE=VENV" - -if "%ENV_TYPE%" == "CONDA" goto activate_conda -if "%ENV_TYPE%" == "VENV" goto activate_venv - -REM 如果 choice 超时或返回意外值,默认使用 venv -echo WARN: Invalid selection or timeout from choice. Defaulting to VENV. -set "ENV_TYPE=VENV" -goto activate_venv - -:activate_conda - set /p CONDA_ENV_NAME="请输入要使用的 Conda 环境名称: " - if not defined CONDA_ENV_NAME ( - echo 错误: 未输入 Conda 环境名称. - pause - exit /b 1 - ) - echo 选择: Conda '!CONDA_ENV_NAME!' - REM 激活Conda环境 - call conda activate !CONDA_ENV_NAME! - if !ERRORLEVEL! neq 0 ( - echo 错误: Conda环境 '!CONDA_ENV_NAME!' 激活失败. 请确保Conda已安装并正确配置, 且 '!CONDA_ENV_NAME!' 环境存在. - pause - exit /b 1 - ) - goto env_activated - -:activate_venv - echo Selected: venv (default or selected) - REM 查找venv虚拟环境 - set "venv_path=%~dp0venv\Scripts\activate.bat" - if not exist "%venv_path%" ( - echo Error: venv not found. Ensure the venv directory exists alongside the script. - pause - exit /b 1 - ) - REM 激活虚拟环境 - call "%venv_path%" - if %ERRORLEVEL% neq 0 ( - echo Error: Failed to activate venv virtual environment. - pause - exit /b 1 - ) - goto env_activated - -:env_activated -echo Environment activated successfully! - -REM --- 后续脚本执行 --- - -REM 运行预处理脚本 -python "%~dp0scripts\mongodb_to_sqlite.py" -if %ERRORLEVEL% neq 0 ( - echo Error: mongodb_to_sqlite.py execution failed. - pause - exit /b 1 -) - -echo All processing steps completed! -pause \ No newline at end of file