Fix se.manyver: use Node.js 12.x and its npm

This commit is contained in:
Andre Staltz 2023-02-02 17:43:38 +02:00 committed by Licaon_Kter
parent 470c8f4d53
commit bf3cdb4c5a

View file

@ -3189,13 +3189,71 @@ Builds:
- versionName: 0.2301.6-beta-fdroid
versionCode: 144
disable: build compiles but does not run correctly
commit: cf01173c942f7e57c6f55df463d49cf919e5ca51
timeout: 80000
subdir: android/app
sudo:
- apt-get update
- apt-get install -y g++ g++-multilib make libtool npm python2 python-is-python2
- apt-get install -y g++ g++-multilib make libtool python2 python-is-python2
autoconf automake libtool
- curl -Lo node.tar.gz https://nodejs.org/dist/v12.16.3/node-v12.16.3-linux-x64.tar.gz
- echo "66518c31ea7735ae5a0bb8ea27edfee846702dbdc708fea6ad4a308d43ef5652 node.tar.gz"
| sha256sum -c -
- tar xzf node.tar.gz
- cp -a node-v12.16.3-linux-x64/. /usr/local/
- sysctl fs.inotify.max_user_watches=524288
- npm install -g react-native-cli
init: npm install --no-optional
gradle:
- fdroid
srclibs:
- NodejsMobile@nodejs-mobile-v0.3.3
rm:
- node_modules/react-native/ReactAndroid/src/main/third-party/java/buck-android-support/buck-android-support.jar
- node_modules/react-native/template/
- desktop
- ios
- test
prebuild:
- sed -i -e '/lifecycle/d' ../build.gradle
- sed -i -e '/signingConfig signingConfigs/d' build.gradle
scanignore:
- android/build.gradle
- node_modules/react-native/android
- node_modules/jsc-android
- node_modules/hermes-engine
- node_modules/react-native-blurhash/android/build.gradle
- node_modules/react-native-localize/android/build.gradle
- node_modules/react-native-svg/android/build.gradle
- node_modules/react-native-vector-icons/android/build.gradle
- node_modules/@react-native-async-storage/async-storage/android/build.gradle
scandelete:
- node_modules
build:
- pushd $$NodejsMobile$$
- ./tools/android_build.sh $$NDK$$ arm > /dev/null
- ./tools/android_build.sh $$NDK$$ arm64 > /dev/null
- popd
- mv $$NodejsMobile$$/out_android/armeabi-v7a/libnode.so ../../node_modules/nodejs-mobile-react-native/android/libnode/bin/armeabi-v7a/libnode.so
- mv $$NodejsMobile$$/out_android/arm64-v8a/libnode.so ../../node_modules/nodejs-mobile-react-native/android/libnode/bin/arm64-v8a/libnode.so
- npm run build-android-assets
ndk: r21e
- versionName: 0.2302.2-beta-fdroid
versionCode: 145
commit: 97b43cca4b9922699c92305f4ef0f165fd0cd199
timeout: 80000
subdir: android/app
sudo:
- apt-get update
- apt-get install -y g++ g++-multilib make libtool python2 python-is-python2
autoconf automake libtool
- curl -Lo node.tar.gz https://nodejs.org/dist/v12.19.1/node-v12.19.1-linux-x64.tar.gz
- echo "858c5201c9572a8ec797f6cb966669cd38d5b5181b93eb5917f9ebdf89471b9f node.tar.gz"
| sha256sum -c -
- tar xzf node.tar.gz
- cp -a node-v12.19.1-linux-x64/. /usr/local/
- sysctl fs.inotify.max_user_watches=524288
- npm install -g react-native-cli
init: npm install --no-optional