File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Used to create a new releases in github
4
+
5
+ [ -d output ] || mkdir output
6
+ rm -f output/*
7
+
8
+ app_version=
9
+
10
+ for file in ./apps/* .apk; do
11
+ name=${file##*/ }
12
+ version_arch=$( echo $name | sed -nE ' s/com.instagram.android_([^-]+)-.*\((arm64-v8a|armeabi-v7a|x86_64|x86)\).*/\1 \2/p' )
13
+ version=${version_arch% * }
14
+ app_version=$version
15
+ architecture=${version_arch#* }
16
+ echo -e " \033[32mPatching: $version $architecture \033[0m"
17
+ new_name=instagram-v$version -$architecture .apk
18
+ python3 ./patch_apk.py -i $file --keystore ./release.keystore -o ./output/$new_name
19
+ done
20
+
21
+ old_version=$( sed -n ' /instagram-v/{s/.*instagram-v\([^-]\+\).*/\1/;p;q}' ./README.md)
22
+ sed -i " s/v$old_version /v$app_version /g" ./README.md
23
+
24
+ git tag v$app_version
25
+
26
+ git add ./README.md
27
+ git commit -m " Update version to v$app_version "
28
+ git push origin --tags
29
+ gh release create v$app_version --notes " Patched Instagram v$app_version with SSL pinning bypassed." ./output/* .apk
30
+ git push
You can’t perform that action at this time.
0 commit comments