Skip to content

Commit 3949c83

Browse files
committed
fix(custom): 修复app问题
1 parent ecbf5fd commit 3949c83

23 files changed

+109
-8
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
VITE_APP_TITLE = 'uniAppTemplate'
33

44
# APP ID
5-
VITE_UNI_APPID = ''
5+
VITE_UNI_APPID = '__UNI__FA51EBF'
66
# 微信小程序 APP ID
77
VITE_WX_APPID = 'wxb56964dd28204de0'
88

.hbuilderx/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"version" : "1.0",
3+
"configurations" : [
4+
{
5+
"openVueDevtools" : false,
6+
"playground" : "standard",
7+
"type" : "uni-app:app-android"
8+
},
9+
{
10+
"openVueDevtools" : false,
11+
"playground" : "custom",
12+
"type" : "uni-app:app-ios"
13+
},
14+
{
15+
"app-plus" :
16+
{
17+
"launchtype" : "local"
18+
},
19+
"type" : "uniCloud"
20+
}
21+
]
22+
}

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
入门简单、开发简单、接近原生,适用于了解或不熟悉uniapp的开发人员去快速使用uniapp开发小程序、H5
44

5+
## 平台兼容性
6+
7+
| H5 | IOS | 安卓 | 微信小程序 | 字节小程序 | 快手小程序 | 支付宝小程序 | 钉钉小程序 | 百度小程序 |
8+
| --- | --- | ---- | ---------- | ---------- | ---------- | ------------ | ---------- | ---------- |
9+
||||| | | | | |
10+
11+
## 环境
12+
13+
- node>=18
14+
- pnpm>=7.30
15+
- Vue Official>=2.1.10
16+
517
## 特色
618

719
- ⚡️[uni-app](https://github.com/dcloudio/uni-app), [Vue 3](https://github.com/vuejs/core), [Vite](https://github.com/vitejs/vite), [pnpm](https://pnpm.io/)

manifest.config.js

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ const { VITE_APP_TITLE, VITE_UNI_APPID, VITE_WX_APPID, VITE_APP_PUBLIC_BASE } =
1010
export default defineManifestConfig({
1111
name: VITE_APP_TITLE,
1212
appid: VITE_UNI_APPID,
13-
description: '',
13+
description: '模板app测试',
1414
versionName: '1.0.0',
15-
versionCode: '100',
15+
versionCode: '2025062101',
1616
transformPx: false,
1717
locale: 'zh-Hans',
1818
h5: {
@@ -64,7 +64,39 @@ export default defineManifestConfig({
6464
/* ios打包配置 */
6565
ios: {},
6666
/* SDK配置 */
67-
sdkConfigs: {}
67+
sdkConfigs: {},
68+
icons: {
69+
android: {
70+
hdpi: 'src/static/app/icons/72x72.png',
71+
xhdpi: 'src/static/app/icons/96x96.png',
72+
xxhdpi: 'src/static/app/icons/144x144.png',
73+
xxxhdpi: 'src/static/app/icons/192x192.png'
74+
},
75+
ios: {
76+
iphone: {
77+
'app@2x': 'src/static/app/icons/120x120.png',
78+
'app@3x': 'src/static/app/icons/180x180.png',
79+
'spotlight@2x': 'src/static/app/icons/80x80.png',
80+
'spotlight@3x': 'src/static/app/icons/120x120.png',
81+
'settings@2x': 'src/static/app/icons/58x58.png',
82+
'settings@3x': 'src/static/app/icons/87x87.png',
83+
'notification@2x': 'src/static/app/icons/40x40.png',
84+
'notification@3x': 'src/static/app/icons/60x60.png'
85+
},
86+
ipad: {
87+
app: 'src/static/app/icons/76x76.png',
88+
'app@2x': 'src/static/app/icons/152x152.png',
89+
'proapp@2x': 'src/static/app/icons/167x167.png',
90+
spotlight: 'src/static/app/icons/40x40.png',
91+
'spotlight@2x': 'src/static/app/icons/80x80.png',
92+
settings: 'src/static/app/icons/29x29.png',
93+
'settings@2x': 'src/static/app/icons/58x58.png',
94+
notification: 'src/static/app/icons/20x20.png',
95+
'notification@2x': 'src/static/app/icons/40x40.png'
96+
},
97+
appstore: 'src/static/app/icons/1024x1024.png'
98+
}
99+
}
68100
}
69101
},
70102
/* 快应用特有相关 */

src/androidPrivacy.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"prompt": "template"
3+
}

src/manifest.json

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "uniAppTemplate",
3-
"appid": "",
4-
"description": "",
3+
"appid": "__UNI__FA51EBF",
4+
"description": "模板app测试",
55
"versionName": "1.0.0",
6-
"versionCode": "100",
6+
"versionCode": "2025062101",
77
"transformPx": false,
88
"app-plus": {
99
"usingComponents": true,
@@ -43,7 +43,39 @@
4343
]
4444
},
4545
"ios": {},
46-
"sdkConfigs": {}
46+
"sdkConfigs": {},
47+
"icons": {
48+
"android": {
49+
"hdpi": "src/static/app/icons/72x72.png",
50+
"xhdpi": "src/static/app/icons/96x96.png",
51+
"xxhdpi": "src/static/app/icons/144x144.png",
52+
"xxxhdpi": "src/static/app/icons/192x192.png"
53+
},
54+
"ios": {
55+
"iphone": {
56+
"app@2x": "src/static/app/icons/120x120.png",
57+
"app@3x": "src/static/app/icons/180x180.png",
58+
"spotlight@2x": "src/static/app/icons/80x80.png",
59+
"spotlight@3x": "src/static/app/icons/120x120.png",
60+
"settings@2x": "src/static/app/icons/58x58.png",
61+
"settings@3x": "src/static/app/icons/87x87.png",
62+
"notification@2x": "src/static/app/icons/40x40.png",
63+
"notification@3x": "src/static/app/icons/60x60.png"
64+
},
65+
"ipad": {
66+
"app": "src/static/app/icons/76x76.png",
67+
"app@2x": "src/static/app/icons/152x152.png",
68+
"proapp@2x": "src/static/app/icons/167x167.png",
69+
"spotlight": "src/static/app/icons/40x40.png",
70+
"spotlight@2x": "src/static/app/icons/80x80.png",
71+
"settings": "src/static/app/icons/29x29.png",
72+
"settings@2x": "src/static/app/icons/58x58.png",
73+
"notification": "src/static/app/icons/20x20.png",
74+
"notification@2x": "src/static/app/icons/40x40.png"
75+
},
76+
"appstore": "src/static/app/icons/1024x1024.png"
77+
}
78+
}
4779
},
4880
"compatible": {
4981
"ignoreVersion": true

src/static/app/icons/1024x1024.png

90.3 KB
Loading

src/static/app/icons/120x120.png

12.3 KB
Loading

src/static/app/icons/144x144.png

16.1 KB
Loading

src/static/app/icons/152x152.png

17.3 KB
Loading

0 commit comments

Comments
 (0)