Fix md5 update.

This commit is contained in:
mrFq1 2022-07-31 12:03:44 +08:00
parent 04b1b4daa9
commit d2219a10e3
1 changed files with 6 additions and 4 deletions

View File

@ -13,14 +13,16 @@ gzip -d *.gz
echo "Create Universal core"
lipo -create -output com.metacubex.ClashX.ProxyConfigHelper.meta Clash.Meta-darwin-amd64* Clash.Meta-darwin-arm64*
chmod +x com.metacubex.ClashX.ProxyConfigHelper.meta
echo "Update meta core md5 to code"
sed -i '' "s/WOSHIZIDONGSHENGCHENGDEA/$(md5 -q com.metacubex.ClashX.ProxyConfigHelper.meta)/g" ../ClashX/AppDelegate.swift
sed -n '20p' ClashX/AppDelegate.swift
echo "Gzip Universal core"
gzip com.metacubex.ClashX.ProxyConfigHelper.meta
cp com.metacubex.ClashX.ProxyConfigHelper.meta.gz ../ClashX/Resources/
cd ..
echo "Update meta core md5 to code"
sed -i '' "s/WOSHIZIDONGSHENGCHENGDEA/$(md5 -q ClashX/Resources/com.metacubex.ClashX.ProxyConfigHelper.meta)/g" ClashX/AppDelegate.swift
sed -n '20p' ClashX/AppDelegate.swift
echo "Pod install"
pod install
echo "delete old files"