Skip to content

Commit 4e7bc0f

Browse files
authored
Merge branch 'Acode-Foundation:main' into ai-test
2 parents 5509eb2 + 64b3568 commit 4e7bc0f

47 files changed

Lines changed: 299 additions & 75 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.github/CODEOWNERS @Acode-Foundation
2+
3+
# workflows
4+
.github/workflows/nightly-build.yml @unschooledgamer
5+
.github/workflows/on-demand-preview-releases-PR.yml @unschooledgamer
6+
.github/workflows/community-release-notifier.yml @unschooledgamer

.github/workflows/nightly-build.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Implement to use environment secrets someday, At the moment GH Actions doesn't support those in reusable workflows (ref: https://github.com/actions/runner/issues/1490)
2+
# at least that's what I found.
13
name: Nightly Build
24

35
on:
@@ -28,6 +30,12 @@
2830
value: ${{ jobs.build.result }}
2931

3032
workflow_dispatch:
33+
inputs:
34+
skip_tagging_and_releases:
35+
required: false
36+
default: true
37+
type: boolean
38+
description: Skips Tagging & releases, since workflow_call isn't available for github.event_name, default is true
3139

3240
concurrency:
3341
# Allow only one workflow per any non-`main` branch.
@@ -51,7 +59,7 @@
5159
permissions:
5260
# contents write is needed to create Nightly Releases.
5361
contents: write
54-
issues: write
62+
# issues: write
5563
pull-requests: write
5664

5765
outputs:
@@ -89,13 +97,16 @@
8997
uses: actions/checkout@v4
9098
with:
9199
fetch-depth: 0 # Required for tags
100+
# persists credentials locally if tagging and releases are not skipped.
101+
persist-credentials: ${{ ! inputs.skip_tagging_and_releases }}
102+
ref: ${{ (inputs.is_PR && inputs.PR_NUMBER) && github.event.pull_request.head.sha || '' }}
92103

93104
- name: Set up Java 21
94105
uses: actions/setup-java@v4
95106
with:
96107
distribution: 'temurin'
97108
java-version: '21'
98-
cache: ${{ (github.ref == 'refs/heads/main' && 'gradle') || '' }}
109+
cache: ${{ (!(inputs.is_PR && inputs.PR_NUMBER) && github.ref == 'refs/heads/main' && 'gradle') || '' }}
99110

100111
- name: Set up Node.js
101112
uses: actions/setup-node@v4
@@ -149,11 +160,15 @@
149160
- name: Install Node.js Packages
150161
run: npm install
151162

163+
- name: Install Cordova CLI
164+
run: npm install -g cordova
165+
152166
- name: Run npm setup
153167
run: npm run setup
154168

155169
- name: Run npm build paid dev apk
156170
run: |
171+
node utils/storage_manager.mjs y
157172
npm run build paid dev apk
158173
echo "VERSION: $UPDATED_VERSION" >> $GITHUB_STEP_SUMMARY
159174
@@ -206,7 +221,8 @@
206221
platforms/android/app/build/outputs/apk/debug/app-debug.apk
207222
body: |
208223
Automated Nightly (pre-release) Releases for Today
209-
\n\n[Compare Changes](https://github.com/${{ github.repository }}/compare/${{ env.TAG_COMMIT }}...${{ github.sha }})
224+
225+
[Compare Changes](https://github.com/${{ github.repository }}/compare/${{ env.TAG_COMMIT }}...${{ github.sha }})
210226
211227
- name: Update Last Comment by bot (If ran in PR)
212228
if: inputs.is_PR

.github/workflows/on-demand-preview-releases-PR.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: On Demand Preview Releases for PR
22
# avoids paths like .md, and anything in .github folder
33
on:
4-
pull_request:
4+
pull_request_target:
55
paths-ignore:
66
- '!*.md'
77
# - '.github/**'
@@ -38,6 +38,9 @@ jobs:
3838
with:
3939
clean: false
4040
fetch-depth: 0
41+
persist-credentials: false
42+
# Checkout pull request HEAD commit instead of merge commit
43+
ref: ${{ github.event.pull_request.head.sha }}
4144

4245
- name: Remove Manually added PR Label
4346
if: |

package-lock.json

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,10 @@
3535
"cordova-sqlite-storage": {},
3636
"cordova-plugin-websocket": {},
3737
"cordova-plugin-buildinfo": {},
38-
"cordova-plugin-system": {},
3938
"cordova-plugin-browser": {},
40-
"com.foxdebug.acode.rk.exec.terminal": {},
41-
"com.foxdebug.acode.rk.exec.proot": {},
42-
"cordova-plugin-sftp": {}
39+
"cordova-plugin-sftp": {},
40+
"cordova-plugin-system": {},
41+
"com.foxdebug.acode.rk.exec.terminal": {}
4342
},
4443
"platforms": [
4544
"android"
@@ -64,7 +63,6 @@
6463
"@types/url-parse": "^1.4.11",
6564
"autoprefixer": "^10.4.21",
6665
"babel-loader": "^10.0.0",
67-
"com.foxdebug.acode.rk.exec.proot": "file:src/plugins/proot",
6866
"com.foxdebug.acode.rk.exec.terminal": "file:src/plugins/terminal",
6967
"cordova-android": "^14.0.1",
7068
"cordova-clipboard": "^1.3.0",

src/lang/ar-ye.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,5 +426,7 @@
426426
"reviews": "التقييمات",
427427
"overview": "نظرة عامة",
428428
"contributors": "المساهمون",
429-
"quicktools:hyphen": "إدراج شرطة"
429+
"quicktools:hyphen": "إدراج شرطة",
430+
"check for app updates": "Check for app updates",
431+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
430432
}

src/lang/be-by.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,5 +427,7 @@
427427
"reviews": "reviews",
428428
"overview": "Overview",
429429
"contributors": "Contributors",
430-
"quicktools:hyphen": "Insert hyphen symbol"
430+
"quicktools:hyphen": "Insert hyphen symbol",
431+
"check for app updates": "Check for app updates",
432+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
431433
}

src/lang/bn-bd.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,5 +426,7 @@
426426
"reviews": "রিভিউ",
427427
"overview": "সংক্ষিপ্ত বিবরণ",
428428
"contributors": "অবদানকারী",
429-
"quicktools:hyphen": "হাইফেন যুক্ত করুন"
429+
"quicktools:hyphen": "হাইফেন যুক্ত করুন",
430+
"check for app updates": "Check for app updates",
431+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
430432
}

src/lang/cs-cz.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,5 +426,7 @@
426426
"reviews": "reviews",
427427
"overview": "Overview",
428428
"contributors": "Contributors",
429-
"quicktools:hyphen": "Insert hyphen symbol"
429+
"quicktools:hyphen": "Insert hyphen symbol",
430+
"check for app updates": "Check for app updates",
431+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
430432
}

src/lang/de-de.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,5 +426,7 @@
426426
"reviews": "Bewertungen",
427427
"overview": "Überblick",
428428
"contributors": "Mitwirkende",
429-
"quicktools:hyphen": "Bindestrich-Symbol einfügen"
429+
"quicktools:hyphen": "Bindestrich-Symbol einfügen",
430+
"check for app updates": "Check for app updates",
431+
"prompt update check consent message": "Acode can check for new app updates when you're online. Enable update checks?"
430432
}

0 commit comments

Comments
 (0)