[裤衩子底朝天] 如何 完整/增量/慢慢地/不怕检测地 同步一个Cydia源

[裤衩子底朝天] 如何 完整/增量/慢慢地/不怕检测地 同步一个Cydia源


你看看人家老罗的创意被抄的裤衩都不剩的时候怎么做的嘛 既然决定做一个便民的软件源 那就做到底嘛



用法很简单看一眼Readme就全懂了 有不懂进官方QQ群提问 我看到了我一定会回答的


  • 支持下载源MetaData
  • 支持增量更新
  • 支持随机请求的参数 udid UA 和几个Cydia的参数
  • 支持设置时间间隔来过掉QPS检测
  • 支持MD5 SHA1 SHA256校验软件包

注意!:warning: 如果你修改了文件名那么增量更新和版本追踪会失效
从1.1版本开始匹配规则修改为md5 sha1 sha256三码合一

解释:从1.1开始软件会计算软件包的特征码和远端特征码进行比对 要确认一个软件包是否下载成功 需要至少一个值匹配且必须和所有已知远端信息全部匹配

注意!:warning:1.1增加了将软件包的本地文件名和远端同步的功能 匹配方法同上 需要参数 --rename

注意!:warning: 有些软件源的软件包的文件名携带了

:

这个玩意会让你的Cydia在请求下载软件包的时候失败 因为nginx似乎不支持这个 也许是我太菜了


那啥


我没有主观恶意也没有获取隐私信息更没有 破 解 服务器


不服来战


最后,本软件MIT开源,你要能找到买家或者包装一下拿出去卖钱我还挺开心的。
开源精神就是我送你裤衩子你有本事拿出去卖钱你厉害你牛逼我无所谓

来打我呀!


案例:

./RepoSync https://apt.bingner.com ~/Desktop/ooo/bingner --mess --depth=0



-------------------------
From: https://apt.bingner.com to: file:///Users/ooo/Desktop/bingner
 -> depth: 0 timeGap: 0
 -> mess
Request Messed!
-------------------------


[CydiaRequest] Requesting GET to -> https://apt.bingner.com/Release
[CydiaRequest] Requesting GET to -> https://apt.bingner.com/Packages.bz2
[CydiaRequest] Requesting GET to -> https://apt.bingner.com/Packages
[CydiaRequest] Requesting GET to -> https://apt.bingner.com/Packages.xz
[CydiaRequest] Requesting GET to -> https://apt.bingner.com/Packages.gz
[CydiaRequest] Requesting GET to -> https://apt.bingner.com/Packages.lzma
[CydiaRequest] Requesting GET to -> https://apt.bingner.com/Packages.lzma2
[CydiaRequest] Requesting GET to -> https://apt.bingner.com/Packages.bz
[CydiaRequest] Requesting GET to -> https://apt.bingner.com/Packages.xz2
[CydiaRequest] Requesting GET to -> https://apt.bingner.com/Packages.gz2
[Packages] Failed to get repo meta data, server returned 404 when looking for .xz2
[Packages] Failed to get repo meta data, server returned 404 when looking for .bz
[Packages] Failed to get repo meta data, server returned 404 when looking for .gz
[Packages] Failed to get repo meta data, server returned 404 when looking for .lzma
[Packages] Failed to get repo meta data, server returned 404 when looking for .gz2
[Packages] Failed to get repo meta data, server returned 404 when looking for .lzma2


🎉 Congratulations! Repo is validated!


Invoking package metadata, this will take some times...
[invokePackageMeta] Invalid meta ignored: missing version string

--- SUMMARY ---

337 packages to download in total

--- SUMMARY ---



1/337
From: https://apt.bingner.com/debs/1443.00/libapt-pkg-dev_1.8.2-1_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/libapt-pkg-dev_1.8.2-1_iphoneos-arm.deb

...

94/337
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.0.14_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.0.14_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.0.9-1_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.0.9-1_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.0.9-10_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.0.9-10_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.1.5_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.1.5_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.1.8_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.1.8_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.0.9-4_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.0.9-4_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.0.15_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.0.15_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.1.1_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.1.1_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.0.8-1_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.0.8-1_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.0.9-11_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.0.9-11_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.0.9-14_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.0.9-14_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.0.9-12_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.0.9-12_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.0.9-3_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.0.9-3_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.1.0_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.1.0_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.0.7-1_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.0.7-1_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.1.2_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.1.2_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.1.6_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.1.6_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.0.13_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/com.ex.substitute_0.0.13_iphoneos-arm.deb

...

335/337
From: https://apt.bingner.com/debs/1443.00/inetutils_1.9.4-2_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/inetutils_1.9.4-2_iphoneos-arm.deb


336/337
From: https://apt.bingner.com/debs/1443.00/libmsgpackc2_3.2.0-1_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/libmsgpackc2_3.2.0-1_iphoneos-arm.deb


337/337
From: https://apt.bingner.com/debs/1443.00/apt7_1:0-2_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/apt7_1:0-2_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/apt7_1:0-1_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/apt7_1:0-1_iphoneos-arm.deb
From: https://apt.bingner.com/debs/1443.00/apt7_1:0_iphoneos-arm.deb
  to: file:///Users/ooo/Desktop/bingner/debs/apt7_1:0_iphoneos-arm.deb


🎉 No error occurs during download


Program ended with exit code: 0
3 Likes

资瓷 Swift

因为很方便啊😂

没毛病,福厂现在 App 也能写 Swift 了,嗨皮。

1 Like

hhh我感觉Swift和python方便程度差不多了 再就是Swift比python更有安全感哈哈哈哈哈

起码类型系统是强制的,Python 那个类型系统某些解释器不认识直接报错很痛苦。

hhh我用过最痛苦的语言有两个

一个是bash $不$搞的烦死还有空格处理不来
一个是js 几乎没有类型这个概念 经常就方法当值来用崩掉

其实我菜是原罪

Swift还有一点很舒服是在这个系统自带的库复用率很高!

就是一个字:资瓷。

1 Like

strlen ?!!

你这里说的是什么?啥都没得我可以看看不?

文件名不能包含":"

%25不行吗?

1 Like

雷锋律师函警告⚠️

2 Likes

还提?揍你啊