fdroiddata/templates/build-react-native.yml

45 lines
1.6 KiB
YAML
Raw Normal View History

2021-12-13 12:39:40 +00:00
# PLEASE REMOVE ALL COMMENTS BEFORE SUBMITTING TO F-DROID DATA!
# Starting from the following template and grep for "npm" in the metadata
# directory to see other examples.
2023-01-01 12:09:30 +00:00
# See also https://f-droid.org/2020/10/14/adding-react-native-app-to-f-droid.html
2021-12-13 12:39:40 +00:00
Builds:
2022-09-15 07:40:52 +00:00
- versionName: '1.0'
2021-12-13 12:39:40 +00:00
versionCode: 1
2022-09-15 07:40:52 +00:00
commit: '1.0'
2021-12-13 12:39:40 +00:00
subdir: android/app/
sudo:
2022-09-15 07:40:52 +00:00
- sysctl fs.inotify.max_user_watches=524288 || true
2021-12-13 12:39:40 +00:00
# Find the nodejs download URL at https://nodejs.org/en/download/releases/
2023-01-01 12:09:30 +00:00
# Download the gz tarball because xz-utils is not installed by default
- curl -Lo node.tar.gz https://nodejs.org/download/release/v19.3.0/node-v19.3.0-linux-x64.tar.gz
2021-12-13 12:39:40 +00:00
# Find the checksum at https://nodejs.org/dist/v${VERSION}/SHASUMS256.txt.asc
- echo "b525028ae5bb71b5b32cb7fce903ccce261dbfef4c7dd0f3e0ffc27cd6fc0b3f node.tar.gz"
2022-09-15 07:40:52 +00:00
| sha256sum -c -
2023-01-01 12:09:30 +00:00
- tar xzf node.tar.gz --strip-components=1 -C /usr/local/
2021-12-13 12:39:40 +00:00
# If you use yarn
- npm -g install yarn
init:
- cd ../..
# For NPM
- npm cache clean
- npm install --build-from-source
# For Yarn
- yarn config set --home enableTelemetry 0
2021-12-13 12:39:40 +00:00
- yarn cache clean
- npm_config_build_from_source=true yarn --force
gradle:
- yes
scanignore:
2023-01-01 12:09:30 +00:00
# Add other build.gradle files here is local maven repo for react-native is used
# Binaries for react-native, JSC and Hermes can be ignored currently
2021-12-13 12:39:40 +00:00
- android/build.gradle
scandelete:
2023-01-01 12:09:30 +00:00
- node_modules
2021-12-13 12:39:40 +00:00
2023-01-01 12:09:30 +00:00
AutoUpdateMode: Version
2021-12-13 12:39:40 +00:00
UpdateCheckMode: Tags
2022-09-15 07:40:52 +00:00
CurrentVersion: '1.0'
2021-12-13 12:39:40 +00:00
CurrentVersionCode: 1