Skip to content

Commit

Permalink
🚀 setup ci
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhuan committed May 13, 2024
1 parent 5369f04 commit 5d47d7e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions linux/appimage/AppRun.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Name=kobi
Exec=AppRun %u
Icon=AppRun
Categories=Utility;
Binary file added linux/appimage/AppRun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions scripts/thin-payload.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5d47d7e

Please sign in to comment.