Skip to content

An open-source cross-platform alternative to AirDrop

chore: polish scripts

Tien Do Nam62ca72034df9
diff --git a/scripts/compile_android_appbundle.ps1 b/scripts/compile_android_appbundle.ps1
index 3ca641f8..a9c33aed 100644
--- a/scripts/compile_android_appbundle.ps1
+++ b/scripts/compile_android_appbundle.ps1
@@ -1,5 +1,6 @@
-git reset --hard origin/main
-git pull
+# UNCOMMENT THESE LINES TO BUILD FROM LATEST COMMIT
+# git reset --hard origin/main
+# git pull
fvm flutter clean
fvm flutter pub get
diff --git a/scripts/compile_ios.sh b/scripts/compile_ios.sh
index 456f0c0c..e59d2589 100644
--- a/scripts/compile_ios.sh
+++ b/scripts/compile_ios.sh
@@ -1,10 +1,10 @@
-git reset --hard origin/main
-git pull
+# UNCOMMENT THESE LINES TO BUILD FROM LATEST COMMIT
+# git reset --hard origin/main
+# git pull
-alias ff='fvm flutter'
-ff clean
-ff pub get
-ff pub run build_runner build -d
-ff precache --ios
+fvm flutter clean
+fvm flutter pub get
+fvm flutter pub run build_runner build -d
+fvm flutter precache --ios
(cd ios;pod update)
-ff build ipa
+fvm flutter build ipa
diff --git a/scripts/compile_linux_appimage.sh b/scripts/compile_linux_appimage.sh
index f40ce6dc..236df7af 100644
--- a/scripts/compile_linux_appimage.sh
+++ b/scripts/compile_linux_appimage.sh
@@ -1,3 +1,7 @@
+# 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
diff --git a/scripts/compile_mac_appstore.sh b/scripts/compile_mac_appstore.sh
index 2463274a..c2b2eb12 100644
--- a/scripts/compile_mac_appstore.sh
+++ b/scripts/compile_mac_appstore.sh
@@ -1,5 +1,6 @@
-git reset --hard origin/main
-git pull
+# UNCOMMENT THESE LINES TO BUILD FROM LATEST COMMIT
+# git reset --hard origin/main
+# git pull
fvm flutter clean
fvm flutter pub get
diff --git a/scripts/compile_mac_dmg.sh b/scripts/compile_mac_dmg.sh
index 78d32c9b..76896587 100644
--- a/scripts/compile_mac_dmg.sh
+++ b/scripts/compile_mac_dmg.sh
@@ -1,5 +1,6 @@
-git reset --hard origin/main
-git pull
+# UNCOMMENT THESE LINES TO BUILD FROM LATEST COMMIT
+# git reset --hard origin/main
+# git pull
fvm flutter clean
fvm flutter pub get
diff --git a/scripts/compile_windows_msix.ps1 b/scripts/compile_windows_msix.ps1
index 965e8e37..84a81501 100644
--- a/scripts/compile_windows_msix.ps1
+++ b/scripts/compile_windows_msix.ps1
@@ -1,5 +1,6 @@
-git reset --hard origin/main
-git pull
+# UNCOMMENT THESE LINES TO BUILD FROM LATEST COMMIT
+# git reset --hard origin/main
+# git pull
fvm flutter clean
fvm flutter pub get
diff --git a/scripts/compile_windows_zip.ps1 b/scripts/compile_windows_zip.ps1
index 7ba40786..8259e16e 100644
--- a/scripts/compile_windows_zip.ps1
+++ b/scripts/compile_windows_zip.ps1
@@ -1,5 +1,6 @@
-git reset --hard origin/main
-git pull
+# UNCOMMENT THESE LINES TO BUILD FROM LATEST COMMIT
+# git reset --hard origin/main
+# git pull
fvm flutter clean
fvm flutter pub get