Fix md5 update.
This commit is contained in:
parent
04b1b4daa9
commit
d2219a10e3
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue