forked from mylxsw/aidea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (20 loc) · 792 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ipa:
flutter build ipa --no-tree-shake-icons --release
open build/ios/ipa
run:
flutter run --release
build-all: build-android ipa
build-android:
flutter build apk --release --no-tree-shake-icons
# open build/app/outputs/flutter-apk
mv build/app/outputs/flutter-apk/app-release.apk /Users/mylxsw/ResilioSync/临时文件/
build-macos:
flutter build macos --no-tree-shake-icons
open build/macos/Build/Products/Release/
deploy-web:
flutter build web --web-renderer canvaskit --release --pwa-strategy none --dart2js-optimization O4
cd build && tar -zcvf web.tar.gz web
scp build/web.tar.gz huawei-1:/data/webroot
ssh huawei-1 "cd /data/webroot && tar -zxvf web.tar.gz && rm -rf web.tar.gz app && mv web app"
rm -fr build/web.tar.gz
.PHONY: run build-android build-macos ipa