diff --git a/linux/appimage/AppRun.desktop b/linux/appimage/AppRun.desktop new file mode 100644 index 0000000..5ae9f56 --- /dev/null +++ b/linux/appimage/AppRun.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Terminal=false +Name=kobi +Exec=AppRun %u +Icon=AppRun +Categories=Utility; diff --git a/linux/appimage/AppRun.png b/linux/appimage/AppRun.png new file mode 100644 index 0000000..de06c2b Binary files /dev/null and b/linux/appimage/AppRun.png differ diff --git a/scripts/thin-payload.sh b/scripts/thin-payload.sh new file mode 100644 index 0000000..1b431ba --- /dev/null +++ b/scripts/thin-payload.sh @@ -0,0 +1,24 @@ +# 精简Payload文件夹 (上传到AppStore会自动区分平台, 此代码仅用于构建非签名ipa) + +foreachThin(){ + for file in $1/* + do + if test -f $file + then + mime=$(file --mime-type -b $file) + if [ "$mime" == 'application/x-mach-binary' ] || [ "${file##*.}"x = "dylib"x ] + then + echo thin $file + xcrun -sdk iphoneos lipo "$file" -thin arm64 -output "$file" + xcrun -sdk iphoneos bitcode_strip "$file" -r -o "$file" + strip -S -x "$file" -o "$file" + fi + fi + if test -d $file + then + foreachThin $file + fi + done +} + +foreachThin ./Payload