Skip to content

Commit

Permalink
chore: add update with OTA (#101)
Browse files Browse the repository at this point in the history
* chore: add update with OTA

* chore: ci
  • Loading branch information
tachibana-shin authored Nov 23, 2023
1 parent 4e5b9e7 commit 817e93e
Show file tree
Hide file tree
Showing 14 changed files with 437 additions and 121 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
- name: Build Quasar
run: pnpm build:android:ci

- name: Build zip update OTA
run: pnpm build:capgo

- name: Build Android App
uses: anime-vsub/android-build-action@1.2.1
with:
Expand Down Expand Up @@ -94,7 +97,9 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: apk-release.apk
path: ${{steps.sign_app.outputs.signedReleaseFile}}
path: |
{{steps.sign_app.outputs.signedReleaseFile}}
src-capacitor/git.shin.raiku_*.zip
- name: Conventional Changelog Action
uses: TriPSs/conventional-changelog-action@v3
Expand Down
65 changes: 15 additions & 50 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,8 @@
"editor.guides.bracketPairs": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": [
"source.fixAll.eslint"
],
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"vue"
],
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"],
"typescript.tsdk": "node_modules/typescript/lib",
"cSpell.words": [
"Chương",
Expand All @@ -26,35 +19,23 @@
"ionic.previewInEditor": true,
"vue-i18n.i18nPaths": "src/i18n",
"i18n-ally.keystyle": "flat",
"i18n-ally.localesPaths": [
"src/i18n",
"src/i18n/messages"
],
"i18n-ally.localesPaths": ["src/i18n", "src/i18n/messages"],
"i18n-ally.extract.ignoredByFiles": {
"src/components/BrtPlayer.vue": [
"Space",
"Space"
],
"src/pages/[_type-normal]/[value].vue": [
""
],
"src/components/BrtPlayer.vue": ["Space", "Space"],
"src/pages/[_type-normal]/[value].vue": [""],
"src/pages/phim/_season.vue": [
"${nameSeason} (${chaps[0].name} - ${\n chaps[chaps.length - 1].name\n })",
"${name} - ${currentMetaSeason.name} Tập ${currentMetaChap.name}(${seasonId}/${currentMetaChap.id})"
],
"src/pages/tai-khoan/index.vue": [
"bg-dark text-light-9"
],
"src/pages/tai-khoan/index.vue": ["bg-dark text-light-9"],
"src/pages/lich-chieu-phim.vue": [
"\n T{{ dayTextToNum(item.day) }}\n ",
"/{{ item.month }}"
],
"src/pages/news.vue": [
"•\n {{ dayjs(item.time).locale(\"vi\").fromNow() }}\n "
],
"src/pages/tai-khoan/edit-profile.vue": [
"bg-dark text-light-9"
],
"src/pages/tai-khoan/edit-profile.vue": ["bg-dark text-light-9"],
"src/layouts/MainLayout.vue": [
"mailto:ogmo2r3q@duck.com?subject=Phản hồi ứng dụng web AnimeVsub",
"bg-dark text-light-9",
Expand All @@ -68,12 +49,8 @@
"• {{ t('_maxPage-trang', [data?.maxPage]) }}\n ",
"• {{ t('_maxPage-trang', [data?.maxPage]) }}\n "
],
"src/apis/runs/ajax/rate.ts": [
"${token_name}=${token_value}"
],
"src/components/errors/cloudflare.vue": [
")\n "
],
"src/apis/runs/ajax/rate.ts": ["${token_name}=${token_value}"],
"src/components/errors/cloudflare.vue": [")\n "],
"src/components/errors/domain-strange.vue": [
"\n {{ extensionVersion ?? \""
],
Expand All @@ -83,27 +60,17 @@
"src/components/library/_components/EpControl.vue": [
"< data.pages.length\n ? downloading\n ? $t(\"dang-tai\")\n : $t(\"tam-dung\")\n : $t(\"finished\")\n }}"
],
"src/components/app/AppHeaderSearch.vue": [
"Slash"
],
"src/pages/tim-kiem.vue": [
"\nmeta:\n hiddenHeader: $lt.md\n"
],
"src/pages/index.vue": [
"%"
],
"src/pages/[...catchAll].vue": [
"\nname: not_found\n"
],
"src/components/app/AppHeaderSearch.vue": ["Slash"],
"src/pages/tim-kiem.vue": ["\nmeta:\n hiddenHeader: $lt.md\n"],
"src/pages/index.vue": ["%"],
"src/pages/[...catchAll].vue": ["\nname: not_found\n"],
"src/pages/truyen-tranh/[zlug]/index.vue": [
"\nmeta:\n hiddenFooter: true\n hiddenDrawer: true\n hiddenHeader: $lt.md\n"
],
"src/pages/truyen-tranh/[zlug]/[epName]/[epId].vue": [
"\nmeta:\n hiddenHeader: true\n hiddenDrawer: true\n hiddenFooter: true\n"
],
"src/components/PluginManagerDialog.vue": [
"install plugin"
],
"src/components/PluginManagerDialog.vue": ["install plugin"],
"uno.config.ts": [
"overflow-y-scroll flex-shrink-1 mt-2 text-#eee text-opacity-70"
]
Expand All @@ -116,9 +83,7 @@
],
"editor.tabCompletion": "on",
"diffEditor.codeLens": true,
"typescript.preferences.autoImportFileExcludePatterns": [
"vue-router"
],
"typescript.preferences.autoImportFileExcludePatterns": ["vue-router"],
"MutableAI.upsell": false,
"[ruby]": {
"editor.defaultFormatter": "mbessey.vscode-rufo"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ pnpm build:pwa
```

### To be on

Moved to https://github.com/orgs/manga-raiku/projects/2

### Customize the configuration
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"build:ios": "pnpm build -m capacitor -T ios",
"build:ios:ci": "cross-env TEST=true pnpm build:ios",
"build:npm": "pnpm --filter ./npm/* run build",
"build:capgo": "pnpm -C src-capacitor exec pnpx @capgo/cli bundle zip",
"typing": "vue-tsc --noEmit",
"ci": "pnpm format && pnpm lint --fix && pnpm typing && pnpm test:unit:ci",
"nx": "nx run-many -t",
Expand Down Expand Up @@ -102,9 +103,12 @@
},
"devDependencies": {
"@capacitor/app": "^5.0.6",
"@capacitor/browser": "^5.1.0",
"@capacitor/core": "^5.5.1",
"@capacitor/local-notifications": "^5.0.6",
"@capacitor/splash-screen": "^5.0.6",
"@capacitor/status-bar": "^5.0.6",
"@capgo/capacitor-updater": "^5.3.34",
"@iconify-json/ant-design": "^1.1.10",
"@iconify-json/carbon": "^1.1.21",
"@iconify-json/ep": "^1.1.12",
Expand Down
Loading

0 comments on commit 817e93e

Please sign in to comment.