com.vishnuraghav.EnRecipes.yml 3.29 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Categories:
  - Sports & Health
License: GPL-3.0-only
AuthorName: Vishnu Raghav B
AuthorEmail: apps@vishnuraghav.com
AuthorWebSite: https://www.vishnuraghav.com
WebSite: https://enrecipes.vercel.app
SourceCode: https://github.com/vishnuraghavb/EnRecipes
IssueTracker: https://github.com/vishnuraghavb/EnRecipes/issues
Translation: https://hosted.weblate.org/engage/enrecipes
Changelog: https://github.com/vishnuraghavb/EnRecipes/releases
Donate: https://www.vishnuraghav.com/donate
Liberapay: vishnuraghavb
Bitcoin: bc1qjxwecmmajnl7qvyzwqqka60tfvcyj9qhy2lpq8

RepoType: git
Repo: https://github.com/vishnuraghavb/EnRecipes.git

Builds:
  - versionName: 2.0.0
    versionCode: 1
    commit: v2.0.0
    sudo:
      - apt-get update || apt-get update
      - apt-get install -y lib32z1
      - curl -Lo node.tar.gz https://nodejs.org/dist/v10.23.1/node-v10.23.1-linux-x64.tar.gz
      - echo "2a5f9d862468a4c677630923531e52339526cfd075cc6df30da4636782eb7bda node.tar.gz"
        | sha256sum -c -
      - tar xzf node.tar.gz
      - cp -a node-v10.23.1-linux-x64/. /usr/local/
      - npm -g install nativescript
linsui's avatar
linsui committed
32
      - sed -i 's|./gradlew|gradle|' /usr/local/lib/node_modules/nativescript/lib/services/android/gradle-command-service.js
33
    init:
linsui's avatar
linsui committed
34
35
      - $$SDK$$/tools/bin/sdkmanager "platforms;android-30" "build-tools;30.0.3" "emulator"
        > /dev/null
36
37
38
39
40
      - npm install --unsafe-perm
    output: platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk
    srclibs:
      - NativeScript_android-runtime@v7.0.1
      - NativeScript_NativeScript@8.0.8-core
linsui's avatar
linsui committed
41
    prebuild: sed -i -e '/android {/a ndkVersion = "20.1.5948944"' $$NativeScript_android-runtime$$/test-app/runtime/build.gradle
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
    scandelete:
      - node_modules
    build:
      - pushd $$NativeScript_NativeScript$$/packages/ui-mobile-base/android/widgets
      - gradle assembleRelease
      - popd
      - mkdir -p node_modules/@nativescript/core/platforms/android
      - cp $$NativeScript_NativeScript$$/packages/ui-mobile-base/android/widgets/build/outputs/aar/widgets-release.aar
        node_modules/@nativescript/core/platforms/android/widgets-release.aar
      - rm -rf $$NativeScript_NativeScript$$
      - pushd $$NativeScript_android-runtime$$
      - export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
      - cp $$SDK$$/build-tools/30.0.3/lib/dx.jar test-app/build-tools/android-metadata-generator/src/libs/dx.jar
      - gradle
      - popd
      - mkdir -p node_modules/@nativescript/android
      - rm -rf node_modules/@nativescript/android/framework
      - cp -r $$NativeScript_android-runtime$$/dist/framework node_modules/@nativescript/android
      - rm -rf $$NativeScript_android-runtime$$
      - ns prepare android
      - sed -i 's/\(signingConfig[[:space:]]\)signingConfigs\.release/\1null/' platforms/android/app/build.gradle
      - ns build android --release --env.uglify --key-store-path /dev/null --key-store-alias
        NULL --key-store-password NULL --key-store-alias-password NULL || (cd platforms/android/app/build/outputs/apk/release
      - echo "The following files were found:"
      - find -maxdepth 1 -type f -name "*.apk")
    ndk: r20b

69
AutoUpdateMode: Version
70
71
UpdateCheckMode: Tags
UpdateCheckData: app/resources/Android/app.gradle|versionCode\s(\d+)|.|versionName\s'(.+)'
72
73
CurrentVersion: 2.0.0
CurrentVersionCode: 1