@@ -44,10 +44,20 @@ if (isWeb) {
4444 files : [
4545 {
4646 name : "audio" ,
47- accept : [ "audio/*" , ".mp3" , ".wav" , ".flac" , ".m4a" , ".aif" , ".aiff" , ".ogg" , ".opus" ]
48- }
49- ]
50- }
47+ accept : [
48+ "audio/*" ,
49+ ".mp3" ,
50+ ".wav" ,
51+ ".flac" ,
52+ ".m4a" ,
53+ ".aif" ,
54+ ".aiff" ,
55+ ".ogg" ,
56+ ".opus" ,
57+ ] ,
58+ } ,
59+ ] ,
60+ } ,
5161 } ,
5262 file_handlers : [
5363 {
@@ -61,65 +71,65 @@ if (isWeb) {
6171 "audio/ogg" : [ ".ogg" ] ,
6272 "audio/opus" : [ ".opus" ] ,
6373 } ,
64- "icons" : [
65- {
66- "src" : "public/icon-any.png" ,
67- "sizes" : "1024x1024" ,
68- "type" : "image/png" ,
69- "purpose" : "any"
70- } ,
71- {
72- "src" : "public/icon-maskable.png" ,
73- "sizes" : "1280x1280" ,
74- "type" : "image/png" ,
75- "purpose" : "maskable"
76- }
77- ] ,
78- launch_type : "single-client" ,
7974 } ,
8075 ] ,
81- screenshots : [
76+ icons : [
8277 {
83- src : "./screenshots/MainUI .png" ,
84- sizes : "1854x926 " ,
78+ src : "public/icon-any .png" ,
79+ sizes : "1024x1024 " ,
8580 type : "image/png" ,
86- label : "Main Player UI " ,
81+ purpose : "any " ,
8782 } ,
8883 {
89- src : "./screenshots/CustomizedUI .png" ,
90- sizes : "1854x926 " ,
84+ src : "public/icon-maskable .png" ,
85+ sizes : "1280x1280 " ,
9186 type : "image/png" ,
92- label : "Customized with the Nebula theme and Phosphor icons" ,
93- } ,
94- {
95- src : "./screenshots/LyricsandVisualizer.png" ,
96- sizes : "1854x926" ,
97- type : "image/png" ,
98- label : "Lyrics and Visualizer View" ,
99- } ,
100- {
101- src : "./screenshots/MainUI-Mobile.png" ,
102- sizes : "624x927" ,
103- type : "image/png" ,
104- label : "Main Player UI on Mobile" ,
105- } ,
106- {
107- src : "./screenshots/CustomizedUI-Mobile.png" ,
108- sizes : "624x927" ,
109- type : "image/png" ,
110- label :
111- "Customized with the Nebula theme and Phosphor icons on Mobile" ,
112- } ,
113- {
114- src : "./screenshots/LyricsandVisualizer-Mobile.png" ,
115- sizes : "624x927" ,
116- type : "image/png" ,
117- label : "Lyrics and Visualizer View on Mobile" ,
87+ purpose : "maskable" ,
11888 } ,
11989 ] ,
90+ launch_type : "single-client" ,
12091 } ,
92+ screenshots : [
93+ {
94+ src : "./screenshots/MainUI.png" ,
95+ sizes : "1854x926" ,
96+ type : "image/png" ,
97+ label : "Main Player UI" ,
98+ } ,
99+ {
100+ src : "./screenshots/CustomizedUI.png" ,
101+ sizes : "1854x926" ,
102+ type : "image/png" ,
103+ label : "Customized with the Nebula theme and Phosphor icons" ,
104+ } ,
105+ {
106+ src : "./screenshots/LyricsandVisualizer.png" ,
107+ sizes : "1854x926" ,
108+ type : "image/png" ,
109+ label : "Lyrics and Visualizer View" ,
110+ } ,
111+ {
112+ src : "./screenshots/MainUI-Mobile.png" ,
113+ sizes : "624x927" ,
114+ type : "image/png" ,
115+ label : "Main Player UI on Mobile" ,
116+ } ,
117+ {
118+ src : "./screenshots/CustomizedUI-Mobile.png" ,
119+ sizes : "624x927" ,
120+ type : "image/png" ,
121+ label :
122+ "Customized with the Nebula theme and Phosphor icons on Mobile" ,
123+ } ,
124+ {
125+ src : "./screenshots/LyricsandVisualizer-Mobile.png" ,
126+ sizes : "624x927" ,
127+ type : "image/png" ,
128+ label : "Lyrics and Visualizer View on Mobile" ,
129+ } ,
130+ ] ,
121131 pwaAssets : {
122- image : "public/icon-1024 .png" ,
132+ image : "public/icon-any .png" ,
123133 preset : "minimal-2023" ,
124134 includeHtmlHeadLinks : true ,
125135 } ,
@@ -158,31 +168,31 @@ export default defineConfig({
158168 } ,
159169
160170 optimizeDeps : {
161- exclude : [ ' @flo-audio/libflo-audio' , ' @flo-audio/reflo' ]
171+ exclude : [ " @flo-audio/libflo-audio" , " @flo-audio/reflo" ] ,
162172 } ,
163173
164174 // Platform-specific server config
165175 server : isDesktop
166176 ? {
167- port : 1420 ,
168- strictPort : true ,
169- host : host || false ,
170- hmr : host
171- ? {
172- protocol : "ws" ,
173- host,
174- port : 1421 ,
175- }
176- : undefined ,
177- watch : {
178- // Tell vite to ignore watching `src-tauri`
179- ignored : [ "**/src-tauri/**" ] ,
180- } ,
181- }
177+ port : 1420 ,
178+ strictPort : true ,
179+ host : host || false ,
180+ hmr : host
181+ ? {
182+ protocol : "ws" ,
183+ host,
184+ port : 1421 ,
185+ }
186+ : undefined ,
187+ watch : {
188+ // Tell vite to ignore watching `src-tauri`
189+ ignored : [ "**/src-tauri/**" ] ,
190+ } ,
191+ }
182192 : {
183- open : true ,
184- allowedHosts : true ,
185- } ,
193+ open : true ,
194+ allowedHosts : true ,
195+ } ,
186196
187197 // Prevent vite from obscuring rust errors (desktop only)
188198 clearScreen : isDesktop ? false : undefined ,
0 commit comments