Skip to content

An open-source cross-platform alternative to AirDrop

chore: update scripts

Tien Do Nameb330a9a286f
diff --git a/scripts/compile_android_apk.sh b/scripts/compile_android_apk.sh
index 6d177280..68bede5c 100644
--- a/scripts/compile_android_apk.sh
+++ b/scripts/compile_android_apk.sh
@@ -3,6 +3,14 @@
# By default, it will install everything to "/opt/android-sdk". This path is important!
# Furthermore, the Flutter version from the submodule is used.
+# Check Build ID via "readelf --wide --notes libapp.so"
+
+# REQUIREMENTS
+# (1) sudo apt install sdkmanager
+# (2) sudo chown -R <user> /opt/android-sdk
+# (3) sdkmanager "platform-tools" "platforms;android-33"
+# (4) sdkmanager --licenses
+
# UNCOMMENT THESE LINES TO BUILD FROM LATEST COMMIT
# git reset --hard origin/main
# git pull
diff --git a/scripts/compile_linux_appimage.sh b/scripts/compile_linux_appimage.sh
index 236df7af..4f265326 100644
--- a/scripts/compile_linux_appimage.sh
+++ b/scripts/compile_linux_appimage.sh
@@ -1,11 +1,25 @@
+# REQUIREMENTS
+# (1) sudo apt install clang cmake libgtk-3-dev ninja-build
+# (2) Download from https://github.com/AppImageCrafters/appimage-builder/releases
+# then sudo chmod +x appimage-builder-1.1.0-x86_64.AppImage && sudo mv appimage-builder-1.1.0-x86_64.AppImage /usr/local/bin/appimage-builder
+
# UNCOMMENT THESE LINES TO BUILD FROM LATEST COMMIT
# git reset --hard origin/main
# git pull
-fvm flutter clean
-fvm flutter pub get
-fvm flutter pub run build_runner build -d
-fvm flutter build linux
+git submodule update --init
+
+cd ..
+rm -rf /tmp/build
+cp localsend /tmp/build -r
+pushd /tmp/build
+
+alias flutter='submodules/flutter/bin/flutter'
+
+flutter clean
+flutter pub get
+flutter pub run build_runner build -d
+flutter build linux
rm -rf AppDir
rm -rf appimage-build
@@ -17,3 +31,6 @@ sudo chmod +x LocalSend-latest-x86_64.AppImage
rm -rf AppDir
rm -rf appimage-build
+
+popd
+cd localsend
\ No newline at end of file