fdroiddata/templates/build-nodejs

39 lines
1.2 KiB
Text
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.
Builds:
- versionName: "1.0"
versionCode: 1
commit: "1.0"
subdir: android/app/
sudo:
- sysctl fs.inotify.max_user_watches=524288
# Find the nodejs download URL at https://nodejs.org/en/download/releases/
2022-09-14 13:03:40 +00:00
- curl -Lo node.tar.xz https://nodejs.org/download/release/v16.17.0/node-v16.17.0-linux-x64.tar.xz
2021-12-13 12:39:40 +00:00
# Find the checksum at https://nodejs.org/dist/v${VERSION}/SHASUMS256.txt.asc
2022-09-14 13:03:40 +00:00
- echo "f0867d7a17a4d0df7dbb7df9ac3f9126c2b58f75450647146749ef296b31b49b node.tar.xz" | sha256sum -c -
- tar xJf node.tar.xz --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 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