Remove tflite setup file (#508)
This commit is contained in:
commit
6ce8b374cf
2 changed files with 3 additions and 69 deletions
|
@ -68,12 +68,11 @@ You can alternatively install the build from PlayStore or F-Droid.
|
|||
2. Clone this repository with `git clone git@github.com:ente-io/photos-app.git`
|
||||
3. Pull in all submodules with `git submodule update --init --recursive`
|
||||
4. Enable repo git hooks `git config core.hooksPath hooks`
|
||||
5. Setup TensorFlowLite by executing `setup.sh`
|
||||
6. If using Visual Studio Code, add the [Flutter Intl](https://marketplace.visualstudio.com/items?itemName=localizely.flutter-intl) extension
|
||||
7. Android:
|
||||
5. If using Visual Studio Code, add the [Flutter Intl](https://marketplace.visualstudio.com/items?itemName=localizely.flutter-intl) extension
|
||||
6. Android:
|
||||
* For development, run ```flutter run -t lib/main.dart --flavor independent```
|
||||
* For building APK, [setup your keystore](https://docs.flutter.dev/deployment/android#create-an-upload-keystore) and run `flutter build apk --release --flavor independent`
|
||||
8. For iOS, run `flutter build ios`
|
||||
7. For iOS, run `flutter build ios`
|
||||
<br/>
|
||||
|
||||
## 🙋 Help
|
||||
|
|
|
@ -1,65 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Originally from https://github.com/am15h/tflite_flutter_plugin/blob/master/install.sh
|
||||
|
||||
cd "$(dirname "$(readlink -f "$0")")"
|
||||
|
||||
|
||||
# Pull from the latest tag where binaries were built
|
||||
ANDROID_TAG="tf_2.5"
|
||||
IOS_TAG="v0.5.0"
|
||||
IOS_URL="https://github.com/am15h/tflite_flutter_plugin/releases/download/"
|
||||
ANDROID_URL="https://github.com/am15h/tflite_flutter_plugin/releases/download/"
|
||||
|
||||
IOS_ASSET="TensorFlowLiteC.framework.zip"
|
||||
IOS_FRAMEWORK="TensorFlowLiteC.framework"
|
||||
IOS_DIR="ios/.symlinks/plugins/tflite_flutter/ios/"
|
||||
MACOSX_METADATA_DIR="__MACOSX"
|
||||
|
||||
ANDROID_DIR="android/app/src/main/jniLibs/"
|
||||
ANDROID_LIB="libtensorflowlite_c.so"
|
||||
|
||||
ARM_DELEGATE="libtensorflowlite_c_arm_delegate.so"
|
||||
ARM_64_DELEGATE="libtensorflowlite_c_arm64_delegate.so"
|
||||
ARM="libtensorflowlite_c_arm.so"
|
||||
ARM_64="libtensorflowlite_c_arm64.so"
|
||||
X86="libtensorflowlite_c_x86.so"
|
||||
X86_64="libtensorflowlite_c_x86_64.so"
|
||||
|
||||
delegate=0
|
||||
|
||||
while getopts "d" OPTION
|
||||
do
|
||||
case $OPTION in
|
||||
d) delegate=1;;
|
||||
esac
|
||||
done
|
||||
|
||||
wget "${IOS_URL}${IOS_TAG}/${IOS_ASSET}"
|
||||
unzip ${IOS_ASSET}
|
||||
rm -rf ${MACOSX_METADATA_DIR}
|
||||
rm ${IOS_ASSET}
|
||||
rm -rf "${IOS_DIR}/${IOS_FRAMEWORK}"
|
||||
mv ${IOS_FRAMEWORK} ${IOS_DIR}
|
||||
|
||||
download () {
|
||||
wget "${ANDROID_URL}${ANDROID_TAG}/$1"
|
||||
mkdir -p "${ANDROID_DIR}$2/"
|
||||
mv $1 "${ANDROID_DIR}$2/${ANDROID_LIB}"
|
||||
}
|
||||
|
||||
if [ ${delegate} -eq 1 ]
|
||||
then
|
||||
|
||||
download ${ARM_DELEGATE} "armeabi-v7a"
|
||||
download ${ARM_64_DELEGATE} "arm64-v8a"
|
||||
|
||||
else
|
||||
|
||||
download ${ARM} "armeabi-v7a"
|
||||
download ${ARM_64} "arm64-v8a"
|
||||
|
||||
fi
|
||||
|
||||
download ${X86} "x86"
|
||||
download ${X86_64} "x86_64"
|
Loading…
Add table
Reference in a new issue