mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 825257e898 |
@@ -8,9 +8,9 @@ u="$USER"
|
|||||||
tmp="$(mktemp -d -t)"
|
tmp="$(mktemp -d -t)"
|
||||||
folder="$tmp/simplex-chat"
|
folder="$tmp/simplex-chat"
|
||||||
|
|
||||||
nix_ver="nix-2.15.1"
|
nix_ver="nix-2.19.2"
|
||||||
nix_url="https://releases.nixos.org/nix/$nix_ver/install"
|
nix_url="https://releases.nixos.org/nix/$nix_ver/install"
|
||||||
nix_hash="67aa37f0115195d8ddf32b5d6f471f1e60ecca0fdb3e98bcf54bc147c3078640"
|
nix_hash="435f0d7e11f7c7dffeeab0ec9cc55723f6d3c03352379d785633cf4ddb5caf90"
|
||||||
nix_config="sandbox = true
|
nix_config="sandbox = true
|
||||||
max-jobs = auto
|
max-jobs = auto
|
||||||
experimental-features = nix-command flakes"
|
experimental-features = nix-command flakes"
|
||||||
@@ -102,6 +102,14 @@ build() {
|
|||||||
sed -i.bak '/android {/a lint {abortOnError = false}' "$folder/apps/multiplatform/android/build.gradle.kts"
|
sed -i.bak '/android {/a lint {abortOnError = false}' "$folder/apps/multiplatform/android/build.gradle.kts"
|
||||||
|
|
||||||
for arch in $arches; do
|
for arch in $arches; do
|
||||||
|
|
||||||
|
tag_full="$(git tag --points-at HEAD)"
|
||||||
|
tag_version="${tag_full%%-*}"
|
||||||
|
|
||||||
|
if [ "$arch" = "armv7a" ] && [ -n "$tag_full" ] ; then
|
||||||
|
git checkout "${tag_version}-armv7a"
|
||||||
|
fi
|
||||||
|
|
||||||
android_simplex_lib="${folder}#hydraJobs.${arch}-android:lib:simplex-chat.x86_64-linux"
|
android_simplex_lib="${folder}#hydraJobs.${arch}-android:lib:simplex-chat.x86_64-linux"
|
||||||
android_support_lib="${folder}#hydraJobs.${arch}-android:lib:support.x86_64-linux"
|
android_support_lib="${folder}#hydraJobs.${arch}-android:lib:support.x86_64-linux"
|
||||||
android_simplex_lib_output="${PWD}/result/pkg-${arch}-android-libsimplex.zip"
|
android_simplex_lib_output="${PWD}/result/pkg-${arch}-android-libsimplex.zip"
|
||||||
@@ -139,6 +147,10 @@ build() {
|
|||||||
zipalign -p -f 4 "$tmp/$android_apk_output_final" "$PWD/$android_apk_output_final"
|
zipalign -p -f 4 "$tmp/$android_apk_output_final" "$PWD/$android_apk_output_final"
|
||||||
|
|
||||||
rm -rf "$libs_folder/$android_arch"
|
rm -rf "$libs_folder/$android_arch"
|
||||||
|
|
||||||
|
if [ "$arch" = "armv7a" ] && [ -n "$tag_full" ] ; then
|
||||||
|
git checkout "${tag_full}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user