fdroiddata/templates/build-nodejs

40 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:
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/
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-15 07:40:52 +00:00
- echo "f0867d7a17a4d0df7dbb7df9ac3f9126c2b58f75450647146749ef296b31b49b node.tar.xz"
| sha256sum -c -
2022-09-14 13:03:40 +00:00
- 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
2022-09-15 07:40:52 +00:00
CurrentVersion: '1.0'
2021-12-13 12:39:40 +00:00
CurrentVersionCode: 1