mirror of
https://github.com/wcbing/wcbing-apt-repo.git
synced 2025-12-29 02:28:30 +08:00
Compare commits
No commits in common. "3d6a1905cc5ee7e8e457e65ca6e88e8eb62271da" and "ce763130ca3544d453f1bc7ed6556bc9c36c6d51" have entirely different histories.
3d6a1905cc
...
ce763130ca
@ -60,6 +60,13 @@
|
||||
"arm64": "LocalSend-{version}-linux-arm-64.deb"
|
||||
}
|
||||
},
|
||||
"motrix": {
|
||||
"repo": "agalwood/Motrix",
|
||||
"file_list": {
|
||||
"amd64": "Motrix_{version}_amd64.deb",
|
||||
"arm64": "Motrix_{version}_arm64.deb"
|
||||
}
|
||||
},
|
||||
"peazip": {
|
||||
"repo": "peazip/PeaZip",
|
||||
"file_list": {
|
||||
|
||||
@ -111,8 +111,10 @@ def process_repo(r: dict):
|
||||
获取仓库中不同架构子仓库的内容,最后调用 get_latest 去重并保存。
|
||||
"""
|
||||
try:
|
||||
deb_packages = b""
|
||||
for arch, path in r["path"].items():
|
||||
get_latest(get_remote_packages(r["repo"], path))
|
||||
deb_packages += get_remote_packages(r["repo"], path)
|
||||
get_latest(deb_packages)
|
||||
except Exception as e:
|
||||
logging.error(f"Error processing repo {r.get('name', 'unknown')}: {e}")
|
||||
|
||||
@ -150,10 +152,17 @@ if __name__ == "__main__":
|
||||
executor.map(process_repo, repo_list.values())
|
||||
|
||||
# 分别输出到不同文件
|
||||
for arch in ["amd64", "arm64"]:
|
||||
os.makedirs(f"deb/dists/wcbing/main/binary-{arch}/", exist_ok=True)
|
||||
with open(f"deb/dists/wcbing/main/binary-{arch}/Packages", "+wb") as f:
|
||||
for i in package_info[arch].values():
|
||||
os.makedirs("deb/amd64/", exist_ok=True)
|
||||
os.makedirs("deb/arm64/", exist_ok=True)
|
||||
|
||||
with open("deb/amd64/Packages", "+wb") as f:
|
||||
for i in package_info["amd64"].values():
|
||||
f.write(i)
|
||||
for i in package_info["all"].values():
|
||||
f.write(i)
|
||||
|
||||
with open("deb/arm64/Packages", "+wb") as f:
|
||||
for i in package_info["arm64"].values():
|
||||
f.write(i)
|
||||
for i in package_info["all"].values():
|
||||
f.write(i)
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
# Packages
|
||||
|
||||
收集存档或疑似停止更新等长时间不更新但仍有下载地址的应用。
|
||||
|
||||
这里收集的应用不再检查更新,以减轻请求压力、加快仓库构建速度。
|
||||
|
||||
> 注:为保证包的信息可以被正确分割,每个文件末尾**请务必保留两个以上空行**。
|
||||
@ -1,46 +0,0 @@
|
||||
Package: flameshot
|
||||
Architecture: amd64
|
||||
Version: 12.1.0-1
|
||||
Priority: optional
|
||||
Section: graphics
|
||||
Maintainer: Boyuan Yang <byang@debian.org>
|
||||
Installed-Size: 3239
|
||||
Depends: hicolor-icon-theme, libqt5svg5 (>= 5.9.0~), libc6 (>= 2.14), libgcc-s1 (>= 3.0), libqt5core5a (>= 5.15.1), libqt5dbus5 (>= 5.14.1), libqt5gui5 (>= 5.14.1) | libqt5gui5-gles (>= 5.14.1), libqt5network5 (>= 5.9.0~), libqt5widgets5 (>= 5.15.1), libstdc++6 (>= 5.2)
|
||||
Recommends: xdg-desktop-portal-gtk | xdg-desktop-portal-gnome | xdg-desktop-portal-kde | xdg-desktop-portal-wlr, grim
|
||||
Suggests: ca-certificates, openssl
|
||||
Filename: https://github.com/flameshot-org/flameshot/releases/download/v12.1.0/flameshot-12.1.0-1.debian-11.amd64.deb
|
||||
Size: 651568
|
||||
MD5sum: 42fe9a70ff05c36d27b5eae7f0c25dc6
|
||||
SHA1: 595c8dae712f96680e23121433815899902da5ae
|
||||
SHA256: 8fadc826b9fe3077fe55830cade2321438f4fc16ee03e65e0ad0b18eeb878def
|
||||
SHA512: 160333faf8237fde25bf26deaa14616acaa128711454871117394fe37742ad933409d276ce1d8cf16270ef430a877650ec81a1b47996c0ecf77f4e10d9f73df6
|
||||
Homepage: https://github.com/flameshot-org/flameshot
|
||||
Description: Powerful yet simple-to-use screenshot software
|
||||
Flameshot is a powerful yet simple-to-use screenshot software.
|
||||
Notable features include customizable appearance, in-app screenshot editing,
|
||||
D-Bus interface, experimental GNOME/KDE Wayland support, integration with
|
||||
Imgur and support for both GUI and CLI interface.
|
||||
|
||||
Package: flameshot
|
||||
Architecture: arm64
|
||||
Version: 12.1.0-1
|
||||
Priority: optional
|
||||
Section: graphics
|
||||
Maintainer: Boyuan Yang <byang@debian.org>
|
||||
Installed-Size: 3223
|
||||
Depends: hicolor-icon-theme, libqt5svg5 (>= 5.9.0~), libc6 (>= 2.17), libgcc-s1 (>= 3.0), libqt5core5a (>= 5.15.1), libqt5dbus5 (>= 5.14.1), libqt5gui5 (>= 5.14.1) | libqt5gui5-gles (>= 5.14.1), libqt5network5 (>= 5.9.0~), libqt5widgets5 (>= 5.15.1), libstdc++6 (>= 5.2)
|
||||
Recommends: xdg-desktop-portal-gtk | xdg-desktop-portal-gnome | xdg-desktop-portal-kde | xdg-desktop-portal-wlr, grim
|
||||
Suggests: ca-certificates, openssl
|
||||
Filename: https://github.com/flameshot-org/flameshot/releases/download/v12.1.0/flameshot-12.1.0-1.debian-11.arm64.deb
|
||||
Size: 604012
|
||||
MD5sum: f12c6170b067d8137fcc6cb9dfa4de9d
|
||||
SHA1: 2a8af2e95c048721e9211070d3e12999f27aa348
|
||||
SHA256: 437c66abe0bdca413c97b6ad3bfd690b2a8ca3e20e60a9f99795d5f432aecef5
|
||||
SHA512: 3fa0314558a56d5eebcbbd9bf0d803eab61dc499ef1fada34f327b243b70a7a878bdbcef07fd5e055f014fdfd6a2fe2c0d2f01796e7b429e3379c521e62b3003
|
||||
Homepage: https://github.com/flameshot-org/flameshot
|
||||
Description: Powerful yet simple-to-use screenshot software
|
||||
Flameshot is a powerful yet simple-to-use screenshot software.
|
||||
Notable features include customizable appearance, in-app screenshot editing,
|
||||
D-Bus interface, experimental GNOME/KDE Wayland support, integration with
|
||||
Imgur and support for both GUI and CLI interface.
|
||||
|
||||
@ -1,21 +0,0 @@
|
||||
Package: marktext
|
||||
Architecture: amd64
|
||||
Version: 0.17.1
|
||||
Priority: optional
|
||||
Section: default
|
||||
Maintainer: MarkText Contributors
|
||||
Installed-Size: 286529
|
||||
Depends: libsecret-1-0, libx11-xcb1, libxkbfile1, libfontconfig1
|
||||
Recommends: libappindicator3-1
|
||||
Filename: https://github.com/marktext/marktext/releases/download/v0.17.1/marktext-amd64.deb
|
||||
Size: 75198556
|
||||
MD5sum: d5c4b6c6033a28d71d2da68e9d72cb90
|
||||
SHA1: 06f1a3fe39e01704415294fc1d4c81465f0fa723
|
||||
SHA256: 927fa87c11e6763171bd68dbf60f235bfea62989e799620dd392d19077574fd2
|
||||
SHA512: fefc3ead08538ab8261295e94a91a3c5ae7a5041252d44e7ba0349c30424e0fa60db45d37e26b54a9b48491a3a3183baf08d19ee2362aec63b393ba6768df1f9
|
||||
Homepage: https://marktext.app/
|
||||
Description:
|
||||
A simple and elegant open-source markdown editor that focused on speed and usability.
|
||||
License: Expat
|
||||
Vendor: MarkText Contributors
|
||||
|
||||
@ -1,42 +0,0 @@
|
||||
Package: motrix
|
||||
Architecture: amd64
|
||||
Version: 1.8.19
|
||||
Priority: optional
|
||||
Section: default
|
||||
Maintainer: Dr_rOot <agalwood.net@gmail.com>
|
||||
Installed-Size: 245431
|
||||
Depends: libgtk-3-0, libnotify4, libnss3, libxss1, libxtst6, xdg-utils, libatspi2.0-0, libuuid1, libsecret-1-0
|
||||
Recommends: libappindicator3-1
|
||||
Filename: https://github.com/agalwood/Motrix/releases/download/v1.8.19/Motrix_1.8.19_amd64.deb
|
||||
Size: 71298984
|
||||
MD5sum: 0b878031c5eeb536e09dbc17b5fc0b54
|
||||
SHA1: 58394832c7c4d306e227c366d82fc822f6e1b9bb
|
||||
SHA256: a21d1fcc0988325073b3778de875660c9d544834f3f92b2396a0a124a14fed11
|
||||
SHA512: 8a3dab9c731268c2291f286d8efa7815046bbe00046deb938db061863d3ad3e14ddcb50ba4a7e44ada2c11d196d660bb6a762af4e6e589ddb38692266010e61a
|
||||
Homepage: https://motrix.app
|
||||
Description:
|
||||
A full-featured download manager
|
||||
License: MIT
|
||||
Vendor: Dr_rOot <agalwood.net@gmail.com>
|
||||
|
||||
Package: motrix
|
||||
Architecture: arm64
|
||||
Version: 1.8.19
|
||||
Priority: optional
|
||||
Section: default
|
||||
Maintainer: Dr_rOot <agalwood.net@gmail.com>
|
||||
Installed-Size: 249147
|
||||
Depends: libgtk-3-0, libnotify4, libnss3, libxss1, libxtst6, xdg-utils, libatspi2.0-0, libuuid1, libsecret-1-0
|
||||
Recommends: libappindicator3-1
|
||||
Filename: https://github.com/agalwood/Motrix/releases/download/v1.8.19/Motrix_1.8.19_arm64.deb
|
||||
Size: 66839298
|
||||
MD5sum: f55e76696960c4b0c56f39f85e81c72c
|
||||
SHA1: e7953a8dd3f1758729d7699158b36f4c8437ecf7
|
||||
SHA256: d191a0338bb4ae46e475f976bf926f3b61e8e5c96e9ac266242e883baaafd48a
|
||||
SHA512: 3ea865afc8d3c214a87e381f44249789330064cd44e8313b377d188fe983a1fd8cb3ccab879d6b26f3fdbf00f5971054f5529aa1dcb05017a184b8c8ed0993c7
|
||||
Homepage: https://motrix.app
|
||||
Description:
|
||||
A full-featured download manager
|
||||
License: MIT
|
||||
Vendor: Dr_rOot <agalwood.net@gmail.com>
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
Package: yolx
|
||||
Architecture: amd64
|
||||
Version: 0.3.9+1
|
||||
Priority: optional
|
||||
Essential: no
|
||||
Section: x11
|
||||
Maintainer: Yoyo <admin@yzzi.icu>
|
||||
Installed-Size: 6604
|
||||
Depends: libappindicator3-1, libayatana-appindicator3-1
|
||||
Filename: https://github.com/uiYzzi/Yolx/releases/download/0.3.9+1/yolx-linux-0.3.9+1.deb
|
||||
Size: 11392180
|
||||
MD5sum: 5b34c223e1b1e8eb0993d7d72c41d0cd
|
||||
SHA1: 5cbcdb0cb88055e29f58a93b3a8f8199a5f2af96
|
||||
SHA256: 52962ba986cea645b2b3817031899ba64fb32872160841f92a3fb9822b7e3561
|
||||
SHA512: 563b28d6d7c3273e6d2f9ce5ebb60e261f4832efccc4d89dfa75007803e3fb639f7210bd52c80ab8dccb0748346a7e3dd5d82df0e6c9c9a5883dddf13c24f6f7
|
||||
Description: An aria2 client
|
||||
Uploaders: Yoyo <admin@yzzi.icu>
|
||||
|
||||
27
run.sh
27
run.sh
@ -1,31 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
gen_release() {
|
||||
apt-ftparchive release $1 >$1/Release
|
||||
gpg --yes --detach-sign -a -o $1/Release.gpg $1/Release
|
||||
gpg --yes --clearsign -o $1/InRelease $1/Release
|
||||
}
|
||||
|
||||
# check for updates
|
||||
./get-github-releases.py
|
||||
find get -type f -name "*.sh" -exec sh {} \;
|
||||
|
||||
# generate the html
|
||||
./gen-list-html.py
|
||||
|
||||
cd deb
|
||||
# generate the local Packages
|
||||
apt-ftparchive packages . > tmpPackages
|
||||
sed -i "s|\./\(https\?\):/|\1://|g" tmpPackages
|
||||
|
||||
cd ..
|
||||
cat $(find packages -name "*.package") >> deb/tmpPackages
|
||||
sed -i "s|\./|\.\./|g" deb/tmpPackages
|
||||
# merge the Packages files from third-party repositories
|
||||
./merge-apt-repo.py --local deb/tmpPackages
|
||||
|
||||
# generate the Release file
|
||||
cd deb/dists/wcbing
|
||||
echo 'Origin: wcbing APT Repo
|
||||
Label: wcbing
|
||||
Suite: wcbing
|
||||
Codename: wcbing
|
||||
Architectures: amd64 arm64
|
||||
Components: main
|
||||
Description: wcbing APT Repo || wcbing 的 APT 仓库' > Release
|
||||
apt-ftparchive release . >> Release
|
||||
gpg --yes --detach-sign -a -o Release.gpg Release
|
||||
gpg --yes --clearsign -o InRelease Release
|
||||
gen_release deb/amd64
|
||||
gen_release deb/arm64
|
||||
|
||||
# generate the html
|
||||
./gen-list-html.py
|
||||
Loading…
x
Reference in New Issue
Block a user