anduin / Delete obsolete versions of AnduinOS
0 beğeniler
0 çatallar
1 dosyalar
Son aktivite 4 months ago
| 1 | #!/usr/bin/env python3 |
| 2 | # -*- coding: utf-8 -*- |
| 3 | |
| 4 | """ |
| 5 | 按分支(1.0、1.1、1.2、1.3…)仅保留该分支中“最高版本目录”的 .iso 文件,删除其余版本目录中的 .iso。 |
| 6 | - 仅删除 .iso,不动 .sha256 / .torrent / 目录结构。 |
| 7 | - 支持 --dry-run 仅打印计划删除项。 |
| 8 | - 版本比较使用语义数字比较:x.y.z -> (x,y,z),保证 1.3.10 > 1.3.4。 |
| 9 | """ |
anduin / Autoseed.sh
0 beğeniler
0 çatallar
3 dosyalar
Son aktivite 3 months ago
Seed all torrent files under current folder.
| 1 | #!/usr/bin/env bash |
| 2 | set -euo pipefail |
| 3 | |
| 4 | # ----------------------------------------------------------------------------- |
| 5 | # 依赖检查:aria2c、tmux 和 ufw(如果存在) |
| 6 | # ----------------------------------------------------------------------------- |
| 7 | if ! command -v aria2c &> /dev/null; then |
| 8 | echo "[INFO] Installing aria2..." |
| 9 | sudo apt-get update && sudo apt-get install -y aria2 |
| 10 | fi |
anduin / compare_manifest
0 beğeniler
0 çatallar
2 dosyalar
Son aktivite 7 months ago
Compare two manifest files and list packages present in the first but not the second.
| 1 | # 保存脚本为 compare_manifests.py,并赋可执行权限 |
| 2 | chmod +x compare_manifests.py |
| 3 | |
| 4 | # 运行脚本,依次传入 Ubuntu、Zorin、Anduin 三个 manifest 文件路径 |
| 5 | ./compare_manifests.py \ |
| 6 | "/media/anduin/Ubuntu 25.04 amd64/casper/filesystem.manifest" \ |
| 7 | "/media/anduin/Zorin OS 17.3 Core 64bit/casper/filesystem.manifest" \ |
| 8 | "/media/anduin/anduinos/casper/filesystem.manifest" |