mirror of
https://github.com/immich-app/immich.git
synced 2025-06-24 17:03:11 +02:00
chore(mobile): add isar lock file (#12705)
This commit is contained in:
parent
b06ea687b4
commit
4735db8e79
3 changed files with 877 additions and 2 deletions
mobile/scripts
6
mobile/scripts/fdroid_build_isar.sh
Normal file → Executable file
6
mobile/scripts/fdroid_build_isar.sh
Normal file → Executable file
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
cd .isar || exit
|
||||
test -d .isar || exit
|
||||
cp .isar-cargo.lock .isar/Cargo.lock
|
||||
(cd .isar || exit
|
||||
bash tool/build_android.sh x86
|
||||
bash tool/build_android.sh x64
|
||||
bash tool/build_android.sh armv7
|
||||
|
@ -13,4 +15,4 @@ mv libisar_android_x64.so libisar.so
|
|||
mv libisar.so ../.pub-cache/hosted/pub.dev/isar_flutter_libs-*/android/src/main/jniLibs/x86_64/
|
||||
mv libisar_android_x86.so libisar.so
|
||||
mv libisar.so ../.pub-cache/hosted/pub.dev/isar_flutter_libs-*/android/src/main/jniLibs/x86/
|
||||
cd ..
|
||||
)
|
14
mobile/scripts/fdroid_update_isar.sh
Executable file
14
mobile/scripts/fdroid_update_isar.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
isar_version="$(awk '/isar: /{gsub(/\^/, "", $2); print $2}' pubspec.yaml)"
|
||||
checked_out_version="$(git -C .isar describe --tags)"
|
||||
|
||||
if [ "$isar_version" = "$checked_out_version" ]; then
|
||||
echo "isar is up-to-date."
|
||||
exit 0
|
||||
fi
|
||||
echo "Updating from version $checked_out_version to $isar_version."
|
||||
|
||||
git -C .isar checkout "$isar_version"
|
||||
cargo generate-lockfile --manifest-path .isar/Cargo.toml
|
||||
mv .isar/Cargo.lock .isar-cargo.lock
|
Loading…
Add table
Add a link
Reference in a new issue