123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #!/bin/bash
- # @Contact : liuyuqi.gov@msn.cn
- # @Time : 2023/03/19 19:11:52
- # @License : (C)Copyright 2022 liuyuqi.
- # @Desc : build apk
- ###############################################################################
- source /etc/profile
- export JAVA_HOME=/usr/local/openjdk-11
- # export JAVA_HOME=/root/.sdkman/candidates/java/21.0.1-ms/
- # source "$HOME/.sdkman/bin/sdkman-init.sh"
- # sdk list
- # sdk install 8.0.392-librca
- # sdk default 8.0.392-librca
- # flutter
- export PUB_HOSTED_URL=https://pub.flutter-io.cn
- export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
- # cd /opt/flutter
- # git checkout 2.0.5
- # git checkout 3.7.9
- # git checkout 3.13.8
- # flutter doctor
- cd /workspace/
- flutter build apk
- # flutter build apk --debug
- # flutter pub get
- # flutter create --offline --ios-language swift --android-language java --org me.yoqi.flutter --project-name flutter_osc flutter_osc
- # android
- # cd /workspace/packagehunter
- # chmod +x gradlew
- # ./gradlew assembleDebug
- # ./gradlew cleanBuildCache
- # aapt package -f \
- # -M AndroidManifest.xml \
- # -I "$ANDROID_HOME/platforms/android-N/android.jar" \
- # -S res/ \
- # -J gen/ \
- # -m \
- # java
- # mvn clean package -Dmaven.test.skip=true
- # node
- # cd
- # yarn && yarn build
- # yarn && yarn dev
- # go
- # cd
- # go build
- # python
- # pip install -r requirements.txt
- # python main.py
|