【improve】Optimized the logic of enabling App Mask jailbreak detection #1165
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build_Release | |
on: | |
push: | |
branches: | |
- 1.0.5-bridge | |
paths-ignore: | |
- ".gitignore" | |
workflow_dispatch: | |
env: | |
VERSION: '1.0.5_2-bridge' | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Procursus | |
uses: wwg135/procursus-action@main | |
with: | |
packages: ldid trustcache make findutils coreutils | |
- name: Install THEOS | |
run: | | |
curl -fsSL https://raw.githubusercontent.com/theos/theos/master/bin/install-theos > theos | |
sed -i '' 's/get_sdks$//g' theos | |
bash theos | |
- name: Set env | |
run: | | |
sT=$(TZ=UTC-8 date +'%S') | |
echo "msT=$(date -j -f "%Y-%m-%d %H:%M:%S" "$(TZ=UTC-8 date +'%Y-%m-%d %H:%M'):${sT}" +%s)" >> $GITHUB_ENV | |
echo "shT=$(TZ=UTC-8 date +'%Y-%m-%d'' ''%H:%M:%S')" >> $GITHUB_ENV | |
echo "logT=$(TZ=UTC-8 date +'%Y年%m月%d %H:%M'):${sT}" >> $GITHUB_ENV | |
- name: Print env | |
run: | | |
echo ${{ env.VERSION }} | |
echo ${{ env.msT }} | |
echo ${{ env.shT }} | |
echo ${{ env.logT }} | |
- name: Pre code and keychain | |
run: | | |
sed -i '' "s/AAA/更新时间/g" ./Dopamine/Dopamine/UI/Views/JailbreakView.swift | |
sed -i '' "s/AAB/${{ env.shT }}/g" ./Dopamine/Dopamine/UI/Views/JailbreakView.swift | |
sed -i '' 's/MARKETING_VERSION = .*;/MARKETING_VERSION = ${{ env.VERSION }};/g' ./Dopamine/Dopamine.xcodeproj/project.pbxproj | |
sudo security import Exploits/fastPath/arm.pfx -k /Library/Keychains/System.keychain -P password -A | |
- name: Pre body | |
run: | | |
echo -e "[点击当前版本下载](https://github.com/wwg135/Dopamine/releases/download/${{ env.msT }}/Dopamine.ipa)" >> body.txt | |
echo -e "\n更新时间:${{ env.logT }}" >> body.txt | |
echo -e "\n**当前版本更新日志如下:**" >> body.txt | |
echo -e "\n> - 1.维护更新1.0.5_2(桥接心浪)版本,1.1以上版本可忽略更新\n> - 2.优化启用App越狱屏蔽功能逻辑,之前的逻辑有误,建议务必更新" >> body.txt | |
echo -e "\n**1.0.5的修改版功能如下:**" >> body.txt | |
echo -e "> - 1、新增【桥接心浪】功能,以便以 XinA 的模式安装有根插件(内置xinamine依赖)。感谢liam0205大佬的代码!!!" >> body.txt | |
echo -e "> - 2、新增【检查更新】功能,设置里面打开即可检查更新,默认关闭!!!" >> body.txt | |
echo -e "> - 3、新增【映射挂载】功能,开关在设置里面,默认不开启。要挂载什么,自己添加路径挂载。" >> body.txt | |
echo -e "> - 4、新增初次越狱/重建越狱时,默认安装 【ElleKit_1.0】 、 【PreferenceLoader_2.2.6.1】、【Xinamine】。感谢liam0205大佬的代码!!!" >> body.txt | |
echo -e "> - 5、新增【系统运行时间】----越狱后首页显示,打开多巴胺工具即弹出!!!" >> body.txt | |
echo -e "> - 6、新增【重启用户空间】长按3Dtouch弹出的【重启】功能才是真正重启手机(此操作重启后处于非越狱状态,谨慎操作)。7/8新增弹出【更新环境】,仅针对从trollstore更新安装dopamine有用,覆盖安装更新建议执行该操作,感谢liam0205大佬的代码!!!" >> body.txt | |
echo -e "> - 7、新增【自定义dopamine首页背景】--将图片命名为:Wallpaper.jpg放置在目录:/var/mobile/!!!" >> body.txt | |
echo -e "> - 8、新增【清除屏蔽】功能,清除屏蔽配置文件zp.unject.plist,恢复APP屏蔽前的状态。感谢真皮大佬的代码!!!" >> body.txt | |
echo -e "> - 9、新增【重启用户空间】越狱成功后显示按钮,防止自动重启用户空间后、插件不兼容导致黑屏开不了机。感谢liam0205大佬的代码!!!" >> body.txt | |
echo -e "> - 10、设置新增【清除越狱】确认。若处于越狱状态,提示确认重启设备后再清除操作,否则不允许清除越狱!!!" >> body.txt | |
echo -e "> - 11、新增越狱后默认配置底层屏蔽文件【zp.unject.plist】,路径为:/var/mobile/,可自定义app屏蔽越狱检测!!!" >> body.txt | |
echo -e "> - 12、新增一键启用【自定义app屏蔽越狱检测】(开关在越狱后设置里面)!!!" >> body.txt | |
echo -e "> - 13、新增【添加/删除App屏蔽】功能,功能和说明在设置里面!!!" >> body.txt | |
echo -e "> - 14、其他设置UI、显示细节优化。。。" >> body.txt | |
- name: Build ipa | |
run: | | |
set -x | |
export THEOS=$HOME/theos | |
gmake -j$(sysctl -n hw.physicalcpu) | |
mv Dopamine/Dopamine.tipa Dopamine.ipa | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: ${{ env.VERSION }} | |
tag_name: ${{ env.msT }} | |
target_commitish: 1.0.5-bridge | |
body_path: body.txt | |
prerelease: true | |
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |
files: | | |
*.ipa |