build.sh 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #!/bin/bash
  2. # @Contact : liuyuqi.gov@msn.cn
  3. # @Time : 2023/03/19 19:11:52
  4. # @License : (C)Copyright 2022 liuyuqi.
  5. # @Desc : build apk
  6. ###############################################################################
  7. source /etc/profile
  8. export JAVA_HOME=/usr/local/openjdk-11
  9. # export JAVA_HOME=/root/.sdkman/candidates/java/21.0.1-ms/
  10. # source "$HOME/.sdkman/bin/sdkman-init.sh"
  11. # sdk list
  12. # sdk install 8.0.392-librca
  13. # sdk default 8.0.392-librca
  14. # flutter
  15. export PUB_HOSTED_URL=https://pub.flutter-io.cn
  16. export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
  17. # cd /opt/flutter
  18. # git checkout 2.0.5
  19. # git checkout 3.7.9
  20. # git checkout 3.13.8
  21. # flutter doctor
  22. cd /workspace/
  23. flutter build apk
  24. # flutter build apk --debug
  25. # flutter pub get
  26. # flutter create --offline --ios-language swift --android-language java --org me.yoqi.flutter --project-name flutter_osc flutter_osc
  27. # android
  28. # cd /workspace/packagehunter
  29. # chmod +x gradlew
  30. # ./gradlew assembleDebug
  31. # ./gradlew cleanBuildCache
  32. # aapt package -f \
  33. # -M AndroidManifest.xml \
  34. # -I "$ANDROID_HOME/platforms/android-N/android.jar" \
  35. # -S res/ \
  36. # -J gen/ \
  37. # -m \
  38. # java
  39. # mvn clean package -Dmaven.test.skip=true
  40. # node
  41. # cd
  42. # yarn && yarn build
  43. # yarn && yarn dev
  44. # go
  45. # cd
  46. # go build
  47. # python
  48. # pip install -r requirements.txt
  49. # python main.py