fdroiddata/templates/build-nodejs
2022-09-15 07:40:52 +00:00

39 lines
1.2 KiB
Text

# 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.
Builds:
- versionName: '1.0'
versionCode: 1
commit: '1.0'
subdir: android/app/
sudo:
- sysctl fs.inotify.max_user_watches=524288 || true
# Find the nodejs download URL at https://nodejs.org/en/download/releases/
- curl -Lo node.tar.xz https://nodejs.org/download/release/v16.17.0/node-v16.17.0-linux-x64.tar.xz
# Find the checksum at https://nodejs.org/dist/v${VERSION}/SHASUMS256.txt.asc
- echo "f0867d7a17a4d0df7dbb7df9ac3f9126c2b58f75450647146749ef296b31b49b node.tar.xz"
| sha256sum -c -
- tar xJf node.tar.xz --strip-components=1 -C /usr/local/
# If you use yarn
- npm -g install yarn
init:
- cd ../..
# For NPM
- npm cache clean
- npm install --build-from-source
# For Yarn
- yarn cache clean
- npm_config_build_from_source=true yarn --force
gradle:
- yes
scanignore:
- android/build.gradle
scandelete:
- node_modules/
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: '1.0'
CurrentVersionCode: 1