File tree Expand file tree Collapse file tree 4 files changed +34
-14
lines changed
Expand file tree Collapse file tree 4 files changed +34
-14
lines changed Original file line number Diff line number Diff line change @@ -4,34 +4,30 @@ import { computed, shallowRef } from 'vue';
44const props = withDefaults (
55 defineProps <{
66 href: string ;
7- name? : string ;
7+ name: string ;
88 type? : string ;
99 }>(),
1010 {
1111 type: ' application/vnd.android.package-archive' ,
1212 },
1313);
1414
15- const filename = computed (() => {
16- if (props .name ) return props .name ;
17- return props .href .split (' /' ).at (- 1 )! ;
18- });
19-
2015const loading = shallowRef (false );
2116const download = async () => {
2217 if (loading .value ) return ;
2318 loading .value = true ;
2419 import (' file-saver' );
20+ const filename = ` gkd-${props .name } ` ;
2521 try {
2622 const file = await fetch (props .href )
2723 .then ((r ) => r .arrayBuffer ())
2824 .then ((b ) => {
29- return new File ([b ], filename . value , {
25+ return new File ([b ], filename , {
3026 type: props .type ,
3127 });
3228 });
3329 const { saveAs } = await import (' file-saver' );
34- saveAs (file , filename . value );
30+ saveAs (file , filename );
3531 } finally {
3632 loading .value = false ;
3733 }
@@ -52,7 +48,7 @@ const download = async () => {
5248 'opacity-50': loading,
5349 }"
5450 >
55- {{ filename }}
51+ {{ name }}
5652 </span >
5753 <div
5854 v-if =" loading"
Original file line number Diff line number Diff line change @@ -47,3 +47,7 @@ img.VPImage.image-src {
4747.animate-hash-hint {
4848 animation : 500ms ease-in-out infinite alternate hash-hint;
4949}
50+
51+ .svg-icon {
52+ height : 1em ;
53+ }
Original file line number Diff line number Diff line change 44
55如您有更好的方案或想对现有方案进行补充, 请点击底部 ` 为此页提供修改建议 `
66
7+ ## 渠道区别 {#play-diff}
8+
9+ 目前有两个渠道在使用,它们可互相安装覆盖,但存在区别
10+
11+ | 渠道 | 下载方式 | 自更新逻辑 | [ 受限制的设置] ( ./#restriction ) | 无障碍工具声明 |
12+ | :--: | :-----------------------------------------------------------------------: | :-----------------: | :----------------------------: | :------------: |
13+ | gkd | [ 官网/GitHub] ( /guide/ ) | 弹窗更新(镜像加速) | 可能受限 | 有 |
14+ | play | [ Google Play] ( https://play.google.com/store/apps/details?id=li.songe.gkd ) | 无(必须Google Play) | 不会 | 无 |
15+
16+ 根据 [ Google Play 政策] ( https://support.google.com/googleplay/android-developer/answer/10964491?hl=zh-Hans ) ,必须以 ** 支持残障人士为主要用途** 才能使用 ** 无障碍工具声明**
17+
18+ 如果没有这个声明,系统会隔段时间显示通知([ discussions #744 ] ( https://github.com/orgs/gkd-kit/discussions/744 ) ),内容如下
19+
20+ ` 查看权限设置(GKD可以查看和控制您的屏幕。点按即可查看。) `
21+
22+ 如果你无法忍受这个通知,切换到 gkd 渠道即可
23+
724## 耗电说明 {#power}
825
926首先 GKD 默认情况下并不耗电,有的人以为关闭更新检测,关闭日志就能减少耗电,并不正确
128145- 提示 受限制的设置, 但是没有找到 允许受限制的设置 的选项
129146- 不提示 受限制的设置, 无障碍开启按钮可点击, 但点击后没有响应, 无法开启
130147
131- 可以通过以下方式解决, 可在 [ 开始使用 ] ( /guide/ ) 获取 APK 文件
148+ 可以通过以下方式解决, 可在 设置 - 关于 - 分享应用 获取 APK 文件
132149
133150- 使用系统信任的方式进行安装, 例如在系统文件管理中查看 APK 文件后点击安装, 是覆盖安装无需卸载
134151
Original file line number Diff line number Diff line change 44
55<ApkTable />
66
7- 或前往 [ Github Releases] ( https://github.com/gkd-kit/gkd/releases/latest ) 下载
8-
9- ::: details 浏览器无法下载?
10- 某些手机浏览器有自定义拦截导致下载失败, 建议使用 [ Via] ( https://viayoo.com ) 浏览器下载
7+ ::: details 手机浏览器下载失败?
8+ 某些手机浏览器存在自定义拦截会导致下载失败, 建议使用 [ Via] ( https://viayoo.com ) 浏览器下载
119:::
1210
11+ 其它下载方式
12+
13+ - [ Google Play] ( https://play.google.com/store/apps/details?id=li.songe.gkd )   ; [ 区别] ( ./faq.md#play-diff )
14+ - [ Github Releases] ( https://github.com/gkd-kit/gkd/releases/latest )
15+
1316下载完毕后, 在您的 Android 手机上安装并打开
1417
1518## 使用 {#usage}
You can’t perform that action at this time.
0 commit comments