Fixes to nodejsAndroid
This commit is contained in:
@@ -31,7 +31,7 @@ jobs:
|
||||
run: cd ../ && npm install
|
||||
|
||||
- name: Build android nodejs packages
|
||||
run: cd ../static/nodejs-android && npm install
|
||||
run: cd ../static/nodejsAndroid && npm install
|
||||
|
||||
- name: Build package
|
||||
run: cd ../ && npm run build
|
||||
|
||||
@@ -1,46 +1,46 @@
|
||||
name: Check Android
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
android-check:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./materialious/android
|
||||
android-check:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./materialious/android
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: latest
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: latest
|
||||
|
||||
- name: Install modules
|
||||
run: cd ../ && npm install
|
||||
- name: Install modules
|
||||
run: cd ../ && npm install
|
||||
|
||||
- name: Build android nodejs packages
|
||||
run: cd ../static/nodejs-android && npm install
|
||||
- name: Build android nodejs packages
|
||||
run: cd ../static/nodejsAndroid && npm install
|
||||
|
||||
- name: Build package
|
||||
run: cd ../ && npm run build
|
||||
- name: Build package
|
||||
run: cd ../ && npm run build
|
||||
|
||||
- name: Sync package
|
||||
run: cd ../ && npx cap sync
|
||||
- name: Sync package
|
||||
run: cd ../ && npx cap sync
|
||||
|
||||
- name: Setup JDK
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: "zulu"
|
||||
java-version: "21"
|
||||
cache: "gradle"
|
||||
- name: Setup JDK
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: "zulu"
|
||||
java-version: "21"
|
||||
cache: "gradle"
|
||||
|
||||
- name: Build App
|
||||
run: |
|
||||
bash gradlew assembleRelease
|
||||
bash gradlew bundleRelease
|
||||
- name: Build App
|
||||
run: |
|
||||
bash gradlew assembleRelease
|
||||
bash gradlew bundleRelease
|
||||
|
||||
+1
-1
@@ -26,6 +26,6 @@ Materialious desktop builds are handled through GitHub using [prod-desktop.yml](
|
||||
### Android Release
|
||||
Android builds are handled using the workflow [prod-android.yml](../.github/workflows/prod-android.yml).
|
||||
|
||||
- After running the standard `npm install` and `npm run build` commands, we install the modules located in [nodejs-android/](../materialious/static/nodejs-android/) for [Capacitor-NodeJS](https://github.com/hampoelz/Capacitor-NodeJS).
|
||||
- After running the standard `npm install` and `npm run build` commands, we install the modules located in [nodejsAndroid/](../materialious/static/nodejsAndroid/) for [Capacitor-NodeJS](https://github.com/hampoelz/Capacitor-NodeJS).
|
||||
- The `npx cap sync` command is used to synchronize with [Capacitor](https://capacitorjs.com).
|
||||
- The Android build is processed using [setup-java](https://github.com/actions/setup-java/tree/v3/), followed by signing the APK with [sign-android-release](https://github.com/ilharp/sign-android-release/tree/v1.0.4).
|
||||
|
||||
@@ -67,7 +67,7 @@ export default ts.config(
|
||||
'package-lock.json',
|
||||
'yarn.lock',
|
||||
// Ignore our nodejs android code
|
||||
'**/nodejs-android/*',
|
||||
'**/nodejsAndroid/*',
|
||||
// Ignore electron code from capacitorjs
|
||||
'**/electron/*',
|
||||
// Ignore build files
|
||||
|
||||
Reference in New Issue
Block a user