summarylogtreecommitdiffstats
path: root/0002-Cleanup.patch
blob: cb4af5704747c15424b0395f0611e78094c24039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
From f9c1f1b68c22d8fb62f6222c1b45a093db7b46a8 Mon Sep 17 00:00:00 2001
From: Aviana Cruz <gwencroft@proton.me>
Date: Sun, 6 Nov 2022 13:33:14 +0800
Subject: [PATCH 2/3] Cleanup

Co-authored-by: zhaose <weiliang1503@outlook.com>
Signed-off-by: Aviana Cruz <gwencroft@proton.me>
---
 .../java/org/jackhuang/hmcl/Launcher.java     |   8 -
 .../java/org/jackhuang/hmcl/Metadata.java     |   1 -
 .../jackhuang/hmcl/setting/ConfigHolder.java  |   1 -
 .../org/jackhuang/hmcl/ui/Controllers.java    |  11 -
 .../org/jackhuang/hmcl/ui/CrashWindow.java    |   6 +-
 .../org/jackhuang/hmcl/ui/UpgradeDialog.java  |  77 ---
 .../jackhuang/hmcl/ui/main/FeedbackPage.java  | 471 ---------------
 .../hmcl/ui/main/LauncherSettingsPage.java    |  22 +-
 .../org/jackhuang/hmcl/ui/main/MainPage.java  | 117 +---
 .../org/jackhuang/hmcl/ui/main/RootPage.java  |  22 -
 .../jackhuang/hmcl/ui/main/SettingsPage.java  |  60 --
 .../jackhuang/hmcl/ui/main/SettingsView.java  |  58 --
 .../jackhuang/hmcl/ui/main/SponsorPage.java   | 166 ------
 .../multiplayer/LocalServerBroadcaster.java   | 153 -----
 .../ui/multiplayer/MultiplayerManager.java    | 553 ------------------
 .../hmcl/ui/multiplayer/MultiplayerPage.java  | 367 ------------
 .../ui/multiplayer/MultiplayerPageSkin.java   | 461 ---------------
 .../hmcl/upgrade/ExecutableHeaderHelper.java  | 123 ----
 .../hmcl/upgrade/HMCLDownloadTask.java        |  68 ---
 .../hmcl/upgrade/IntegrityChecker.java        | 134 -----
 .../jackhuang/hmcl/upgrade/RemoteVersion.java |  96 ---
 .../jackhuang/hmcl/upgrade/UpdateChannel.java |  42 --
 .../jackhuang/hmcl/upgrade/UpdateChecker.java | 125 ----
 .../jackhuang/hmcl/upgrade/UpdateHandler.java | 257 --------
 .../jackhuang/hmcl/util/CrashReporter.java    |   5 -
 25 files changed, 3 insertions(+), 3401 deletions(-)
 delete mode 100644 HMCL/src/main/java/org/jackhuang/hmcl/ui/UpgradeDialog.java
 delete mode 100644 HMCL/src/main/java/org/jackhuang/hmcl/ui/main/FeedbackPage.java
 delete mode 100644 HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SponsorPage.java
 delete mode 100644 HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/LocalServerBroadcaster.java
 delete mode 100644 HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerManager.java
 delete mode 100644 HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPage.java
 delete mode 100644 HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPageSkin.java
 delete mode 100644 HMCL/src/main/java/org/jackhuang/hmcl/upgrade/ExecutableHeaderHelper.java
 delete mode 100644 HMCL/src/main/java/org/jackhuang/hmcl/upgrade/HMCLDownloadTask.java
 delete mode 100644 HMCL/src/main/java/org/jackhuang/hmcl/upgrade/IntegrityChecker.java
 delete mode 100644 HMCL/src/main/java/org/jackhuang/hmcl/upgrade/RemoteVersion.java
 delete mode 100644 HMCL/src/main/java/org/jackhuang/hmcl/upgrade/UpdateChannel.java
 delete mode 100644 HMCL/src/main/java/org/jackhuang/hmcl/upgrade/UpdateChecker.java
 delete mode 100644 HMCL/src/main/java/org/jackhuang/hmcl/upgrade/UpdateHandler.java

diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/Launcher.java b/HMCL/src/main/java/org/jackhuang/hmcl/Launcher.java
index bcd49e1d..0d851357 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/Launcher.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/Launcher.java
@@ -30,8 +30,6 @@ import org.jackhuang.hmcl.task.AsyncTaskExecutor;
 import org.jackhuang.hmcl.task.Schedulers;
 import org.jackhuang.hmcl.ui.AwtUtils;
 import org.jackhuang.hmcl.ui.Controllers;
-import org.jackhuang.hmcl.upgrade.UpdateChecker;
-import org.jackhuang.hmcl.upgrade.UpdateHandler;
 import org.jackhuang.hmcl.util.CrashReporter;
 import org.jackhuang.hmcl.util.Lang;
 import org.jackhuang.hmcl.util.StringUtils;
@@ -133,8 +131,6 @@ public final class Launcher extends Application {
 
                 initIcon();
 
-                UpdateChecker.init();
-
                 primaryStage.show();
             });
         } catch (Throwable e) {
@@ -155,10 +151,6 @@ public final class Launcher extends Application {
     }
 
     public static void main(String[] args) {
-        if (UpdateHandler.processArguments(args)) {
-            return;
-        }
-
         Thread.setDefaultUncaughtExceptionHandler(CRASH_REPORTER);
         AsyncTaskExecutor.setUncaughtExceptionHandler(new CrashReporter(false));
 
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/Metadata.java b/HMCL/src/main/java/org/jackhuang/hmcl/Metadata.java
index f24a2d47..7f49a55f 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/Metadata.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/Metadata.java
@@ -35,7 +35,6 @@ public final class Metadata {
     public static final String TITLE = NAME + " " + VERSION;
     public static final String FULL_TITLE = FULL_NAME + " v" + VERSION;
 
-    public static final String UPDATE_URL = System.getProperty("hmcl.update_source.override", "https://hmcl.huangyuhui.net/api/update_link");
     public static final String CONTACT_URL = "https://github.com/huanghongxun/HMCL/issues";
     public static final String HELP_URL = "https://hmcl.huangyuhui.net/help";
     public static final String CHANGELOG_URL = "https://docs.hmcl.net/changelog/";
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/setting/ConfigHolder.java b/HMCL/src/main/java/org/jackhuang/hmcl/setting/ConfigHolder.java
index 17342bcd..f7572c81 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/setting/ConfigHolder.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/setting/ConfigHolder.java
@@ -169,7 +169,6 @@ public final class ConfigHolder {
                     LOG.info("Config is empty");
                 } else {
                     Map<?, ?> raw = new Gson().fromJson(content, Map.class);
-                    ConfigUpgrader.upgradeConfig(deserialized, raw);
                     return deserialized;
                 }
             } catch (JsonParseException e) {
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/Controllers.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/Controllers.java
index ba598ac5..47330c98 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/Controllers.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/Controllers.java
@@ -45,7 +45,6 @@ import org.jackhuang.hmcl.ui.download.DownloadPage;
 import org.jackhuang.hmcl.ui.download.ModpackInstallWizardProvider;
 import org.jackhuang.hmcl.ui.main.LauncherSettingsPage;
 import org.jackhuang.hmcl.ui.main.RootPage;
-import org.jackhuang.hmcl.ui.multiplayer.MultiplayerPage;
 import org.jackhuang.hmcl.ui.versions.GameListPage;
 import org.jackhuang.hmcl.ui.versions.VersionPage;
 import org.jackhuang.hmcl.util.FutureCallback;
@@ -93,7 +92,6 @@ public final class Controllers {
         accountListPage.authServersProperty().bindContentBidirectional(config().getAuthlibInjectorServers());
         return accountListPage;
     });
-    private static Lazy<MultiplayerPage> multiplayerPage = new Lazy<>(MultiplayerPage::new);
     private static Lazy<LauncherSettingsPage> settingsPage = new Lazy<>(LauncherSettingsPage::new);
 
     private Controllers() {
@@ -122,11 +120,6 @@ public final class Controllers {
         return rootPage.get();
     }
 
-    // FXThread
-    public static MultiplayerPage getMultiplayerPage() {
-        return multiplayerPage.get();
-    }
-
     // FXThread
     public static LauncherSettingsPage getSettingsPage() {
         return settingsPage.get();
@@ -305,10 +298,6 @@ public final class Controllers {
 
     public static void onHyperlinkAction(String href) {
         if (href.startsWith("hmcl://")) {
-            if ("hmcl://settings/feedback".equals(href)) {
-                Controllers.getSettingsPage().showFeedback();
-                Controllers.navigate(Controllers.getSettingsPage());
-            }
         } else {
             FXUtils.openLink(href);
         }
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/CrashWindow.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/CrashWindow.java
index 46ce19ab..daafd6f6 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/CrashWindow.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/CrashWindow.java
@@ -27,7 +27,6 @@ import javafx.scene.layout.HBox;
 import javafx.scene.layout.StackPane;
 import javafx.stage.Stage;
 import org.jackhuang.hmcl.Metadata;
-import org.jackhuang.hmcl.upgrade.UpdateChecker;
 
 import static org.jackhuang.hmcl.ui.FXUtils.newImage;
 import static org.jackhuang.hmcl.util.i18n.I18n.i18n;
@@ -39,10 +38,7 @@ public class CrashWindow extends Stage {
 
     public CrashWindow(String text) {
         Label lblCrash = new Label();
-        if (UpdateChecker.isOutdated())
-            lblCrash.setText(i18n("launcher.crash_out_dated"));
-        else
-            lblCrash.setText(i18n("launcher.crash"));
+        lblCrash.setText(i18n("launcher.crash"));
         lblCrash.setWrapText(true);
 
         TextArea textArea = new TextArea();
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/UpgradeDialog.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/UpgradeDialog.java
deleted file mode 100644
index 0063690c..00000000
--- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/UpgradeDialog.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * Hello Minecraft! Launcher
- * Copyright (C) 2021  huangyuhui <huanghongxun2008@126.com> and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package org.jackhuang.hmcl.ui;
-
-import com.jfoenix.controls.JFXButton;
-import com.jfoenix.controls.JFXDialogLayout;
-import javafx.concurrent.Worker;
-import javafx.scene.control.Label;
-import javafx.scene.web.WebEngine;
-import javafx.scene.web.WebView;
-import org.jackhuang.hmcl.Metadata;
-import org.jackhuang.hmcl.ui.construct.DialogCloseEvent;
-import org.jackhuang.hmcl.upgrade.RemoteVersion;
-
-import java.util.logging.Level;
-
-import static org.jackhuang.hmcl.Metadata.CHANGELOG_URL;
-import static org.jackhuang.hmcl.ui.FXUtils.onEscPressed;
-import static org.jackhuang.hmcl.util.Logging.LOG;
-import static org.jackhuang.hmcl.util.i18n.I18n.i18n;
-
-public class UpgradeDialog extends JFXDialogLayout {
-    public UpgradeDialog(RemoteVersion remoteVersion, Runnable updateRunnable) {
-        {
-            setHeading(new Label(i18n("update.changelog")));
-        }
-
-        {
-            String url = CHANGELOG_URL + remoteVersion.getChannel().channelName + ".html";
-            try {
-                WebView webView = new WebView();
-                webView.getEngine().setUserDataDirectory(Metadata.HMCL_DIRECTORY.toFile());
-                WebEngine engine = webView.getEngine();
-                engine.load(url);
-                engine.getLoadWorker().stateProperty().addListener((observable, oldValue, newValue) -> {
-                    if (newValue == Worker.State.FAILED) {
-                        LOG.warning("Failed to load update log, trying to open it in browser");
-                        FXUtils.openLink(url);
-                        setBody();
-                    }
-                });
-                setBody(webView);
-            } catch (NoClassDefFoundError | UnsatisfiedLinkError e) {
-                LOG.log(Level.WARNING, "WebView is missing or initialization failed", e);
-                FXUtils.openLink(url);
-            }
-        }
-
-        {
-            JFXButton updateButton = new JFXButton(i18n("update.accept"));
-            updateButton.getStyleClass().add("dialog-accept");
-            updateButton.setOnMouseClicked(e -> updateRunnable.run());
-
-            JFXButton cancelButton = new JFXButton(i18n("button.cancel"));
-            cancelButton.getStyleClass().add("dialog-cancel");
-            cancelButton.setOnMouseClicked(e -> fireEvent(new DialogCloseEvent()));
-
-            setActions(updateButton, cancelButton);
-            onEscPressed(this, cancelButton::fire);
-        }
-    }
-}
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/FeedbackPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/FeedbackPage.java
deleted file mode 100644
index f67736d5..00000000
--- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/FeedbackPage.java
+++ /dev/null
@@ -1,471 +0,0 @@
-/*
- * Hello Minecraft! Launcher
- * Copyright (C) 2021  huangyuhui <huanghongxun2008@126.com> and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package org.jackhuang.hmcl.ui.main;
-
-import com.google.gson.JsonParseException;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.reflect.TypeToken;
-import com.jfoenix.controls.*;
-import javafx.beans.binding.Bindings;
-import javafx.beans.property.BooleanProperty;
-import javafx.beans.property.SimpleBooleanProperty;
-import javafx.collections.FXCollections;
-import javafx.collections.ObservableList;
-import javafx.geometry.Insets;
-import javafx.geometry.Pos;
-import javafx.scene.control.Label;
-import javafx.scene.layout.*;
-import org.jackhuang.hmcl.Metadata;
-import org.jackhuang.hmcl.game.OAuthServer;
-import org.jackhuang.hmcl.setting.Accounts;
-import org.jackhuang.hmcl.setting.HMCLAccounts;
-import org.jackhuang.hmcl.setting.Theme;
-import org.jackhuang.hmcl.task.Schedulers;
-import org.jackhuang.hmcl.task.Task;
-import org.jackhuang.hmcl.ui.Controllers;
-import org.jackhuang.hmcl.ui.FXUtils;
-import org.jackhuang.hmcl.ui.SVG;
-import org.jackhuang.hmcl.ui.construct.*;
-import org.jackhuang.hmcl.util.StringUtils;
-import org.jackhuang.hmcl.util.io.HttpRequest;
-import org.jackhuang.hmcl.util.io.NetworkUtils;
-import org.jackhuang.hmcl.util.io.ResponseCodeException;
-import org.jackhuang.hmcl.util.javafx.BindingMapping;
-
-import java.io.IOException;
-import java.net.HttpURLConnection;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-
-import static org.jackhuang.hmcl.ui.FXUtils.onEscPressed;
-import static org.jackhuang.hmcl.ui.FXUtils.stringConverter;
-import static org.jackhuang.hmcl.util.Lang.mapOf;
-import static org.jackhuang.hmcl.util.Pair.pair;
-import static org.jackhuang.hmcl.util.i18n.I18n.i18n;
-
-public class FeedbackPage extends VBox implements PageAware {
-    private final ObservableList<FeedbackResponse> feedbacks = FXCollections.observableArrayList();
-    private final SpinnerPane spinnerPane = new SpinnerPane();
-
-    public FeedbackPage() {
-        setSpacing(10);
-        setPadding(new Insets(10));
-
-        {
-            HBox loginPane = new HBox(16);
-            loginPane.setAlignment(Pos.CENTER_LEFT);
-            loginPane.getStyleClass().add("card");
-
-            TwoLineListItem accountInfo = new TwoLineListItem();
-            HBox.setHgrow(accountInfo, Priority.ALWAYS);
-            accountInfo.titleProperty().bind(BindingMapping.of(HMCLAccounts.accountProperty())
-                    .map(account -> account == null ? i18n("account.not_logged_in") : account.getNickname()));
-            accountInfo.subtitleProperty().bind(BindingMapping.of(HMCLAccounts.accountProperty())
-                    .map(account -> account == null ? i18n("account.not_logged_in") : account.getEmail()));
-
-            JFXButton logButton = new JFXButton();
-            logButton.textProperty().bind(BindingMapping.of(HMCLAccounts.accountProperty())
-                    .map(account -> account == null ? i18n("account.login") : i18n("account.logout")));
-            logButton.setOnAction(e -> log());
-
-            loginPane.getChildren().setAll(accountInfo, logButton);
-            getChildren().add(loginPane);
-        }
-
-        {
-            HBox searchPane = new HBox(8);
-            searchPane.getStyleClass().add("card");
-            getChildren().add(searchPane);
-
-            JFXTextField searchField = new JFXTextField();
-            searchField.setOnAction(e -> search(searchField.getText(), "time", true));
-            HBox.setHgrow(searchField, Priority.ALWAYS);
-            searchField.setPromptText(i18n("search"));
-
-            JFXButton searchButton = new JFXButton();
-            searchButton.getStyleClass().add("toggle-icon4");
-            searchButton.setGraphic(SVG.magnify(Theme.blackFillBinding(), -1, -1));
-            searchButton.setOnAction(e -> search(searchField.getText(), "time", true));
-
-            JFXButton addButton = new JFXButton();
-            addButton.getStyleClass().add("toggle-icon4");
-            addButton.setGraphic(SVG.plus(Theme.blackFillBinding(), -1, -1));
-            addButton.setOnAction(e -> addFeedback());
-
-            searchPane.getChildren().setAll(searchField, searchButton, addButton);
-        }
-
-        {
-            spinnerPane.getStyleClass().add("card");
-            VBox.setVgrow(spinnerPane, Priority.ALWAYS);
-            JFXListView<FeedbackResponse> listView = new JFXListView<>();
-            spinnerPane.setContent(listView);
-            Bindings.bindContent(listView.getItems(), feedbacks);
-            listView.setCellFactory(x -> new MDListCell<FeedbackResponse>(listView) {
-                private final TwoLineListItem content = new TwoLineListItem();
-                private final JFXButton likeButton = new JFXButton();
-                private final JFXButton unlikeButton = new JFXButton();
-                private final HBox container;
-
-                {
-                    container = new HBox(8);
-                    container.setPickOnBounds(false);
-                    container.setAlignment(Pos.CENTER_LEFT);
-                    HBox.setHgrow(content, Priority.ALWAYS);
-                    content.setMouseTransparent(false);
-                    setSelectable();
-
-                    likeButton.getStyleClass().add("toggle-icon4");
-                    likeButton.setGraphic(FXUtils.limitingSize(SVG.thumbUpOutline(Theme.blackFillBinding(), 24, 24), 24, 24));
-
-                    unlikeButton.getStyleClass().add("toggle-icon4");
-                    unlikeButton.setGraphic(FXUtils.limitingSize(SVG.thumbDownOutline(Theme.blackFillBinding(), 24, 24), 24, 24));
-
-                    container.getChildren().setAll(content, likeButton, unlikeButton);
-
-                    StackPane.setMargin(container, new Insets(10, 16, 10, 16));
-                    getContainer().getChildren().setAll(container);
-                }
-
-                @Override
-                protected void updateControl(FeedbackResponse feedback, boolean empty) {
-                    if (empty) return;
-                    content.setTitle(feedback.getTitle());
-                    content.setSubtitle(feedback.getAuthor());
-                    content.getTags().setAll(
-                            "#" + feedback.getId(),
-                            i18n("feedback.state." + feedback.getState().name().toLowerCase(Locale.US)),
-                            i18n("feedback.type." + feedback.getType().name().toLowerCase(Locale.US)));
-                    content.setOnMouseClicked(e -> {
-                        getFeedback(feedback.getId())
-                                .thenAcceptAsync(Schedulers.javafx(), f -> {
-                                    Controllers.dialog(new ViewFeedbackDialog(f));
-                                })
-                                .start();
-                    });
-                }
-            });
-
-            getChildren().add(spinnerPane);
-        }
-    }
-
-    @Override
-    public void onPageShown() {
-        search("", "time", false);
-    }
-
-    private void search(String keyword, String order, boolean showAll) {
-        HMCLAccounts.HMCLAccount account = HMCLAccounts.getAccount();
-        Task.supplyAsync(() -> {
-            Map<String, String> query = mapOf(
-                    pair("keyword", keyword),
-                    pair("order", order)
-            );
-            if (showAll) {
-                query.put("showAll", "1");
-            }
-            HttpRequest req = HttpRequest.GET(NetworkUtils.withQuery("https://hmcl.huangyuhui.net/api/feedback", query));
-            if (account != null) {
-                req.authorization("Bearer", HMCLAccounts.getAccount().getIdToken())
-                        .header("Authorization-Provider", HMCLAccounts.getAccount().getProvider());
-            }
-            return req.<List<FeedbackResponse>>getJson(new TypeToken<List<FeedbackResponse>>(){}.getType());
-        }).whenComplete(Schedulers.javafx(), (result, exception) -> {
-            spinnerPane.hideSpinner();
-            if (exception != null) {
-                if (exception instanceof ResponseCodeException) {
-                    int responseCode = ((ResponseCodeException) exception).getResponseCode();
-                    if (responseCode == HttpURLConnection.HTTP_UNAUTHORIZED) {
-                        spinnerPane.setFailedReason(i18n("feedback.failed.permission"));
-                        return;
-                    } else if (responseCode == 429) {
-                        spinnerPane.setFailedReason(i18n("feedback.failed.too_frequently"));
-                        return;
-                    }
-                }
-                spinnerPane.setFailedReason(i18n("feedback.failed"));
-            } else {
-                feedbacks.setAll(result);
-            }
-        }).start();
-    }
-
-    private Task<FeedbackResponse> getFeedback(int id) {
-        return Task.supplyAsync(() -> HttpRequest.GET("https://hmcl.huangyuhui.net/api/feedback/" + id).getJson(FeedbackResponse.class));
-    }
-
-    private void log() {
-        if (HMCLAccounts.getAccount() == null) {
-            // login
-            Controllers.dialog(new LoginDialog());
-        } else {
-            // logout
-            HMCLAccounts.setAccount(null);
-        }
-    }
-
-    private void addFeedback() {
-        if (HMCLAccounts.getAccount() == null) {
-            Controllers.dialog(i18n("feedback.add.login"));
-            return;
-        }
-
-        Controllers.dialog(new AddFeedbackDialog());
-    }
-
-    private class LoginDialog extends JFXDialogLayout {
-        private final SpinnerPane spinnerPane = new SpinnerPane();
-        private final Label errorLabel = new Label();
-        private final BooleanProperty logging = new SimpleBooleanProperty();
-
-        public LoginDialog() {
-            setHeading(new Label(i18n("feedback.login")));
-
-            VBox vbox = new VBox(8);
-            setBody(vbox);
-            HintPane hintPane = new HintPane(MessageDialogPane.MessageType.INFO);
-            hintPane.textProperty().bind(BindingMapping.of(logging).map(logging ->
-                    logging
-                            ? i18n("account.hmcl.hint")
-                            : i18n("account.hmcl.hint")));
-            hintPane.setOnMouseClicked(e -> {
-                if (logging.get() && OAuthServer.lastlyOpenedURL != null) {
-                    FXUtils.copyText(OAuthServer.lastlyOpenedURL);
-                }
-            });
-            vbox.getChildren().setAll(hintPane);
-
-            JFXButton loginButton = new JFXButton();
-            spinnerPane.setContent(loginButton);
-            loginButton.setText(i18n("account.login"));
-            loginButton.setOnAction(e -> login());
-
-            JFXButton cancelButton = new JFXButton();
-            cancelButton.setText(i18n("button.cancel"));
-            cancelButton.setOnAction(e -> fireEvent(new DialogCloseEvent()));
-            onEscPressed(this, cancelButton::fire);
-
-            setActions(errorLabel, spinnerPane, cancelButton);
-        }
-
-        private void login() {
-            spinnerPane.showSpinner();
-            errorLabel.setText("");
-            logging.set(true);
-
-            HMCLAccounts.login().whenComplete(Schedulers.javafx(), (result, exception) -> {
-                logging.set(false);
-                if (exception != null) {
-                    if (exception instanceof IOException) {
-                        errorLabel.setText(i18n("account.failed.connect_authentication_server"));
-                    } else if (exception instanceof JsonParseException) {
-                        errorLabel.setText(i18n("account.failed.server_response_malformed"));
-                    } else {
-                        errorLabel.setText(Accounts.localizeErrorMessage(exception));
-                    }
-                } else {
-                    fireEvent(new DialogCloseEvent());
-                }
-            }).start();
-        }
-    }
-
-    private static class AddFeedbackDialog extends DialogPane {
-
-        JFXTextField titleField = new JFXTextField();
-        JFXComboBox<FeedbackType> comboBox = new JFXComboBox<>();
-        JFXTextArea contentArea = new JFXTextArea();
-
-        public AddFeedbackDialog() {
-            setTitle(i18n("feedback.add"));
-
-            GridPane body = new GridPane();
-            body.setVgap(8);
-            body.setHgap(8);
-
-            HintPane searchHintPane = new HintPane(MessageDialogPane.MessageType.WARNING);
-            GridPane.setColumnSpan(searchHintPane, 2);
-            searchHintPane.setText(i18n("feedback.add.hint.search_before_add"));
-            body.addRow(0, searchHintPane);
-
-            HintPane titleHintPane = new HintPane(MessageDialogPane.MessageType.INFO);
-            GridPane.setColumnSpan(titleHintPane, 2);
-            titleHintPane.setText(i18n("feedback.add.hint.title"));
-            body.addRow(1, titleHintPane);
-
-            titleField.setValidators(new RequiredValidator());
-            body.addRow(2, new Label(i18n("feedback.title")), titleField);
-
-            comboBox.setMaxWidth(-1);
-            comboBox.getItems().setAll(FeedbackType.values());
-            comboBox.getSelectionModel().select(0);
-            comboBox.setConverter(stringConverter(e -> i18n("feedback.type." + e.name().toLowerCase())));
-            body.addRow(3, new Label(i18n("feedback.type")), comboBox);
-
-            Label contentLabel = new Label(i18n("feedback.content"));
-            GridPane.setColumnSpan(contentLabel, 2);
-            body.addRow(4, contentLabel);
-
-            contentArea.setValidators(new RequiredValidator());
-            contentArea.setPromptText(i18n("feedback.add.hint.content"));
-            GridPane.setColumnSpan(contentArea, 2);
-            body.addRow(5, contentArea);
-
-            validProperty().bind(Bindings.createBooleanBinding(() -> {
-                return titleField.validate() && contentArea.validate();
-            }, titleField.textProperty(), contentArea.textProperty()));
-
-            setBody(body);
-        }
-
-        @Override
-        protected void onAccept() {
-            setLoading();
-
-            addFeedback(titleField.getText(), comboBox.getValue(), contentArea.getText())
-                    .whenComplete(Schedulers.javafx(), exception -> {
-                        if (exception != null) {
-                            onFailure(exception.getLocalizedMessage());
-                        } else {
-                            onSuccess();
-                        }
-                    })
-                    .start();
-        }
-
-        private Task<?> addFeedback(String title, FeedbackType feedbackType, String content) {
-            return Task.runAsync(() -> {
-                HttpRequest.POST("https://hmcl.huangyuhui.net/api/feedback")
-                        .json(mapOf(
-                                pair("title", title),
-                                pair("content", content),
-                                pair("type", feedbackType.name().toLowerCase(Locale.ROOT)),
-                                pair("launcher_version", Metadata.VERSION)
-                        ))
-                        .authorization("Bearer", HMCLAccounts.getAccount().getIdToken())
-                        .header("Authorization-Provider", HMCLAccounts.getAccount().getProvider())
-                        .getString();
-            });
-        }
-    }
-
-    private static class ViewFeedbackDialog extends JFXDialogLayout {
-
-        public ViewFeedbackDialog(FeedbackResponse feedback) {
-            BorderPane heading = new BorderPane();
-            TwoLineListItem left = new TwoLineListItem();
-            heading.setLeft(left);
-            left.setTitle(feedback.getTitle());
-            left.setSubtitle(feedback.getAuthor());
-            left.getTags().add("#" + feedback.getId());
-            left.getTags().add(i18n("feedback.state." + feedback.getState().name().toLowerCase(Locale.US)));
-            left.getTags().add(feedback.getLauncherVersion());
-            left.getTags().add(i18n("feedback.type." + feedback.getType().name().toLowerCase()));
-
-            setHeading(heading);
-
-            Label content = new Label(feedback.getContent());
-            content.setWrapText(true);
-
-            TwoLineListItem response = new TwoLineListItem();
-            response.getStyleClass().setAll("two-line-item-second-large");
-            response.setTitle(i18n("feedback.response"));
-            response.setSubtitle(StringUtils.isBlank(feedback.getReason())
-                    ? i18n("feedback.response.empty")
-                    : feedback.getReason());
-
-            VBox body = new VBox(content, response);
-            body.setSpacing(8);
-            setBody(body);
-
-            JFXButton okButton = new JFXButton();
-            okButton.setText(i18n("button.ok"));
-            okButton.setOnAction(e -> fireEvent(new DialogCloseEvent()));
-
-            setActions(okButton);
-        }
-    }
-
-    private static class FeedbackResponse {
-        private final int id;
-        private final String title;
-        private final String content;
-        private final String author;
-        @SerializedName("launcher_version")
-        private final String launcherVersion;
-        private final FeedbackType type;
-        private final FeedbackState state;
-        private final String reason;
-
-        public FeedbackResponse(int id, String title, String content, String author, String launcherVersion, FeedbackType type, FeedbackState state, String reason) {
-            this.id = id;
-            this.title = title;
-            this.content = content;
-            this.author = author;
-            this.launcherVersion = launcherVersion;
-            this.type = type;
-            this.state = state;
-            this.reason = reason;
-        }
-
-        public int getId() {
-            return id;
-        }
-
-        public String getTitle() {
-            return title;
-        }
-
-        public String getContent() {
-            return content;
-        }
-
-        public String getAuthor() {
-            return author;
-        }
-
-        public String getLauncherVersion() {
-            return launcherVersion;
-        }
-
-        public FeedbackType getType() {
-            return type;
-        }
-
-        public FeedbackState getState() {
-            return state;
-        }
-
-        public String getReason() {
-            return reason;
-        }
-    }
-
-    private enum FeedbackType {
-        FEATURE,
-        BUG
-    }
-
-    private enum FeedbackState {
-        OPEN,
-        REJECTED,
-        ACCEPTED
-    }
-}
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/LauncherSettingsPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/LauncherSettingsPage.java
index d6c11595..d7586282 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/LauncherSettingsPage.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/LauncherSettingsPage.java
@@ -44,8 +44,6 @@ public class LauncherSettingsPage extends DecoratorAnimatedPage implements Decor
     private final TabHeader.Tab<DownloadSettingsPage> downloadTab = new TabHeader.Tab<>("downloadSettingsPage");
     private final TabHeader.Tab<HelpPage> helpTab = new TabHeader.Tab<>("helpPage");
     private final TabHeader.Tab<AboutPage> aboutTab = new TabHeader.Tab<>("aboutPage");
-    private final TabHeader.Tab<FeedbackPage> feedbackTab = new TabHeader.Tab<>("feedbackPage");
-    private final TabHeader.Tab<SponsorPage> sponsorTab = new TabHeader.Tab<>("sponsorPage");
     private final TransitionPane transitionPane = new TransitionPane();
 
     public LauncherSettingsPage() {
@@ -54,10 +52,8 @@ public class LauncherSettingsPage extends DecoratorAnimatedPage implements Decor
         personalizationTab.setNodeSupplier(PersonalizationPage::new);
         downloadTab.setNodeSupplier(DownloadSettingsPage::new);
         helpTab.setNodeSupplier(HelpPage::new);
-        feedbackTab.setNodeSupplier(FeedbackPage::new);
-        sponsorTab.setNodeSupplier(SponsorPage::new);
         aboutTab.setNodeSupplier(AboutPage::new);
-        tab = new TabHeader(gameTab, settingsTab, personalizationTab, downloadTab, helpTab, feedbackTab, sponsorTab, aboutTab);
+        tab = new TabHeader(gameTab, settingsTab, personalizationTab, downloadTab, helpTab, aboutTab);
 
         tab.select(gameTab);
         gameTab.initializeIfNeeded();
@@ -100,18 +96,6 @@ public class LauncherSettingsPage extends DecoratorAnimatedPage implements Decor
                         helpItem.activeProperty().bind(tab.getSelectionModel().selectedItemProperty().isEqualTo(helpTab));
                         helpItem.setOnAction(e -> tab.select(helpTab));
                     })
-                    .addNavigationDrawerItem(feedbackItem -> {
-                        feedbackItem.setTitle(i18n("feedback"));
-                        feedbackItem.setLeftGraphic(wrap(SVG::messageAlertOutline));
-                        feedbackItem.activeProperty().bind(tab.getSelectionModel().selectedItemProperty().isEqualTo(feedbackTab));
-                        feedbackItem.setOnAction(e -> tab.select(feedbackTab));
-                    })
-                    .addNavigationDrawerItem(sponsorItem -> {
-                        sponsorItem.setTitle(i18n("sponsor"));
-                        sponsorItem.setLeftGraphic(wrap(SVG::handHearOutline));
-                        sponsorItem.activeProperty().bind(tab.getSelectionModel().selectedItemProperty().isEqualTo(sponsorTab));
-                        sponsorItem.setOnAction(e -> tab.select(sponsorTab));
-                    })
                     .addNavigationDrawerItem(aboutItem -> {
                         aboutItem.setTitle(i18n("about"));
                         aboutItem.setLeftGraphic(wrap(SVG::informationOutline));
@@ -140,10 +124,6 @@ public class LauncherSettingsPage extends DecoratorAnimatedPage implements Decor
         tab.select(gameTab);
     }
 
-    public void showFeedback() {
-        tab.select(feedbackTab);
-    }
-
     @Override
     public ReadOnlyObjectProperty<State> stateProperty() {
         return state.getReadOnlyProperty();
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java
index 3cf4ef93..1b0f9571 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java
@@ -52,9 +52,6 @@ import org.jackhuang.hmcl.ui.construct.TwoLineListItem;
 import org.jackhuang.hmcl.ui.decorator.DecoratorPage;
 import org.jackhuang.hmcl.ui.versions.GameItem;
 import org.jackhuang.hmcl.ui.versions.Versions;
-import org.jackhuang.hmcl.upgrade.RemoteVersion;
-import org.jackhuang.hmcl.upgrade.UpdateChecker;
-import org.jackhuang.hmcl.upgrade.UpdateHandler;
 import org.jackhuang.hmcl.util.javafx.BindingMapping;
 import org.jackhuang.hmcl.util.javafx.MappedObservableList;
 
@@ -73,14 +70,11 @@ public final class MainPage extends StackPane implements DecoratorPage {
     private final JFXPopup popup = new JFXPopup(menu);
 
     private final StringProperty currentGame = new SimpleStringProperty(this, "currentGame");
-    private final BooleanProperty showUpdate = new SimpleBooleanProperty(this, "showUpdate");
-    private final ObjectProperty<RemoteVersion> latestVersion = new SimpleObjectProperty<>(this, "latestVersion");
     private final ObservableList<Version> versions = FXCollections.observableArrayList();
     private final ObservableList<Node> versionNodes;
     private Profile profile;
 
     private final VBox announcementPane;
-    private final StackPane updatePane;
     private final JFXButton menuButton;
 
     {
@@ -101,44 +95,6 @@ public final class MainPage extends StackPane implements DecoratorPage {
 
         announcementPane = new VBox(16);
 
-        updatePane = new StackPane();
-        updatePane.setVisible(false);
-        updatePane.getStyleClass().add("bubble");
-        FXUtils.setLimitWidth(updatePane, 230);
-        FXUtils.setLimitHeight(updatePane, 55);
-        StackPane.setAlignment(updatePane, Pos.TOP_RIGHT);
-        updatePane.setOnMouseClicked(e -> onUpgrade());
-        FXUtils.onChange(showUpdateProperty(), this::showUpdate);
-
-        {
-            HBox hBox = new HBox();
-            hBox.setSpacing(12);
-            hBox.setAlignment(Pos.CENTER_LEFT);
-            StackPane.setAlignment(hBox, Pos.CENTER_LEFT);
-            StackPane.setMargin(hBox, new Insets(9, 12, 9, 16));
-            {
-                Label lblIcon = new Label();
-                lblIcon.setGraphic(SVG.update(Theme.whiteFillBinding(), 20, 20));
-
-                TwoLineListItem prompt = new TwoLineListItem();
-                prompt.setSubtitle(i18n("update.bubble.subtitle"));
-                prompt.setPickOnBounds(false);
-                prompt.titleProperty().bind(BindingMapping.of(latestVersionProperty()).map(latestVersion ->
-                        latestVersion == null ? "" : i18n("update.bubble.title", latestVersion.getVersion())));
-
-                hBox.getChildren().setAll(lblIcon, prompt);
-            }
-
-            JFXButton closeUpdateButton = new JFXButton();
-            closeUpdateButton.setGraphic(SVG.close(Theme.whiteFillBinding(), 10, 10));
-            StackPane.setAlignment(closeUpdateButton, Pos.TOP_RIGHT);
-            closeUpdateButton.getStyleClass().add("toggle-icon-tiny");
-            StackPane.setMargin(closeUpdateButton, new Insets(5));
-            closeUpdateButton.setOnMouseClicked(e -> closeUpdateBubble());
-
-            updatePane.getChildren().setAll(hBox, closeUpdateButton);
-        }
-
         StackPane launchPane = new StackPane();
         launchPane.getStyleClass().add("launch-pane");
         launchPane.setMaxWidth(230);
@@ -208,7 +164,7 @@ public final class MainPage extends StackPane implements DecoratorPage {
             launchPane.getChildren().setAll(launchButton, separator, menuButton);
         }
 
-        getChildren().setAll(announcementPane, updatePane, launchPane);
+        getChildren().setAll(announcementPane, launchPane);
 
         menu.setMaxHeight(365);
         menu.setMaxWidth(545);
@@ -222,40 +178,6 @@ public final class MainPage extends StackPane implements DecoratorPage {
         Bindings.bindContent(menu.getContent(), versionNodes);
     }
 
-    public MainPage() {
-        if (Metadata.isNightly()) {
-            announcementPane.getChildren().add(new AnnouncementCard(i18n("update.channel.nightly.title"), i18n("update.channel.nightly.hint")));
-        } else if (Metadata.isDev()) {
-            announcementPane.getChildren().add(new AnnouncementCard(i18n("update.channel.dev.title"), i18n("update.channel.dev.hint")));
-        }
-    }
-
-    private void showUpdate(boolean show) {
-        doAnimation(show);
-
-        if (show && getLatestVersion() != null && !Objects.equals(config().getPromptedVersion(), getLatestVersion().getVersion())) {
-            Controllers.dialog("", i18n("update.bubble.title", getLatestVersion().getVersion()), MessageDialogPane.MessageType.INFO, () -> {
-                config().setPromptedVersion(getLatestVersion().getVersion());
-                onUpgrade();
-            });
-        }
-    }
-
-    private void doAnimation(boolean show) {
-        Duration duration = Duration.millis(320);
-        Timeline nowAnimation = new Timeline();
-        nowAnimation.getKeyFrames().addAll(
-                new KeyFrame(Duration.ZERO,
-                        new KeyValue(updatePane.translateXProperty(), show ? 260 : 0, SINE)),
-                new KeyFrame(duration,
-                        new KeyValue(updatePane.translateXProperty(), show ? 0 : 260, SINE)));
-        if (show) nowAnimation.getKeyFrames().add(
-                new KeyFrame(Duration.ZERO, e -> updatePane.setVisible(true)));
-        else nowAnimation.getKeyFrames().add(
-                new KeyFrame(duration, e -> updatePane.setVisible(false)));
-        nowAnimation.play();
-    }
-
     private void launch() {
         Versions.launch(Profiles.getSelectedProfile());
     }
@@ -264,19 +186,6 @@ public final class MainPage extends StackPane implements DecoratorPage {
         popup.show(menuButton, JFXPopup.PopupVPosition.BOTTOM, JFXPopup.PopupHPosition.RIGHT, 0, -menuButton.getHeight());
     }
 
-    private void onUpgrade() {
-        RemoteVersion target = UpdateChecker.getLatestVersion();
-        if (target == null) {
-            return;
-        }
-        UpdateHandler.updateFrom(target);
-    }
-
-    private void closeUpdateBubble() {
-        showUpdate.unbind();
-        showUpdate.set(false);
-    }
-
     @Override
     public ReadOnlyObjectWrapper<State> stateProperty() {
         return state;
@@ -294,30 +203,6 @@ public final class MainPage extends StackPane implements DecoratorPage {
         this.currentGame.set(currentGame);
     }
 
-    public boolean isShowUpdate() {
-        return showUpdate.get();
-    }
-
-    public BooleanProperty showUpdateProperty() {
-        return showUpdate;
-    }
-
-    public void setShowUpdate(boolean showUpdate) {
-        this.showUpdate.set(showUpdate);
-    }
-
-    public RemoteVersion getLatestVersion() {
-        return latestVersion.get();
-    }
-
-    public ObjectProperty<RemoteVersion> latestVersionProperty() {
-        return latestVersion;
-    }
-
-    public void setLatestVersion(RemoteVersion latestVersion) {
-        this.latestVersion.set(latestVersion);
-    }
-
     public void initVersions(Profile profile, List<Version> versions) {
         FXUtils.checkFxUserThread();
         this.profile = profile;
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/RootPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/RootPage.java
index a2156067..94de43a7 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/RootPage.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/RootPage.java
@@ -41,7 +41,6 @@ import org.jackhuang.hmcl.ui.decorator.DecoratorPage;
 import org.jackhuang.hmcl.ui.download.ModpackInstallWizardProvider;
 import org.jackhuang.hmcl.ui.versions.GameAdvancedListItem;
 import org.jackhuang.hmcl.ui.versions.Versions;
-import org.jackhuang.hmcl.upgrade.UpdateChecker;
 import org.jackhuang.hmcl.util.TaskCancellationAction;
 import org.jackhuang.hmcl.util.io.CompressingUtils;
 import org.jackhuang.hmcl.util.io.JarUtils;
@@ -93,8 +92,6 @@ public class RootPage extends DecoratorAnimatedPage implements DecoratorPage {
             });
 
             FXUtils.onChangeAndOperate(Profiles.selectedVersionProperty(), mainPage::setCurrentGame);
-            mainPage.showUpdateProperty().bind(UpdateChecker.outdatedProperty());
-            mainPage.latestVersionProperty().bind(UpdateChecker.latestVersionProperty());
 
             Profiles.registerVersionsListener(profile -> {
                 HMCLGameRepository repository = profile.getRepository();
@@ -151,24 +148,6 @@ public class RootPage extends DecoratorAnimatedPage implements DecoratorPage {
             downloadItem.setTitle(i18n("download"));
             downloadItem.setOnAction(e -> Controllers.navigate(Controllers.getDownloadPage()));
 
-            // fifth item in left sidebar
-            AdvancedListItem multiplayerItem = new AdvancedListItem();
-            multiplayerItem.setLeftGraphic(wrap(SVG::lan));
-            multiplayerItem.setActionButtonVisible(false);
-            multiplayerItem.setTitle(i18n("multiplayer"));
-            if ("true".equalsIgnoreCase(JarUtils.getManifestAttribute("Enable-HiPer", "")))
-                multiplayerItem.setOnAction(e -> Controllers.navigate(Controllers.getMultiplayerPage()));
-            else {
-                JFXHyperlink link = new JFXHyperlink(i18n("multiplayer.hint.details"));
-                link.setOnAction(e -> FXUtils.openLink("https://hmcl.huangyuhui.net/api/redirect/multiplayer-migrate"));
-                multiplayerItem.setOnAction(e ->
-                        Controllers.dialog(
-                                new MessageDialogPane.Builder(i18n("multiplayer.hint"), null, MessageDialogPane.MessageType.INFO)
-                                        .addAction(link)
-                                        .ok(null)
-                                        .build()));
-            }
-
             // sixth item in left sidebar
             AdvancedListItem launcherSettingsItem = new AdvancedListItem();
             launcherSettingsItem.setLeftGraphic(wrap(SVG::gearOutline));
@@ -185,7 +164,6 @@ public class RootPage extends DecoratorAnimatedPage implements DecoratorPage {
                     .add(gameItem)
                     .add(downloadItem)
                     .startCategory(i18n("settings.launcher.general").toUpperCase())
-                    .add(multiplayerItem)
                     .add(launcherSettingsItem);
 
             // the root page, with the sidebar in left, navigator in center.
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SettingsPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SettingsPage.java
index 8e8f5390..9b58e9d5 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SettingsPage.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SettingsPage.java
@@ -27,10 +27,6 @@ import org.jackhuang.hmcl.setting.Settings;
 import org.jackhuang.hmcl.ui.Controllers;
 import org.jackhuang.hmcl.ui.FXUtils;
 import org.jackhuang.hmcl.ui.construct.MessageDialogPane.MessageType;
-import org.jackhuang.hmcl.upgrade.RemoteVersion;
-import org.jackhuang.hmcl.upgrade.UpdateChannel;
-import org.jackhuang.hmcl.upgrade.UpdateChecker;
-import org.jackhuang.hmcl.upgrade.UpdateHandler;
 import org.jackhuang.hmcl.util.Logging;
 import org.jackhuang.hmcl.util.i18n.Locales;
 import org.jackhuang.hmcl.util.io.FileUtils;
@@ -69,57 +65,6 @@ public final class SettingsPage extends SettingsView {
                 Bindings.createObjectBinding(() -> Optional.ofNullable(Settings.instance().getCommonDirectory())
                                 .orElse(i18n("launcher.cache_directory.disabled")),
                         config().commonDirectoryProperty(), config().commonDirTypeProperty()));
-
-        // ==== Update ====
-        FXUtils.installFastTooltip(btnUpdate, i18n("update.tooltip"));
-        updateListener = any -> {
-            btnUpdate.setVisible(UpdateChecker.isOutdated());
-
-            if (UpdateChecker.isOutdated()) {
-                lblUpdateSub.setText(i18n("update.newest_version", UpdateChecker.getLatestVersion().getVersion()));
-                lblUpdateSub.getStyleClass().setAll("update-label");
-
-                lblUpdate.setText(i18n("update.found"));
-                lblUpdate.getStyleClass().setAll("update-label");
-            } else if (UpdateChecker.isCheckingUpdate()) {
-                lblUpdateSub.setText(i18n("update.checking"));
-                lblUpdateSub.getStyleClass().setAll("subtitle-label");
-
-                lblUpdate.setText(i18n("update"));
-                lblUpdate.getStyleClass().setAll();
-            } else {
-                lblUpdateSub.setText(i18n("update.latest"));
-                lblUpdateSub.getStyleClass().setAll("subtitle-label");
-
-                lblUpdate.setText(i18n("update"));
-                lblUpdate.getStyleClass().setAll();
-            }
-        };
-        UpdateChecker.latestVersionProperty().addListener(new WeakInvalidationListener(updateListener));
-        UpdateChecker.outdatedProperty().addListener(new WeakInvalidationListener(updateListener));
-        UpdateChecker.checkingUpdateProperty().addListener(new WeakInvalidationListener(updateListener));
-        updateListener.invalidated(null);
-
-        ToggleGroup updateChannelGroup = new ToggleGroup();
-        chkUpdateDev.setToggleGroup(updateChannelGroup);
-        chkUpdateDev.setUserData(UpdateChannel.DEVELOPMENT);
-        chkUpdateStable.setToggleGroup(updateChannelGroup);
-        chkUpdateStable.setUserData(UpdateChannel.STABLE);
-        ObjectProperty<UpdateChannel> updateChannel = selectedItemPropertyFor(updateChannelGroup, UpdateChannel.class);
-        updateChannel.set(UpdateChannel.getChannel());
-        updateChannel.addListener((a, b, newValue) -> {
-            UpdateChecker.requestCheckUpdate(newValue);
-        });
-        // ====
-    }
-
-    @Override
-    protected void onUpdate() {
-        RemoteVersion target = UpdateChecker.getLatestVersion();
-        if (target == null) {
-            return;
-        }
-        UpdateHandler.updateFrom(target);
     }
 
     @Override
@@ -148,11 +93,6 @@ public final class SettingsPage extends SettingsView {
         });
     }
 
-    @Override
-    protected void onSponsor() {
-        FXUtils.openLink("https://hmcl.huangyuhui.net/api/redirect/sponsor");
-    }
-
     @Override
     protected void clearCacheDirectory() {
         FileUtils.cleanDirectoryQuietly(new File(Settings.instance().getCommonDirectory(), "cache"));
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SettingsView.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SettingsView.java
index af9a3477..44b6dfed 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SettingsView.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SettingsView.java
@@ -49,11 +49,6 @@ public abstract class SettingsView extends StackPane {
     protected final JFXComboBox<SupportedLocale> cboLanguage;
     protected final MultiFileItem<EnumCommonDirectory> fileCommonLocation;
     protected final ComponentSublist fileCommonLocationSublist;
-    protected final Label lblUpdate;
-    protected final Label lblUpdateSub;
-    protected final JFXRadioButton chkUpdateStable;
-    protected final JFXRadioButton chkUpdateDev;
-    protected final JFXButton btnUpdate;
     protected final ScrollPane scroll;
 
     public SettingsView() {
@@ -69,11 +64,6 @@ public abstract class SettingsView extends StackPane {
                 ComponentList settingsPane = new ComponentList();
                 {
                     {
-                        StackPane sponsorPane = new StackPane();
-                        sponsorPane.setCursor(Cursor.HAND);
-                        sponsorPane.setOnMouseClicked(e -> onSponsor());
-                        sponsorPane.setPadding(new Insets(8, 0, 8, 0));
-
                         GridPane gridPane = new GridPane();
 
                         ColumnConstraints col = new ColumnConstraints();
@@ -96,51 +86,7 @@ public abstract class SettingsView extends StackPane {
                             GridPane.setColumnIndex(label, 0);
                             gridPane.getChildren().add(label);
                         }
-
-                        sponsorPane.getChildren().setAll(gridPane);
-                        settingsPane.getContent().add(sponsorPane);
-                    }
-                }
-
-                {
-                    ComponentSublist updatePane = new ComponentSublist();
-                    updatePane.setTitle(i18n("update"));
-                    updatePane.setHasSubtitle(true);
-                    {
-                        VBox headerLeft = new VBox();
-
-                        lblUpdate = new Label(i18n("update"));
-                        lblUpdateSub = new Label();
-                        lblUpdateSub.getStyleClass().add("subtitle-label");
-
-                        headerLeft.getChildren().setAll(lblUpdate, lblUpdateSub);
-                        updatePane.setHeaderLeft(headerLeft);
-                    }
-
-                    {
-                        btnUpdate = new JFXButton();
-                        btnUpdate.setOnMouseClicked(e -> onUpdate());
-                        btnUpdate.getStyleClass().add("toggle-icon4");
-                        btnUpdate.setGraphic(SVG.update(Theme.blackFillBinding(), 20, 20));
-
-                        updatePane.setHeaderRight(btnUpdate);
                     }
-
-                    {
-                        VBox content = new VBox();
-                        content.setSpacing(8);
-
-                        chkUpdateStable = new JFXRadioButton(i18n("update.channel.stable"));
-                        chkUpdateDev = new JFXRadioButton(i18n("update.channel.dev"));
-
-                        TextFlow noteWrapper = new TextFlow(new Text(i18n("update.note")));
-                        VBox.setMargin(noteWrapper, new Insets(10, 0, 0, 0));
-
-                        content.getChildren().setAll(chkUpdateStable, chkUpdateDev, noteWrapper);
-
-                        updatePane.getContent().add(content);
-                    }
-                    settingsPane.getContent().add(updatePane);
                 }
 
                 {
@@ -204,11 +150,7 @@ public abstract class SettingsView extends StackPane {
         }
     }
 
-    protected abstract void onUpdate();
-
     protected abstract void onExportLogs();
 
-    protected abstract void onSponsor();
-
     protected abstract void clearCacheDirectory();
 }
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SponsorPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SponsorPage.java
deleted file mode 100644
index bd60c8ef..00000000
--- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SponsorPage.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
- * Hello Minecraft! Launcher
- * Copyright (C) 2021  huangyuhui <huanghongxun2008@126.com> and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package org.jackhuang.hmcl.ui.main;
-
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.reflect.TypeToken;
-import com.jfoenix.controls.JFXListCell;
-import com.jfoenix.controls.JFXListView;
-import javafx.geometry.Insets;
-import javafx.geometry.VPos;
-import javafx.scene.Cursor;
-import javafx.scene.control.Label;
-import javafx.scene.layout.*;
-import javafx.scene.text.TextAlignment;
-import org.jackhuang.hmcl.task.Schedulers;
-import org.jackhuang.hmcl.task.Task;
-import org.jackhuang.hmcl.ui.FXUtils;
-import org.jackhuang.hmcl.util.io.HttpRequest;
-
-import java.math.BigDecimal;
-import java.util.Date;
-import java.util.List;
-
-import static org.jackhuang.hmcl.util.i18n.I18n.i18n;
-
-public class SponsorPage extends StackPane {
-    private final JFXListView<Sponsor> listView;
-
-    public SponsorPage() {
-        VBox content = new VBox();
-        content.setPadding(new Insets(10));
-        content.setSpacing(10);
-        content.setFillWidth(true);
-
-        {
-            StackPane sponsorPane = new StackPane();
-            sponsorPane.getStyleClass().add("card");
-            sponsorPane.setCursor(Cursor.HAND);
-            sponsorPane.setOnMouseClicked(e -> onSponsor());
-
-            GridPane gridPane = new GridPane();
-
-            ColumnConstraints col = new ColumnConstraints();
-            col.setHgrow(Priority.SOMETIMES);
-            col.setMaxWidth(Double.POSITIVE_INFINITY);
-
-            gridPane.getColumnConstraints().setAll(col);
-
-            RowConstraints row = new RowConstraints();
-            row.setMinHeight(Double.NEGATIVE_INFINITY);
-            row.setValignment(VPos.TOP);
-            row.setVgrow(Priority.SOMETIMES);
-            gridPane.getRowConstraints().setAll(row);
-
-            {
-                Label label = new Label(i18n("sponsor.hmcl"));
-                label.setWrapText(true);
-                label.setTextAlignment(TextAlignment.JUSTIFY);
-                GridPane.setRowIndex(label, 0);
-                GridPane.setColumnIndex(label, 0);
-                gridPane.getChildren().add(label);
-            }
-
-            sponsorPane.getChildren().setAll(gridPane);
-            content.getChildren().add(sponsorPane);
-        }
-
-        {
-            StackPane pane = new StackPane();
-            pane.getStyleClass().add("card");
-            listView = new JFXListView<>();
-            listView.setCellFactory((listView) -> new JFXListCell<Sponsor>() {
-                @Override
-                public void updateItem(Sponsor item, boolean empty) {
-                    super.updateItem(item, empty);
-                    if (!empty) {
-                        setText(item.getName());
-                        setGraphic(null);
-                    }
-                }
-            });
-            VBox.setVgrow(pane, Priority.ALWAYS);
-            pane.getChildren().setAll(listView);
-            content.getChildren().add(pane);
-        }
-
-        loadSponsorList();
-
-        getChildren().setAll(content);
-    }
-
-    private void onSponsor() {
-        FXUtils.openLink("https://hmcl.huangyuhui.net/api/redirect/sponsor");
-    }
-
-    private void loadSponsorList() {
-        Task.<List<Sponsor>>supplyAsync(() -> HttpRequest.GET("https://hmcl.huangyuhui.net/api/sponsor").getJson(new TypeToken<List<Sponsor>>() {
-        }.getType())).thenAcceptAsync(Schedulers.javafx(), sponsors -> {
-            listView.getItems().setAll(sponsors);
-        }).start();
-    }
-
-    private static class Sponsor {
-        @SerializedName("name")
-        private final String name;
-
-        @SerializedName("create_time")
-        private final Date createTime;
-
-        @SerializedName("money")
-        private final BigDecimal money;
-
-        @SerializedName("contact")
-        private final String contact;
-
-        @SerializedName("afdian_id")
-        private final String afdianId;
-
-        public Sponsor() {
-            this("", new Date(), BigDecimal.ZERO, "", "");
-        }
-
-        public Sponsor(String name, Date createTime, BigDecimal money, String contact, String afdianId) {
-            this.name = name;
-            this.createTime = createTime;
-            this.money = money;
-            this.contact = contact;
-            this.afdianId = afdianId;
-        }
-
-        public String getName() {
-            return name;
-        }
-
-        public Date getCreateTime() {
-            return createTime;
-        }
-
-        public BigDecimal getMoney() {
-            return money;
-        }
-
-        public String getContact() {
-            return contact;
-        }
-
-        public String getAfdianId() {
-            return afdianId;
-        }
-    }
-}
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/LocalServerBroadcaster.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/LocalServerBroadcaster.java
deleted file mode 100644
index bdb105a3..00000000
--- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/LocalServerBroadcaster.java
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
- * Hello Minecraft! Launcher
- * Copyright (C) 2022  huangyuhui <huanghongxun2008@126.com> and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package org.jackhuang.hmcl.ui.multiplayer;
-
-import org.jackhuang.hmcl.event.Event;
-import org.jackhuang.hmcl.event.EventManager;
-import org.jackhuang.hmcl.util.Lang;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.net.*;
-import java.nio.channels.UnresolvedAddressException;
-import java.nio.charset.StandardCharsets;
-import java.util.logging.Level;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import static org.jackhuang.hmcl.util.Logging.LOG;
-import static org.jackhuang.hmcl.util.i18n.I18n.i18n;
-
-public class LocalServerBroadcaster implements AutoCloseable {
-    private final String address;
-    private final ThreadGroup threadGroup = new ThreadGroup("JoinSession");
-
-    private final EventManager<Event> onExit = new EventManager<>();
-
-    private boolean running = true;
-
-    public LocalServerBroadcaster(String address) {
-        this.address = address;
-    }
-
-    private Thread newThread(Runnable task, String name) {
-        Thread thread = new Thread(threadGroup, task, name);
-        thread.setDaemon(true);
-        return thread;
-    }
-
-    @Override
-    public void close() {
-        running = false;
-        threadGroup.interrupt();
-    }
-
-    public String getAddress() {
-        return address;
-    }
-
-    public EventManager<Event> onExit() {
-        return onExit;
-    }
-
-    public static final Pattern ADDRESS_PATTERN = Pattern.compile("^\\s*(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}):(\\d{1,5})\\s*$");
-
-    public void start() {
-        Thread forwardPortThread = newThread(this::forwardPort, "ForwardPort");
-        forwardPortThread.start();
-    }
-
-    private void forwardPort() {
-        try {
-            Matcher matcher = ADDRESS_PATTERN.matcher(address);
-            if (!matcher.find()) {
-                throw new MalformedURLException();
-            }
-            try (Socket forwardingSocket = new Socket();
-                 ServerSocket serverSocket = new ServerSocket()) {
-                forwardingSocket.setSoTimeout(30000);
-                forwardingSocket.connect(new InetSocketAddress(matcher.group(1), Lang.parseInt(matcher.group(2), 0)));
-
-                serverSocket.bind(null);
-
-                Thread broadcastMOTDThread = newThread(() -> broadcastMOTD(serverSocket.getLocalPort()), "BroadcastMOTD");
-                broadcastMOTDThread.start();
-
-                LOG.log(Level.INFO, "Listening " + serverSocket.getLocalSocketAddress());
-
-                while (running) {
-                    Socket forwardedSocket = serverSocket.accept();
-                    LOG.log(Level.INFO, "Accepting client");
-                    newThread(() -> forwardTraffic(forwardingSocket, forwardedSocket), "Forward S->D").start();
-                    newThread(() -> forwardTraffic(forwardedSocket, forwardingSocket), "Forward D->S").start();
-                }
-            }
-        } catch (IOException | UnresolvedAddressException e) {
-            LOG.log(Level.WARNING, "Error in forwarding port", e);
-        } finally {
-            close();
-            onExit.fireEvent(new Event(this));
-        }
-    }
-
-    private void forwardTraffic(Socket src, Socket dest) {
-        try (InputStream is = src.getInputStream(); OutputStream os = dest.getOutputStream()) {
-            byte[] buf = new byte[1024];
-            while (true) {
-                int len = is.read(buf, 0, buf.length);
-                if (len < 0) break;
-                LOG.log(Level.INFO, "Forwarding buffer " + len);
-                os.write(buf, 0, len);
-            }
-        } catch (IOException e) {
-            LOG.log(Level.WARNING, "Disconnected", e);
-        }
-    }
-
-    private void broadcastMOTD(int port) {
-        DatagramSocket socket;
-        InetAddress broadcastAddress;
-        try {
-            socket = new DatagramSocket();
-            broadcastAddress = InetAddress.getByName("224.0.2.60");
-        } catch (IOException e) {
-            LOG.log(Level.WARNING, "Failed to create datagram socket", e);
-            return;
-        }
-
-        while (running) {
-            try {
-                byte[] data = String.format("[MOTD]%s[/MOTD][AD]%d[/AD]", i18n("multiplayer.session.name.motd"), port).getBytes(StandardCharsets.UTF_8);
-                DatagramPacket packet = new DatagramPacket(data, 0, data.length, broadcastAddress, 4445);
-                socket.send(packet);
-                LOG.finest("Broadcast server 0.0.0.0:" + port);
-            } catch (IOException e) {
-                LOG.log(Level.WARNING, "Failed to send motd packet", e);
-            }
-
-            try {
-                Thread.sleep(1500);
-            } catch (InterruptedException ignored) {
-                return;
-            }
-        }
-
-        socket.close();
-    }
-}
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerManager.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerManager.java
deleted file mode 100644
index 86d9539b..00000000
--- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerManager.java
+++ /dev/null
@@ -1,553 +0,0 @@
-/*
- * Hello Minecraft! Launcher
- * Copyright (C) 2021  huangyuhui <huanghongxun2008@126.com> and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package org.jackhuang.hmcl.ui.multiplayer;
-
-import com.google.gson.JsonParseException;
-import javafx.application.Platform;
-import javafx.beans.binding.Bindings;
-import javafx.beans.binding.BooleanBinding;
-import org.jackhuang.hmcl.Metadata;
-import org.jackhuang.hmcl.event.Event;
-import org.jackhuang.hmcl.event.EventManager;
-import org.jackhuang.hmcl.setting.ConfigHolder;
-import org.jackhuang.hmcl.task.FileDownloadTask;
-import org.jackhuang.hmcl.task.Task;
-import org.jackhuang.hmcl.ui.Controllers;
-import org.jackhuang.hmcl.ui.FXUtils;
-import org.jackhuang.hmcl.util.*;
-import org.jackhuang.hmcl.util.gson.JsonUtils;
-import org.jackhuang.hmcl.util.io.FileUtils;
-import org.jackhuang.hmcl.util.io.HttpRequest;
-import org.jackhuang.hmcl.util.io.NetworkUtils;
-import org.jackhuang.hmcl.util.platform.Architecture;
-import org.jackhuang.hmcl.util.platform.CommandBuilder;
-import org.jackhuang.hmcl.util.platform.ManagedProcess;
-import org.jackhuang.hmcl.util.platform.OperatingSystem;
-
-import java.io.BufferedWriter;
-import java.io.IOException;
-import java.io.OutputStreamWriter;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.*;
-import java.nio.file.attribute.PosixFilePermission;
-import java.text.DateFormat;
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.*;
-import java.util.concurrent.CompletableFuture;
-import java.util.concurrent.TimeUnit;
-import java.util.function.BiFunction;
-import java.util.logging.Level;
-
-import static org.jackhuang.hmcl.setting.ConfigHolder.globalConfig;
-import static org.jackhuang.hmcl.util.Lang.*;
-import static org.jackhuang.hmcl.util.Logging.LOG;
-import static org.jackhuang.hmcl.util.Pair.pair;
-import static org.jackhuang.hmcl.util.i18n.I18n.i18n;
-import static org.jackhuang.hmcl.util.io.ChecksumMismatchException.verifyChecksum;
-
-/**
- * Cato Management.
- */
-public final class MultiplayerManager {
-    // static final String HIPER_VERSION = "1.2.2";
-    private static final String HIPER_DOWNLOAD_URL = "https://gitcode.net/to/hiper/-/raw/master/";
-    private static final String HIPER_PACKAGES_URL = HIPER_DOWNLOAD_URL + "packages.sha1";
-    private static final String HIPER_POINTS_URL = "https://cert.mcer.cn/point.yml";
-    private static final Path HIPER_TEMP_CONFIG_PATH = Metadata.HMCL_DIRECTORY.resolve("hiper.yml");
-    private static final Path HIPER_CONFIG_DIR = Metadata.HMCL_DIRECTORY.resolve("hiper-config");
-    public static final Path HIPER_PATH = getHiperLocalDirectory().resolve(getHiperFileName());
-    public static final int HIPER_AGREEMENT_VERSION = 3;
-    private static final String REMOTE_ADDRESS = "127.0.0.1";
-    private static final String LOCAL_ADDRESS = "0.0.0.0";
-
-    private static final Map<Architecture, String> archMap = mapOf(
-            pair(Architecture.ARM32, "arm-7"),
-            pair(Architecture.ARM64, "arm64"),
-            pair(Architecture.X86, "386"),
-            pair(Architecture.X86_64, "amd64"),
-            pair(Architecture.LOONGARCH64, "loong64"),
-            pair(Architecture.MIPS, "mips"),
-            pair(Architecture.MIPS64, "mips64"),
-            pair(Architecture.MIPS64EL, "mips64le"),
-            pair(Architecture.PPC64LE, "ppc64le"),
-            pair(Architecture.RISCV64, "riscv64"),
-            pair(Architecture.MIPSEL, "mipsle")
-    );
-
-    private static final Map<OperatingSystem, String> osMap = mapOf(
-            pair(OperatingSystem.LINUX, "linux"),
-            pair(OperatingSystem.WINDOWS, "windows"),
-            pair(OperatingSystem.OSX, "darwin")
-    );
-
-    private static final String HIPER_TARGET_NAME = String.format("%s-%s",
-            osMap.getOrDefault(OperatingSystem.CURRENT_OS, "windows"),
-            archMap.getOrDefault(Architecture.SYSTEM_ARCH, "amd64"));
-
-    private static final String GSUDO_VERSION = "1.7.1";
-    private static final String GSUDO_TARGET_ARCH = Architecture.SYSTEM_ARCH == Architecture.X86_64 ? "amd64" : "x86";
-    private static final String GSUDO_FILE_NAME = "gsudo.exe";
-    private static final String GSUDO_DOWNLOAD_URL = "https://gitcode.net/glavo/gsudo-release/-/raw/75c952ea3afe8792b0db4fe9bab87d41b21e5895/" + GSUDO_TARGET_ARCH + "/" + GSUDO_FILE_NAME;
-    private static final Path GSUDO_LOCAL_FILE = Metadata.HMCL_DIRECTORY.resolve("libraries").resolve("gsudo").resolve("gsudo").resolve(GSUDO_VERSION).resolve(GSUDO_TARGET_ARCH).resolve(GSUDO_FILE_NAME);
-    private static final boolean USE_GSUDO;
-
-    static final boolean IS_ADMINISTRATOR;
-
-    static final BooleanBinding tokenInvalid = Bindings.createBooleanBinding(
-            () -> {
-                String token = globalConfig().multiplayerTokenProperty().getValue();
-                return token == null || token.isEmpty() || !StringUtils.isAlphabeticOrNumber(token);
-            },
-            globalConfig().multiplayerTokenProperty());
-
-    private static final DateFormat HIPER_VALID_TIME_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-
-    static {
-        boolean isAdministrator = false;
-        if (OperatingSystem.CURRENT_OS == OperatingSystem.WINDOWS) {
-            try {
-                Process process = Runtime.getRuntime().exec(new String[]{"net.exe", "session"});
-                if (!process.waitFor(1, TimeUnit.SECONDS)) {
-                    process.destroy();
-                } else {
-                    isAdministrator = process.exitValue() == 0;
-                }
-            } catch (Throwable ignored) {
-            }
-            USE_GSUDO = !isAdministrator && OperatingSystem.SYSTEM_BUILD_NUMBER >= 10000;
-        } else {
-            isAdministrator = "root".equals(System.getProperty("user.name"));
-            USE_GSUDO = false;
-        }
-        IS_ADMINISTRATOR = isAdministrator;
-    }
-
-    private static CompletableFuture<Map<String, String>> HASH;
-
-    private MultiplayerManager() {
-    }
-
-    public static Path getConfigPath(String token) {
-        return HIPER_CONFIG_DIR.resolve(Hex.encodeHex(DigestUtils.digest("SHA-1", token)) + ".yml");
-    }
-
-    public static void clearConfiguration() {
-        try {
-            Files.deleteIfExists(HIPER_TEMP_CONFIG_PATH);
-            Files.deleteIfExists(getConfigPath(ConfigHolder.globalConfig().getMultiplayerToken()));
-        } catch (IOException e) {
-            LOG.log(Level.WARNING, "Failed to delete config", e);
-        }
-    }
-
-    private static CompletableFuture<Map<String, String>> getPackagesHash() {
-        FXUtils.checkFxUserThread();
-        if (HASH == null) {
-            HASH = CompletableFuture.supplyAsync(wrap(() -> {
-                String hashList = HttpRequest.GET(HIPER_PACKAGES_URL).getString();
-                Map<String, String> hashes = new HashMap<>();
-                for (String line : hashList.split("\n")) {
-                    String[] items = line.trim().split(" {2}");
-                    if (items.length == 2 && items[0].length() == 40) {
-                        hashes.put(items[1], items[0]);
-                    } else {
-                        LOG.warning("Failed to parse Hiper packages.sha1 file, line: " + line);
-                    }
-                }
-                if (USE_GSUDO) {
-                    hashes.put(GSUDO_FILE_NAME, HttpRequest.GET(GSUDO_DOWNLOAD_URL + ".sha1").getString().trim());
-                }
-                return hashes;
-            }));
-        }
-        return HASH;
-    }
-
-    public static Task<Void> downloadHiper() {
-        return Task.fromCompletableFuture(getPackagesHash()).thenComposeAsync(packagesHash -> {
-
-            BiFunction<String, String, FileDownloadTask> getFileDownloadTask = (String remotePath, String localFileName) -> {
-                String hash = packagesHash.get(remotePath);
-                return new FileDownloadTask(
-                        NetworkUtils.toURL(String.format("%s%s", HIPER_DOWNLOAD_URL, remotePath)),
-                        getHiperLocalDirectory().resolve(localFileName).toFile(),
-                        hash == null ? null : new FileDownloadTask.IntegrityCheck("SHA-1", hash));
-            };
-
-            List<Task<?>> tasks;
-            if (OperatingSystem.CURRENT_OS == OperatingSystem.WINDOWS) {
-                if (!packagesHash.containsKey(String.format("%s/hiper.exe", HIPER_TARGET_NAME))) {
-                    throw new HiperUnsupportedPlatformException();
-                }
-                tasks = new ArrayList<>(4);
-
-                tasks.add(getFileDownloadTask.apply(String.format("%s/hiper.exe", HIPER_TARGET_NAME), "hiper.exe"));
-                tasks.add(getFileDownloadTask.apply(String.format("%s/wintun.dll", HIPER_TARGET_NAME), "wintun.dll"));
-                // tasks.add(getFileDownloadTask.apply("tap-windows-9.21.2.exe", "tap-windows-9.21.2.exe"));
-                if (USE_GSUDO)
-                    tasks.add(new FileDownloadTask(
-                            NetworkUtils.toURL(GSUDO_DOWNLOAD_URL),
-                            GSUDO_LOCAL_FILE.toFile(),
-                            new FileDownloadTask.IntegrityCheck("SHA-1", packagesHash.get(GSUDO_FILE_NAME))
-                    ));
-            } else {
-                if (!packagesHash.containsKey(String.format("%s/hiper", HIPER_TARGET_NAME))) {
-                    throw new HiperUnsupportedPlatformException();
-                }
-                tasks = Collections.singletonList(getFileDownloadTask.apply(String.format("%s/hiper", HIPER_TARGET_NAME), "hiper"));
-            }
-            return Task.allOf(tasks).thenRunAsync(() -> {
-                if (OperatingSystem.CURRENT_OS == OperatingSystem.LINUX || OperatingSystem.CURRENT_OS == OperatingSystem.OSX) {
-                    Set<PosixFilePermission> perm = Files.getPosixFilePermissions(HIPER_PATH);
-                    perm.add(PosixFilePermission.OWNER_EXECUTE);
-                    Files.setPosixFilePermissions(HIPER_PATH, perm);
-                }
-            });
-        });
-    }
-
-    public static void downloadHiperConfig(String token, Path configPath) throws IOException {
-        String certFileContent = HttpRequest.GET(String.format("https://cert.mcer.cn/%s.yml", token)).getString();
-        if (!certFileContent.equals("")) {
-            FileUtils.writeText(configPath, certFileContent);
-        }
-    }
-
-    public static CompletableFuture<HiperSession> startHiper(String token) {
-        return getPackagesHash().thenComposeAsync(packagesHash -> {
-            CompletableFuture<Void> future = new CompletableFuture<>();
-            try {
-                if (OperatingSystem.CURRENT_OS == OperatingSystem.WINDOWS) {
-                    verifyChecksum(getHiperLocalDirectory().resolve("hiper.exe"), "SHA-1", packagesHash.get(String.format("%s/hiper.exe", HIPER_TARGET_NAME)));
-                    verifyChecksum(getHiperLocalDirectory().resolve("wintun.dll"), "SHA-1", packagesHash.get(String.format("%s/wintun.dll", HIPER_TARGET_NAME)));
-                    // verifyChecksumAndDeleteIfNotMatched(getHiperLocalDirectory().resolve("tap-windows-9.21.2.exe"), packagesHash.get("tap-windows-9.21.2.exe"));
-                    if (USE_GSUDO)
-                        verifyChecksum(GSUDO_LOCAL_FILE, "SHA-1", packagesHash.get(GSUDO_FILE_NAME));
-                } else {
-                    verifyChecksum(getHiperLocalDirectory().resolve("hiper"), "SHA-1", packagesHash.get(String.format("%s/hiper", HIPER_TARGET_NAME)));
-                }
-
-                future.complete(null);
-            } catch (IOException e) {
-                LOG.log(Level.WARNING, "Failed to verify HiPer files", e);
-                Platform.runLater(() -> Controllers.taskDialog(MultiplayerManager.downloadHiper()
-                        .whenComplete(exception -> {
-                            if (exception == null)
-                                future.complete(null);
-                            else
-                                future.completeExceptionally(exception);
-                        }), i18n("multiplayer.download"), TaskCancellationAction.NORMAL));
-            }
-            return future;
-        }).thenApplyAsync(wrap(ignored -> {
-            Path configPath = getConfigPath(token);
-            Files.createDirectories(configPath.getParent());
-
-            // 下载 HiPer 配置文件
-            Logging.registerForbiddenToken(token, "<hiper token>");
-            try {
-                downloadHiperConfig(token, configPath);
-            } catch (IOException e) {
-                LOG.log(Level.WARNING, "configuration file cloud cache token has been not available, try to use the local configuration file", e);
-            }
-
-            if (Files.exists(configPath)) {
-                Files.copy(configPath, HIPER_TEMP_CONFIG_PATH, StandardCopyOption.REPLACE_EXISTING);
-                try (BufferedWriter output = Files.newBufferedWriter(HIPER_TEMP_CONFIG_PATH, StandardOpenOption.WRITE, StandardOpenOption.APPEND)) {
-                    output.write("\n");
-                    output.write("logging:\n");
-                    output.write("  format: json\n");
-                    output.write("  file_path: '" + Metadata.HMCL_DIRECTORY.resolve("logs").resolve("hiper.log").toString().replace("'", "''") + "'\n");
-                }
-            }
-
-            String[] commands = new String[]{HIPER_PATH.toString(), "-config", HIPER_TEMP_CONFIG_PATH.toString()};
-
-            if (!IS_ADMINISTRATOR) {
-                switch (OperatingSystem.CURRENT_OS) {
-                    case WINDOWS:
-                        if (USE_GSUDO)
-                            commands = new String[]{GSUDO_LOCAL_FILE.toString(), HIPER_PATH.toString(), "-config", HIPER_TEMP_CONFIG_PATH.toString()};
-                        break;
-                    case LINUX:
-                        String askpass = System.getProperty("hmcl.askpass", System.getenv("HMCL_ASKPASS"));
-                        if ("user".equalsIgnoreCase(askpass))
-                            commands = new String[]{"sudo", "-A", HIPER_PATH.toString(), "-config", HIPER_TEMP_CONFIG_PATH.toString()};
-                        else if ("false".equalsIgnoreCase(askpass))
-                            commands = new String[]{"sudo", "--non-interactive", HIPER_PATH.toString(), "-config", HIPER_TEMP_CONFIG_PATH.toString()};
-                        else {
-                            if (Files.exists(Paths.get("/usr/bin/pkexec")))
-                                commands = new String[]{"/usr/bin/pkexec", HIPER_PATH.toString(), "-config", HIPER_TEMP_CONFIG_PATH.toString()};
-                            else
-                                commands = new String[]{"sudo", "--non-interactive", HIPER_PATH.toString(), "-config", HIPER_TEMP_CONFIG_PATH.toString()};
-                        }
-                        break;
-                    case OSX:
-                        commands = new String[]{"sudo", "--non-interactive", HIPER_PATH.toString(), "-config", HIPER_TEMP_CONFIG_PATH.toString()};
-                        break;
-                }
-            }
-
-            Process process = new ProcessBuilder()
-                    .command(commands)
-                    .start();
-
-            return new HiperSession(process, Arrays.asList(commands));
-        }));
-    }
-
-    public static String getHiperFileName() {
-        if (OperatingSystem.CURRENT_OS == OperatingSystem.WINDOWS) {
-            return "hiper.exe";
-        } else {
-            return "hiper";
-        }
-    }
-
-    public static Path getHiperLocalDirectory() {
-        return Metadata.HMCL_DIRECTORY.resolve("libraries").resolve("hiper").resolve("hiper").resolve("binary");
-    }
-
-    public static class HiperSession extends ManagedProcess {
-        private final EventManager<HiperExitEvent> onExit = new EventManager<>();
-        private final EventManager<HiperIPEvent> onIPAllocated = new EventManager<>();
-        private final EventManager<HiperShowValidUntilEvent> onValidUntil = new EventManager<>();
-        private final BufferedWriter writer;
-        private int error = 0;
-
-        HiperSession(Process process, List<String> commands) {
-            super(process, commands);
-
-            Runtime.getRuntime().addShutdownHook(new Thread(this::stop));
-
-            LOG.info("Started hiper with command: " + new CommandBuilder().addAll(commands));
-
-            addRelatedThread(Lang.thread(this::waitFor, "HiperExitWaiter", true));
-            pumpInputStream(this::onLog);
-            pumpErrorStream(this::onLog);
-
-            writer = new BufferedWriter(new OutputStreamWriter(process.getOutputStream(), StandardCharsets.UTF_8));
-        }
-
-        private void onLog(String log) {
-            if (!log.startsWith("{")) {
-                LOG.warning("[HiPer] " + log);
-
-                if (log.startsWith("failed to load config"))
-                    error = HiperExitEvent.INVALID_CONFIGURATION;
-                else if (log.startsWith("sudo: ") || log.startsWith("Error getting authority") || log.startsWith("Error: An error occurred trying to start process"))
-                    error = HiperExitEvent.NO_SUDO_PRIVILEGES;
-                else if (log.startsWith("Failed to write to log, can't rename log file")) {
-                    error = HiperExitEvent.NO_SUDO_PRIVILEGES;
-                    stop();
-                }
-
-                return;
-            }
-
-            try {
-                Map<?, ?> logJson = JsonUtils.fromNonNullJson(log, Map.class);
-                String msg = "";
-                if (logJson.containsKey("msg")) {
-                    msg = tryCast(logJson.get("msg"), String.class).orElse("");
-                    if (msg.contains("Failed to get a tun/tap device")) {
-                        error = HiperExitEvent.FAILED_GET_DEVICE;
-                    }
-                    if (msg.contains("Failed to load certificate from config")) {
-                        error = HiperExitEvent.FAILED_LOAD_CONFIG;
-                    }
-                    if (msg.contains("Validity of client certificate")) {
-                        Optional<String> validUntil = tryCast(logJson.get("valid"), String.class);
-                        if (validUntil.isPresent()) {
-                            try {
-                                synchronized (HIPER_VALID_TIME_FORMAT) {
-                                    Date date = HIPER_VALID_TIME_FORMAT.parse(validUntil.get());
-                                    onValidUntil.fireEvent(new HiperShowValidUntilEvent(this, date));
-                                }
-                            } catch (JsonParseException | ParseException e) {
-                                LOG.log(Level.WARNING, "Failed to parse certification expire time string: " + validUntil.get());
-                            }
-                        }
-                    }
-                }
-
-                if (logJson.containsKey("network")) {
-                    Map<?, ?> network = tryCast(logJson.get("network"), Map.class).orElse(Collections.emptyMap());
-                    if (network.containsKey("IP") && msg.contains("Main HostMap created")) {
-                        Optional<String> ip = tryCast(network.get("IP"), String.class);
-                        ip.ifPresent(s -> onIPAllocated.fireEvent(new HiperIPEvent(this, s)));
-                    }
-                }
-            } catch (JsonParseException e) {
-                LOG.log(Level.WARNING, "Failed to parse hiper log: " + log, e);
-            }
-        }
-
-        private void waitFor() {
-            try {
-                int exitCode = getProcess().waitFor();
-                LOG.info("Hiper exited with exitcode " + exitCode);
-                if (error != 0) {
-                    onExit.fireEvent(new HiperExitEvent(this, error));
-                } else {
-                    onExit.fireEvent(new HiperExitEvent(this, exitCode));
-                }
-            } catch (InterruptedException e) {
-                onExit.fireEvent(new HiperExitEvent(this, HiperExitEvent.INTERRUPTED));
-            } finally {
-                try {
-                    if (writer != null)
-                        writer.close();
-                } catch (IOException e) {
-                    LOG.log(Level.WARNING, "Failed to close Hiper stdin writer", e);
-                }
-            }
-            destroyRelatedThreads();
-        }
-
-        @Override
-        public void stop() {
-            try {
-                writer.write("quit\n");
-                writer.flush();
-            } catch (IOException e) {
-                LOG.log(Level.WARNING, "Failed to quit HiPer", e);
-            }
-            try {
-                getProcess().waitFor(1, TimeUnit.SECONDS);
-            } catch (InterruptedException ignored) {
-            }
-            super.stop();
-        }
-
-        public EventManager<HiperExitEvent> onExit() {
-            return onExit;
-        }
-
-        public EventManager<HiperIPEvent> onIPAllocated() {
-            return onIPAllocated;
-        }
-
-        public EventManager<HiperShowValidUntilEvent> onValidUntil() {
-            return onValidUntil;
-        }
-
-    }
-
-    public static class HiperExitEvent extends Event {
-        private final int exitCode;
-
-        public HiperExitEvent(Object source, int exitCode) {
-            super(source);
-            this.exitCode = exitCode;
-        }
-
-        public int getExitCode() {
-            return exitCode;
-        }
-
-        public static final int INTERRUPTED = -1;
-        public static final int INVALID_CONFIGURATION = -2;
-        public static final int CERTIFICATE_EXPIRED = -3;
-        public static final int FAILED_GET_DEVICE = -4;
-        public static final int FAILED_LOAD_CONFIG = -5;
-        public static final int NO_SUDO_PRIVILEGES = -6;
-    }
-
-    public static class HiperIPEvent extends Event {
-        private final String ip;
-
-        public HiperIPEvent(Object source, String ip) {
-            super(source);
-            this.ip = ip;
-        }
-
-        public String getIP() {
-            return ip;
-        }
-    }
-
-    public static class HiperShowValidUntilEvent extends Event {
-        private final Date validAt;
-
-        public HiperShowValidUntilEvent(Object source, Date validAt) {
-            super(source);
-            this.validAt = validAt;
-        }
-
-        public Date getValidUntil() {
-            return validAt;
-        }
-    }
-
-    public static class HiperExitException extends RuntimeException {
-        private final int exitCode;
-        private final boolean ready;
-
-        public HiperExitException(int exitCode, boolean ready) {
-            this.exitCode = exitCode;
-            this.ready = ready;
-        }
-
-        public int getExitCode() {
-            return exitCode;
-        }
-
-        public boolean isReady() {
-            return ready;
-        }
-    }
-
-    public static class HiperExitTimeoutException extends RuntimeException {
-    }
-
-    public static class HiperSessionExpiredException extends HiperInvalidConfigurationException {
-    }
-
-    public static class HiperInvalidConfigurationException extends RuntimeException {
-    }
-
-    public static class JoinRequestTimeoutException extends RuntimeException {
-    }
-
-    public static class PeerConnectionTimeoutException extends RuntimeException {
-    }
-
-    public static class ConnectionErrorException extends RuntimeException {
-    }
-
-    public static class KickedException extends RuntimeException {
-        private final String reason;
-
-        public KickedException(String reason) {
-            this.reason = reason;
-        }
-
-        public String getReason() {
-            return reason;
-        }
-    }
-
-    public static class HiperInvalidTokenException extends RuntimeException {
-    }
-
-    public static class HiperUnsupportedPlatformException extends RuntimeException {
-    }
-
-}
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPage.java
deleted file mode 100644
index 3cc29f8c..00000000
--- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPage.java
+++ /dev/null
@@ -1,367 +0,0 @@
-/*
- * Hello Minecraft! Launcher
- * Copyright (C) 2021  huangyuhui <huanghongxun2008@126.com> and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package org.jackhuang.hmcl.ui.multiplayer;
-
-import com.jfoenix.controls.JFXButton;
-import com.jfoenix.controls.JFXDialogLayout;
-import javafx.beans.property.*;
-import javafx.scene.control.Label;
-import javafx.scene.control.Skin;
-import org.jackhuang.hmcl.auth.Account;
-import org.jackhuang.hmcl.auth.offline.OfflineAccount;
-import org.jackhuang.hmcl.event.Event;
-import org.jackhuang.hmcl.setting.DownloadProviders;
-import org.jackhuang.hmcl.setting.Profile;
-import org.jackhuang.hmcl.setting.Profiles;
-import org.jackhuang.hmcl.task.Schedulers;
-import org.jackhuang.hmcl.ui.Controllers;
-import org.jackhuang.hmcl.ui.FXUtils;
-import org.jackhuang.hmcl.ui.construct.*;
-import org.jackhuang.hmcl.ui.decorator.DecoratorAnimatedPage;
-import org.jackhuang.hmcl.ui.decorator.DecoratorPage;
-import org.jackhuang.hmcl.ui.versions.Versions;
-import org.jackhuang.hmcl.util.HMCLService;
-import org.jackhuang.hmcl.util.StringUtils;
-import org.jackhuang.hmcl.util.TaskCancellationAction;
-import org.jackhuang.hmcl.util.io.ChecksumMismatchException;
-import org.jackhuang.hmcl.util.io.FileUtils;
-import org.jackhuang.hmcl.util.platform.CommandBuilder;
-import org.jackhuang.hmcl.util.platform.OperatingSystem;
-import org.jackhuang.hmcl.util.platform.SystemUtils;
-
-import java.io.File;
-import java.util.Date;
-import java.util.concurrent.CancellationException;
-import java.util.function.Consumer;
-import java.util.logging.Level;
-
-import static org.jackhuang.hmcl.setting.ConfigHolder.globalConfig;
-import static org.jackhuang.hmcl.ui.FXUtils.runInFX;
-import static org.jackhuang.hmcl.util.Lang.resolveException;
-import static org.jackhuang.hmcl.util.Logging.LOG;
-import static org.jackhuang.hmcl.util.i18n.I18n.i18n;
-
-public class MultiplayerPage extends DecoratorAnimatedPage implements DecoratorPage, PageAware {
-    private final ReadOnlyObjectWrapper<State> state = new ReadOnlyObjectWrapper<>(State.fromTitle(i18n("multiplayer")));
-
-    private final ReadOnlyObjectWrapper<MultiplayerManager.HiperSession> session = new ReadOnlyObjectWrapper<>();
-    private final IntegerProperty port = new SimpleIntegerProperty();
-    private final StringProperty address = new SimpleStringProperty();
-    private final ReadOnlyObjectWrapper<Date> expireTime = new ReadOnlyObjectWrapper<>();
-
-    private Consumer<MultiplayerManager.HiperExitEvent> onExit;
-    private Consumer<MultiplayerManager.HiperIPEvent> onIPAllocated;
-    private Consumer<MultiplayerManager.HiperShowValidUntilEvent> onValidUntil;
-
-    private final ReadOnlyObjectWrapper<LocalServerBroadcaster> broadcaster = new ReadOnlyObjectWrapper<>();
-    private Consumer<Event> onBroadcasterExit = null;
-
-    public MultiplayerPage() {
-    }
-
-    @Override
-    public void onPageShown() {
-        checkAgreement(this::downloadHiPerIfNecessary);
-    }
-
-    @Override
-    protected Skin<?> createDefaultSkin() {
-        return new MultiplayerPageSkin(this);
-    }
-
-    public int getPort() {
-        return port.get();
-    }
-
-    public IntegerProperty portProperty() {
-        return port;
-    }
-
-    public void setPort(int port) {
-        this.port.set(port);
-    }
-
-    public String getAddress() {
-        return address.get();
-    }
-
-    public StringProperty addressProperty() {
-        return address;
-    }
-
-    public void setAddress(String address) {
-        this.address.set(address);
-    }
-
-    public LocalServerBroadcaster getBroadcaster() {
-        return broadcaster.get();
-    }
-
-    public ReadOnlyObjectWrapper<LocalServerBroadcaster> broadcasterProperty() {
-        return broadcaster;
-    }
-
-    public void setBroadcaster(LocalServerBroadcaster broadcaster) {
-        this.broadcaster.set(broadcaster);
-    }
-
-    public Date getExpireTime() {
-        return expireTime.get();
-    }
-
-    public ReadOnlyObjectWrapper<Date> expireTimeProperty() {
-        return expireTime;
-    }
-
-    public void setExpireTime(Date expireTime) {
-        this.expireTime.set(expireTime);
-    }
-
-    public MultiplayerManager.HiperSession getSession() {
-        return session.get();
-    }
-
-    public ReadOnlyObjectProperty<MultiplayerManager.HiperSession> sessionProperty() {
-        return session.getReadOnlyProperty();
-    }
-
-    void launchGame() {
-        Profile profile = Profiles.getSelectedProfile();
-        Versions.launch(profile, profile.getSelectedVersion(), (launcherHelper) -> {
-            launcherHelper.setKeep();
-            Account account = launcherHelper.getAccount();
-            if (account instanceof OfflineAccount && !(account instanceof MultiplayerOfflineAccount)) {
-                OfflineAccount offlineAccount = (OfflineAccount) account;
-                launcherHelper.setAccount(new MultiplayerOfflineAccount(
-                        offlineAccount.getDownloader(),
-                        offlineAccount.getUsername(),
-                        offlineAccount.getUUID(),
-                        offlineAccount.getSkin()
-                ));
-            }
-        });
-    }
-
-    private void checkAgreement(Runnable runnable) {
-        if (globalConfig().getMultiplayerAgreementVersion() < MultiplayerManager.HIPER_AGREEMENT_VERSION) {
-            JFXDialogLayout agreementPane = new JFXDialogLayout();
-            agreementPane.setHeading(new Label(i18n("launcher.agreement")));
-            agreementPane.setBody(new Label(i18n("multiplayer.agreement.prompt")));
-            JFXHyperlink agreementLink = new JFXHyperlink(i18n("launcher.agreement"));
-            agreementLink.setOnAction(e -> HMCLService.openRedirectLink("multiplayer-agreement"));
-            JFXButton yesButton = new JFXButton(i18n("launcher.agreement.accept"));
-            yesButton.getStyleClass().add("dialog-accept");
-            yesButton.setOnAction(e -> {
-                globalConfig().setMultiplayerAgreementVersion(MultiplayerManager.HIPER_AGREEMENT_VERSION);
-                runnable.run();
-                agreementPane.fireEvent(new DialogCloseEvent());
-            });
-            JFXButton noButton = new JFXButton(i18n("launcher.agreement.decline"));
-            noButton.getStyleClass().add("dialog-cancel");
-            noButton.setOnAction(e -> {
-                agreementPane.fireEvent(new DialogCloseEvent());
-                fireEvent(new PageCloseEvent());
-            });
-            agreementPane.setActions(agreementLink, yesButton, noButton);
-            Controllers.dialog(agreementPane);
-        } else {
-            runnable.run();
-        }
-    }
-
-    private void downloadHiPerIfNecessary() {
-        if (!MultiplayerManager.HIPER_PATH.toFile().exists()) {
-            setDisabled(true);
-            Controllers.taskDialog(MultiplayerManager.downloadHiper()
-                    .whenComplete(Schedulers.javafx(), exception -> {
-                        setDisabled(false);
-                        if (exception != null) {
-                            if (exception instanceof CancellationException) {
-                                Controllers.showToast(i18n("message.cancelled"));
-                            } else if (exception instanceof MultiplayerManager.HiperUnsupportedPlatformException) {
-                                Controllers.dialog(i18n("multiplayer.download.unsupported"), i18n("install.failed.downloading"), MessageDialogPane.MessageType.ERROR);
-                                fireEvent(new PageCloseEvent());
-                            } else {
-                                Controllers.dialog(DownloadProviders.localizeErrorMessage(exception), i18n("install.failed.downloading"), MessageDialogPane.MessageType.ERROR);
-                                fireEvent(new PageCloseEvent());
-                            }
-                        } else {
-                            Controllers.showToast(i18n("multiplayer.download.success"));
-                        }
-                    }), i18n("multiplayer.download"), TaskCancellationAction.NORMAL);
-        } else {
-            setDisabled(false);
-        }
-    }
-
-    private String localizeErrorMessage(Throwable t) {
-        Throwable e = resolveException(t);
-        if (e instanceof CancellationException) {
-            LOG.info("Connection rejected by the server");
-            return i18n("message.cancelled");
-        } else if (e instanceof MultiplayerManager.HiperInvalidConfigurationException) {
-            LOG.warning("HiPer invalid configuration");
-            return i18n("multiplayer.token.malformed");
-        } else if (e instanceof ChecksumMismatchException) {
-            LOG.log(Level.WARNING, "Failed to verify HiPer files", e);
-            return i18n("multiplayer.error.file_not_found");
-        } else if (e instanceof MultiplayerManager.HiperExitException) {
-            int exitCode = ((MultiplayerManager.HiperExitException) e).getExitCode();
-            LOG.warning("HiPer exited unexpectedly with exit code " + exitCode);
-            return i18n("multiplayer.exit", exitCode);
-        } else if (e instanceof MultiplayerManager.HiperInvalidTokenException) {
-            LOG.warning("invalid token");
-            return i18n("multiplayer.token.invalid");
-        } else {
-            LOG.log(Level.WARNING, "Unknown HiPer exception", e);
-            return e.getLocalizedMessage() + "\n" + StringUtils.getStackTrace(e);
-        }
-    }
-
-    public void start() {
-        MultiplayerManager.startHiper(globalConfig().getMultiplayerToken())
-                .thenAcceptAsync(session -> {
-                    this.session.set(session);
-                    onExit = session.onExit().registerWeak(this::onExit);
-                    onIPAllocated = session.onIPAllocated().registerWeak(this::onIPAllocated);
-                    onValidUntil = session.onValidUntil().registerWeak(this::onValidUntil);
-                }, Schedulers.javafx())
-                .exceptionally(throwable -> {
-                    runInFX(() -> Controllers.dialog(localizeErrorMessage(throwable), null, MessageDialogPane.MessageType.ERROR));
-                    return null;
-                });
-    }
-
-    public void stop() {
-        if (getSession() != null) {
-            getSession().stop();
-        }
-        if (getBroadcaster() != null) {
-            getBroadcaster().close();
-        }
-        clearSession();
-    }
-
-    public void broadcast(String url) {
-        LocalServerBroadcaster broadcaster = new LocalServerBroadcaster(url);
-        this.onBroadcasterExit = broadcaster.onExit().registerWeak(this::onBroadcasterExit);
-        broadcaster.start();
-        this.broadcaster.set(broadcaster);
-    }
-
-    public void stopBroadcasting() {
-        if (getBroadcaster() != null) {
-            getBroadcaster().close();
-            setBroadcaster(null);
-        }
-    }
-
-    private void onBroadcasterExit(Event event) {
-        runInFX(() -> {
-            if (this.broadcaster.get() == event.getSource()) {
-                this.broadcaster.set(null);
-            }
-        });
-    }
-
-    private void clearSession() {
-        this.session.set(null);
-        this.expireTime.set(null);
-        this.onExit = null;
-        this.onIPAllocated = null;
-        this.onValidUntil = null;
-        this.broadcaster.set(null);
-        this.onBroadcasterExit = null;
-    }
-
-    private void onIPAllocated(MultiplayerManager.HiperIPEvent event) {
-        runInFX(() -> this.address.set(event.getIP()));
-    }
-
-    private void onValidUntil(MultiplayerManager.HiperShowValidUntilEvent event) {
-        runInFX(() -> this.expireTime.set(event.getValidUntil()));
-    }
-
-    private void onExit(MultiplayerManager.HiperExitEvent event) {
-        runInFX(() -> {
-            switch (event.getExitCode()) {
-                case 0:
-                    break;
-                case MultiplayerManager.HiperExitEvent.CERTIFICATE_EXPIRED:
-                    MultiplayerManager.clearConfiguration();
-                    Controllers.dialog(i18n("multiplayer.token.expired"));
-                    break;
-                case MultiplayerManager.HiperExitEvent.INVALID_CONFIGURATION:
-                    MultiplayerManager.clearConfiguration();
-                    Controllers.dialog(i18n("multiplayer.token.malformed"));
-                    break;
-                case MultiplayerManager.HiperExitEvent.NO_SUDO_PRIVILEGES:
-                    if (OperatingSystem.CURRENT_OS == OperatingSystem.WINDOWS) {
-                        Controllers.confirm(i18n("multiplayer.error.failed_sudo.windows"), null, MessageDialogPane.MessageType.WARNING, () -> {
-                            FXUtils.openLink("https://docs.hmcl.net/multiplayer/admin.html");
-                        }, null);
-                    } else if (OperatingSystem.CURRENT_OS == OperatingSystem.LINUX) {
-                        Controllers.dialog(i18n("multiplayer.error.failed_sudo.linux", MultiplayerManager.HIPER_PATH.toString()), null, MessageDialogPane.MessageType.WARNING);
-                    } else if (OperatingSystem.CURRENT_OS == OperatingSystem.OSX) {
-                        Controllers.confirm(i18n("multiplayer.error.failed_sudo.mac"), null, MessageDialogPane.MessageType.INFO, () -> {
-                            try {
-                                String text = "%hmcl-hiper ALL=(ALL:ALL) NOPASSWD: " + MultiplayerManager.HIPER_PATH.toString().replaceAll("[ @!(),:=\\\\]", "\\\\$0") + "\n";
-
-                                File sudoersTmp = File.createTempFile("sudoer", ".tmp");
-                                sudoersTmp.deleteOnExit();
-                                FileUtils.writeText(sudoersTmp, text);
-
-                                SystemUtils.callExternalProcess(
-                                        "osascript", "-e", String.format("do shell script \"%s\" with administrator privileges", String.join(";",
-                                                "dscl . create /Groups/hmcl-hiper PrimaryGroupID 758",
-                                                "dscl . merge /Groups/hmcl-hiper GroupMembership " + CommandBuilder.toShellStringLiteral(System.getProperty("user.name")) + "",
-                                                "mkdir -p /private/etc/sudoers.d",
-                                                "mv -f " + CommandBuilder.toShellStringLiteral(sudoersTmp.toString()) + " /private/etc/sudoers.d/hmcl-hiper",
-                                                "chown root /private/etc/sudoers.d/hmcl-hiper",
-                                                "chmod 0440 /private/etc/sudoers.d/hmcl-hiper"
-                                        ).replaceAll("[\\\\\"]", "\\\\$0"))
-                                );
-                            } catch (Throwable e) {
-                                LOG.log(Level.WARNING, "Failed to modify sudoers", e);
-                            }
-                        }, null);
-                    }
-                    break;
-                case MultiplayerManager.HiperExitEvent.INTERRUPTED:
-                    // do nothing
-                    break;
-                case MultiplayerManager.HiperExitEvent.FAILED_GET_DEVICE:
-                    Controllers.dialog(i18n("multiplayer.error.failed_get_device"));
-                    break;
-                case MultiplayerManager.HiperExitEvent.FAILED_LOAD_CONFIG:
-                    Controllers.dialog(i18n("multiplayer.error.failed_load_config"));
-                    break;
-                default:
-                    Controllers.dialog(i18n("multiplayer.exit", event.getExitCode()));
-                    break;
-            }
-
-            clearSession();
-        });
-    }
-
-    @Override
-    public ReadOnlyObjectProperty<State> stateProperty() {
-        return state;
-    }
-}
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPageSkin.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPageSkin.java
deleted file mode 100644
index 3110bceb..00000000
--- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPageSkin.java
+++ /dev/null
@@ -1,461 +0,0 @@
-/*
- * Hello Minecraft! Launcher
- * Copyright (C) 2021  huangyuhui <huanghongxun2008@126.com> and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package org.jackhuang.hmcl.ui.multiplayer;
-
-import com.jfoenix.controls.JFXButton;
-import com.jfoenix.controls.JFXPasswordField;
-import com.jfoenix.controls.JFXTextField;
-import javafx.application.Platform;
-import javafx.beans.InvalidationListener;
-import javafx.beans.WeakInvalidationListener;
-import javafx.beans.binding.Bindings;
-import javafx.collections.ObservableList;
-import javafx.geometry.Insets;
-import javafx.geometry.Pos;
-import javafx.scene.Node;
-import javafx.scene.control.Label;
-import javafx.scene.control.ScrollPane;
-import javafx.scene.layout.*;
-import javafx.stage.FileChooser;
-import javafx.util.StringConverter;
-import org.jackhuang.hmcl.task.Schedulers;
-import org.jackhuang.hmcl.ui.Controllers;
-import org.jackhuang.hmcl.ui.FXUtils;
-import org.jackhuang.hmcl.ui.SVG;
-import org.jackhuang.hmcl.ui.construct.*;
-import org.jackhuang.hmcl.ui.construct.MessageDialogPane.MessageType;
-import org.jackhuang.hmcl.ui.decorator.DecoratorAnimatedPage;
-import org.jackhuang.hmcl.util.HMCLService;
-import org.jackhuang.hmcl.util.Lang;
-import org.jackhuang.hmcl.util.StringUtils;
-import org.jackhuang.hmcl.util.i18n.Locales;
-
-import java.io.File;
-import java.io.IOException;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.StandardCopyOption;
-import java.util.concurrent.CompletableFuture;
-import java.util.logging.Level;
-
-import static org.jackhuang.hmcl.setting.ConfigHolder.globalConfig;
-import static org.jackhuang.hmcl.ui.versions.VersionPage.wrap;
-import static org.jackhuang.hmcl.util.Logging.LOG;
-import static org.jackhuang.hmcl.util.i18n.I18n.i18n;
-
-public class MultiplayerPageSkin extends DecoratorAnimatedPage.DecoratorAnimatedPageSkin<MultiplayerPage> {
-
-    private ObservableList<Node> clients;
-
-    /**
-     * Constructor for all SkinBase instances.
-     *
-     * @param control The control for which this Skin should attach to.
-     */
-    protected MultiplayerPageSkin(MultiplayerPage control) {
-        super(control);
-
-        {
-            AdvancedListBox sideBar = new AdvancedListBox()
-                    .addNavigationDrawerItem(item -> {
-                        item.setTitle(i18n("version.launch"));
-                        item.setLeftGraphic(wrap(SVG::rocketLaunchOutline));
-                        item.setOnAction(e -> {
-                            control.launchGame();
-                        });
-                    })
-                    .startCategory(i18n("help"))
-                    .addNavigationDrawerItem(item -> {
-                        item.setTitle(i18n("help"));
-                        item.setLeftGraphic(wrap(SVG::helpCircleOutline));
-                        item.setOnAction(e -> FXUtils.openLink("https://docs.hmcl.net/multiplayer"));
-                    })
-//                    .addNavigationDrawerItem(item -> {
-//                        item.setTitle(i18n("multiplayer.help.1"));
-//                        item.setLeftGraphic(wrap(SVG::helpCircleOutline));
-//                        item.setOnAction(e -> FXUtils.openLink("https://docs.hmcl.net/multiplayer/admin.html"));
-//                    })
-                    .addNavigationDrawerItem(item -> {
-                        item.setTitle(i18n("multiplayer.help.2"));
-                        item.setLeftGraphic(wrap(SVG::helpCircleOutline));
-                        item.setOnAction(e -> FXUtils.openLink("https://docs.hmcl.net/multiplayer/help.html"));
-                    })
-                    .addNavigationDrawerItem(item -> {
-                        item.setTitle(i18n("multiplayer.help.3"));
-                        item.setLeftGraphic(wrap(SVG::helpCircleOutline));
-                        item.setOnAction(e -> FXUtils.openLink("https://docs.hmcl.net/multiplayer/help.html#%E5%88%9B%E5%BB%BA%E6%96%B9"));
-                    })
-                    .addNavigationDrawerItem(item -> {
-                        item.setTitle(i18n("multiplayer.help.4"));
-                        item.setLeftGraphic(wrap(SVG::helpCircleOutline));
-                        item.setOnAction(e -> FXUtils.openLink("https://docs.hmcl.net/multiplayer/help.html#%E5%8F%82%E4%B8%8E%E8%80%85"));
-                    })
-                    .addNavigationDrawerItem(item -> {
-                        item.setTitle(i18n("multiplayer.help.text"));
-                        item.setLeftGraphic(wrap(SVG::rocketLaunchOutline));
-                        item.setOnAction(e -> FXUtils.openLink("https://docs.hmcl.net/multiplayer/text.html"));
-                    })
-                    .addNavigationDrawerItem(report -> {
-                        report.setTitle(i18n("feedback"));
-                        report.setLeftGraphic(wrap(SVG::messageAlertOutline));
-                        report.setOnAction(e -> HMCLService.openRedirectLink("multiplayer-feedback"));
-                    });
-            FXUtils.setLimitWidth(sideBar, 200);
-            setLeft(sideBar);
-        }
-
-        {
-            VBox content = new VBox(16);
-            content.setPadding(new Insets(10));
-            content.setFillWidth(true);
-            ScrollPane scrollPane = new ScrollPane(content);
-            scrollPane.setFitToWidth(true);
-            setCenter(scrollPane);
-
-            VBox mainPane = new VBox(16);
-            {
-                ComponentList offPane = new ComponentList();
-                {
-                    HintPane hintPane = new HintPane(MessageType.WARNING);
-                    hintPane.setText(i18n("multiplayer.off.hint"));
-
-                    BorderPane tokenPane = new BorderPane();
-                    {
-                        Label tokenTitle = new Label(i18n("multiplayer.token"));
-                        BorderPane.setAlignment(tokenTitle, Pos.CENTER_LEFT);
-                        tokenPane.setLeft(tokenTitle);
-                        // Token acts like password, we hide it here preventing users from accidentally leaking their token when taking screenshots.
-                        JFXPasswordField tokenField = new JFXPasswordField();
-                        BorderPane.setAlignment(tokenField, Pos.CENTER_LEFT);
-                        BorderPane.setMargin(tokenField, new Insets(0, 8, 0, 8));
-                        tokenPane.setCenter(tokenField);
-                        tokenField.textProperty().bindBidirectional(globalConfig().multiplayerTokenProperty());
-                        tokenField.setPromptText(i18n("multiplayer.token.prompt"));
-
-                        Validator validator = new Validator("multiplayer.token.format_invalid", StringUtils::isAlphabeticOrNumber);
-                        InvalidationListener listener = any -> tokenField.validate();
-                        validator.getProperties().put(validator, listener);
-                        tokenField.textProperty().addListener(new WeakInvalidationListener(listener));
-                        tokenField.getValidators().add(validator);
-
-                        JFXHyperlink applyLink = new JFXHyperlink(i18n("multiplayer.token.apply"));
-                        BorderPane.setAlignment(applyLink, Pos.CENTER_RIGHT);
-                        applyLink.setOnAction(e -> HMCLService.openRedirectLink("multiplayer-static-token"));
-                        tokenPane.setRight(applyLink);
-                    }
-
-                    HBox startPane = new HBox();
-                    {
-                        JFXButton startButton = new JFXButton(i18n("multiplayer.off.start"));
-                        startButton.getStyleClass().add("jfx-button-raised");
-                        startButton.setButtonType(JFXButton.ButtonType.RAISED);
-                        startButton.setOnMouseClicked(e -> control.start());
-                        startButton.disableProperty().bind(MultiplayerManager.tokenInvalid);
-
-                        startPane.getChildren().setAll(startButton);
-                        startPane.setAlignment(Pos.CENTER_RIGHT);
-                    }
-
-                    if (!MultiplayerManager.IS_ADMINISTRATOR)
-                        offPane.getContent().add(hintPane);
-                    offPane.getContent().addAll(tokenPane, startPane);
-                }
-
-                ComponentList onPane = new ComponentList();
-                {
-                    BorderPane expirationPane = new BorderPane();
-                    expirationPane.setLeft(new Label(i18n("multiplayer.session.expiration")));
-                    Label expirationLabel = new Label();
-                    expirationLabel.textProperty().bind(Bindings.createStringBinding(() ->
-                                    control.getExpireTime() == null ? "" : Locales.SIMPLE_DATE_FORMAT.get().format(control.getExpireTime()),
-                            control.expireTimeProperty()));
-                    expirationPane.setRight(expirationLabel);
-
-                    GridPane masterPane = new GridPane();
-                    masterPane.setVgap(8);
-                    masterPane.setHgap(16);
-                    ColumnConstraints titleColumn = new ColumnConstraints();
-                    ColumnConstraints valueColumn = new ColumnConstraints();
-                    ColumnConstraints rightColumn = new ColumnConstraints();
-                    masterPane.getColumnConstraints().setAll(titleColumn, valueColumn, rightColumn);
-                    valueColumn.setFillWidth(true);
-                    valueColumn.setHgrow(Priority.ALWAYS);
-                    {
-                        BorderPane titlePane = new BorderPane();
-                        GridPane.setColumnSpan(titlePane, 3);
-                        Label title = new Label(i18n("multiplayer.master"));
-                        titlePane.setLeft(title);
-
-                        JFXHyperlink tutorial = new JFXHyperlink(i18n("multiplayer.master.video_tutorial"));
-                        titlePane.setRight(tutorial);
-                        tutorial.setOnAction(e -> HMCLService.openRedirectLink("multiplayer-tutorial-master"));
-                        masterPane.addRow(0, titlePane);
-
-                        HintPane hintPane = new HintPane(MessageType.INFO);
-                        GridPane.setColumnSpan(hintPane, 3);
-                        hintPane.setText(i18n("multiplayer.master.hint"));
-                        masterPane.addRow(1, hintPane);
-
-                        Label portTitle = new Label(i18n("multiplayer.master.port"));
-                        BorderPane.setAlignment(portTitle, Pos.CENTER_LEFT);
-
-                        JFXTextField portTextField = new JFXTextField();
-                        GridPane.setColumnSpan(portTextField, 2);
-                        FXUtils.setValidateWhileTextChanged(portTextField, true);
-                        portTextField.getValidators().add(new Validator(i18n("multiplayer.master.port.validate"), (text) -> {
-                            Integer value = Lang.toIntOrNull(text);
-                            return value != null && 0 <= value && value <= 65535;
-                        }));
-                        portTextField.textProperty().bindBidirectional(control.portProperty(), new StringConverter<Number>() {
-                            @Override
-                            public String toString(Number object) {
-                                return Integer.toString(object.intValue());
-                            }
-
-                            @Override
-                            public Number fromString(String string) {
-                                return Lang.parseInt(string, 0);
-                            }
-                        });
-                        masterPane.addRow(2, portTitle, portTextField);
-
-                        Label serverAddressTitle = new Label(i18n("multiplayer.master.server_address"));
-                        BorderPane.setAlignment(serverAddressTitle, Pos.CENTER_LEFT);
-                        Label serverAddressLabel = new Label();
-                        BorderPane.setAlignment(serverAddressLabel, Pos.CENTER_LEFT);
-                        serverAddressLabel.textProperty().bind(Bindings.createStringBinding(() -> {
-                            return (control.getAddress() == null ? "" : control.getAddress()) + ":" + control.getPort();
-                        }, control.addressProperty(), control.portProperty()));
-                        JFXButton copyButton = new JFXButton(i18n("multiplayer.master.server_address.copy"));
-                        copyButton.setOnAction(e -> FXUtils.copyText(serverAddressLabel.getText()));
-                        masterPane.addRow(3, serverAddressTitle, serverAddressLabel, copyButton);
-                    }
-
-                    VBox slavePane = new VBox(8);
-                    {
-                        BorderPane titlePane = new BorderPane();
-                        Label title = new Label(i18n("multiplayer.slave"));
-                        titlePane.setLeft(title);
-
-                        JFXHyperlink tutorial = new JFXHyperlink(i18n("multiplayer.slave.video_tutorial"));
-                        tutorial.setOnAction(e -> HMCLService.openRedirectLink("multiplayer-tutorial-slave"));
-                        titlePane.setRight(tutorial);
-
-                        HintPane hintPane = new HintPane(MessageType.INFO);
-                        GridPane.setColumnSpan(hintPane, 3);
-                        hintPane.setText(i18n("multiplayer.slave.hint"));
-                        slavePane.getChildren().add(hintPane);
-
-                        HintPane hintPane2 = new HintPane(MessageType.WARNING);
-                        GridPane.setColumnSpan(hintPane2, 3);
-                        hintPane2.setText(i18n("multiplayer.slave.hint2"));
-                        slavePane.getChildren().add(hintPane2);
-
-                        GridPane notBroadcastingPane = new GridPane();
-                        {
-                            notBroadcastingPane.setVgap(8);
-                            notBroadcastingPane.setHgap(16);
-                            notBroadcastingPane.getColumnConstraints().setAll(titleColumn, valueColumn, rightColumn);
-
-                            Label addressTitle = new Label(i18n("multiplayer.slave.server_address"));
-
-                            JFXTextField addressField = new JFXTextField();
-                            FXUtils.setValidateWhileTextChanged(addressField, true);
-                            addressField.getValidators().add(new ServerAddressValidator());
-
-                            JFXButton startButton = new JFXButton(i18n("multiplayer.slave.server_address.start"));
-                            startButton.setOnAction(e -> control.broadcast(addressField.getText()));
-                            notBroadcastingPane.addRow(0, addressTitle, addressField, startButton);
-                        }
-
-                        GridPane broadcastingPane = new GridPane();
-                        {
-                            broadcastingPane.setVgap(8);
-                            broadcastingPane.setHgap(16);
-                            broadcastingPane.getColumnConstraints().setAll(titleColumn, valueColumn, rightColumn);
-
-                            Label addressTitle = new Label(i18n("multiplayer.slave.server_address"));
-                            Label addressLabel = new Label();
-                            addressLabel.textProperty().bind(Bindings.createStringBinding(() ->
-                                            control.getBroadcaster() != null ? control.getBroadcaster().getAddress() : "",
-                                    control.broadcasterProperty()));
-
-                            JFXButton stopButton = new JFXButton(i18n("multiplayer.slave.server_address.stop"));
-                            stopButton.setOnAction(e -> control.stopBroadcasting());
-                            broadcastingPane.addRow(0, addressTitle, addressLabel, stopButton);
-                        }
-
-                        FXUtils.onChangeAndOperate(control.broadcasterProperty(), broadcaster -> {
-                            if (broadcaster == null) {
-                                slavePane.getChildren().setAll(titlePane, hintPane, hintPane2, notBroadcastingPane);
-                            } else {
-                                slavePane.getChildren().setAll(titlePane, hintPane, hintPane2, broadcastingPane);
-                            }
-                        });
-                    }
-
-                    FXUtils.onChangeAndOperate(control.expireTimeProperty(), t -> {
-                        if (t == null) {
-                            onPane.getContent().setAll(masterPane, slavePane);
-                        } else {
-                            onPane.getContent().setAll(expirationPane, masterPane, slavePane);
-                        }
-                    });
-                }
-
-                FXUtils.onChangeAndOperate(getSkinnable().sessionProperty(), session -> {
-                    if (session == null) {
-                        mainPane.getChildren().setAll(offPane);
-                    } else {
-                        mainPane.getChildren().setAll(onPane);
-                    }
-                });
-            }
-
-            ComponentList persistencePane = new ComponentList();
-            {
-                HintPane hintPane = new HintPane(MessageType.WARNING);
-                hintPane.setText(i18n("multiplayer.persistence.hint"));
-
-                BorderPane importPane = new BorderPane();
-                {
-                    Label left = new Label(i18n("multiplayer.persistence.import"));
-                    BorderPane.setAlignment(left, Pos.CENTER_LEFT);
-                    importPane.setLeft(left);
-
-                    JFXButton importButton = new JFXButton(i18n("multiplayer.persistence.import.button"));
-                    importButton.setOnMouseClicked(e -> {
-                        Path targetPath = MultiplayerManager.getConfigPath(globalConfig().getMultiplayerToken());
-                        if (Files.exists(targetPath)) {
-                            LOG.warning("License file " + targetPath + " already exists");
-                            Controllers.dialog(i18n("multiplayer.persistence.import.file_already_exists"), null, MessageType.ERROR);
-                            return;
-                        }
-
-                        FileChooser fileChooser = new FileChooser();
-                        fileChooser.setTitle(i18n("multiplayer.persistence.import.title"));
-                        fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(i18n("multiplayer.persistence.license_file"), "*.yml"));
-
-                        File file = fileChooser.showOpenDialog(Controllers.getStage());
-                        if (file == null)
-                            return;
-
-                        CompletableFuture<Boolean> future = new CompletableFuture<>();
-                        if (file.getName().matches("[a-z0-9]{40}.yml") && !targetPath.getFileName().toString().equals(file.getName())) {
-                            Controllers.confirm(i18n("multiplayer.persistence.import.token_not_match"), null, MessageType.QUESTION,
-                                    () -> future.complete(true),
-                                    () -> future.complete(false)) ;
-                        } else {
-                            future.complete(true);
-                        }
-                        future.thenAcceptAsync(Lang.wrapConsumer(c -> {
-                            if (c) Files.copy(file.toPath(), targetPath);
-                        })).exceptionally(exception -> {
-                            LOG.log(Level.WARNING, "Failed to import license file", exception);
-                            Platform.runLater(() -> Controllers.dialog(i18n("multiplayer.persistence.import.failed"), null, MessageType.ERROR));
-                            return null;
-                        });
-                    });
-                    importButton.disableProperty().bind(MultiplayerManager.tokenInvalid);
-                    importButton.getStyleClass().add("jfx-button-border");
-                    importPane.setRight(importButton);
-                }
-
-                BorderPane exportPane = new BorderPane();
-                {
-                    Label left = new Label(i18n("multiplayer.persistence.export"));
-                    BorderPane.setAlignment(left, Pos.CENTER_LEFT);
-                    exportPane.setLeft(left);
-
-                    JFXButton exportButton = new JFXButton(i18n("multiplayer.persistence.export.button"));
-                    exportButton.setOnMouseClicked(e -> {
-                        String token = globalConfig().getMultiplayerToken();
-                        Path configPath = MultiplayerManager.getConfigPath(token);
-
-                        FileChooser fileChooser = new FileChooser();
-                        fileChooser.setTitle(i18n("multiplayer.persistence.export.title"));
-                        fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(i18n("multiplayer.persistence.license_file"), "*.yml"));
-                        fileChooser.setInitialFileName(configPath.getFileName().toString());
-
-                        File file = fileChooser.showSaveDialog(Controllers.getStage());
-                        if (file == null)
-                            return;
-
-                        CompletableFuture.runAsync(Lang.wrap(() -> MultiplayerManager.downloadHiperConfig(token, configPath)), Schedulers.io())
-                                .handleAsync((ignored, exception) -> {
-                                    if (exception != null) {
-                                        LOG.log(Level.INFO, "Unable to download hiper config file", e);
-                                    }
-
-                                    if (!Files.isRegularFile(configPath)) {
-                                        LOG.warning("License file " + configPath + " not exists");
-                                        Platform.runLater(() -> Controllers.dialog(i18n("multiplayer.persistence.export.file_not_exists"), null, MessageType.ERROR));
-                                        return null;
-                                    }
-
-                                    try {
-                                        Files.copy(configPath, file.toPath(), StandardCopyOption.REPLACE_EXISTING);
-                                    } catch (IOException ioException) {
-                                        LOG.log(Level.WARNING, "Failed to export license file", ioException);
-                                        Platform.runLater(() -> Controllers.dialog(i18n("multiplayer.persistence.export.failed"), null, MessageType.ERROR));
-                                    }
-
-                                    return null;
-                                });
-
-                    });
-                    exportButton.disableProperty().bind(MultiplayerManager.tokenInvalid);
-                    exportButton.getStyleClass().add("jfx-button-border");
-                    exportPane.setRight(exportButton);
-                }
-
-                persistencePane.getContent().setAll(hintPane, importPane, exportPane);
-            }
-
-
-            ComponentList thanksPane = new ComponentList();
-            {
-                HBox pane = new HBox();
-                pane.setAlignment(Pos.CENTER_LEFT);
-
-                JFXHyperlink aboutLink = new JFXHyperlink(i18n("about"));
-                aboutLink.setOnAction(e -> HMCLService.openRedirectLink("multiplayer-about"));
-
-                HBox placeholder = new HBox();
-                HBox.setHgrow(placeholder, Priority.ALWAYS);
-
-                pane.getChildren().setAll(
-                        new Label("Based on HiPer"),
-                        aboutLink,
-                        placeholder,
-                        FXUtils.segmentToTextFlow(i18n("multiplayer.powered_by"), Controllers::onHyperlinkAction));
-
-                thanksPane.getContent().addAll(pane);
-            }
-
-            content.getChildren().setAll(
-                    mainPane,
-                    ComponentList.createComponentListTitle(i18n("multiplayer.persistence")),
-                    persistencePane,
-                    ComponentList.createComponentListTitle(i18n("about")),
-                    thanksPane
-            );
-        }
-    }
-
-}
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/ExecutableHeaderHelper.java b/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/ExecutableHeaderHelper.java
deleted file mode 100644
index 66a0f0ee..00000000
--- a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/ExecutableHeaderHelper.java
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * Hello Minecraft! Launcher
- * Copyright (C) 2020  huangyuhui <huanghongxun2008@126.com> and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package org.jackhuang.hmcl.upgrade;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.nio.ByteBuffer;
-import java.nio.channels.FileChannel;
-import java.nio.channels.FileChannel.MapMode;
-import java.nio.file.Path;
-import java.util.Map;
-import java.util.Optional;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipFile;
-
-import org.jackhuang.hmcl.util.io.IOUtils;
-
-import static java.nio.file.StandardOpenOption.*;
-import static org.jackhuang.hmcl.util.Lang.mapOf;
-import static org.jackhuang.hmcl.util.Pair.pair;
-
-/**
- * Helper class for adding/removing executable header from HMCL file.
- *
- * @author yushijinhun
- */
-final class ExecutableHeaderHelper {
-    private ExecutableHeaderHelper() {}
-
-    private static Map<String, String> suffix2header = mapOf(
-            pair("exe", "assets/HMCLauncher.exe"),
-            pair("sh", "assets/HMCLauncher.sh")
-    );
-
-    private static Optional<String> getSuffix(Path file) {
-        String filename = file.getFileName().toString();
-        int idxDot = filename.lastIndexOf('.');
-        if (idxDot < 0) {
-            return Optional.empty();
-        } else {
-            return Optional.of(filename.substring(idxDot + 1));
-        }
-    }
-
-    private static Optional<byte[]> readHeader(ZipFile zip, String suffix) throws IOException {
-        String location = suffix2header.get(suffix);
-        if (location != null) {
-            ZipEntry entry = zip.getEntry(location);
-            if (entry != null && !entry.isDirectory()) {
-                try (InputStream in = zip.getInputStream(entry)) {
-                    return Optional.of(IOUtils.readFullyAsByteArray(in));
-                }
-            }
-        }
-        return Optional.empty();
-    }
-
-    private static int detectHeaderLength(ZipFile zip, FileChannel channel) throws IOException {
-        ByteBuffer buf = channel.map(MapMode.READ_ONLY, 0, channel.size());
-        suffixLoop: for (String suffix : suffix2header.keySet()) {
-            Optional<byte[]> header = readHeader(zip, suffix);
-            if (header.isPresent()) {
-                buf.rewind();
-                for (byte b : header.get()) {
-                    if (!buf.hasRemaining() || b != buf.get()) {
-                        continue suffixLoop;
-                    }
-                }
-                return header.get().length;
-            }
-        }
-        return 0;
-    }
-
-    /**
-     * Copies the executable and removes its header.
-     */
-    public static void copyWithoutHeader(Path from, Path to) throws IOException {
-        try (
-                FileChannel in = FileChannel.open(from, READ);
-                FileChannel out = FileChannel.open(to, CREATE, WRITE, TRUNCATE_EXISTING);
-                ZipFile zip = new ZipFile(from.toFile())
-        ) {
-            in.transferTo(detectHeaderLength(zip, in), Long.MAX_VALUE, out);
-        }
-    }
-
-    /**
-     * Copies the executable and appends the header according to the suffix.
-     */
-    public static void copyWithHeader(Path from, Path to) throws IOException {
-        try (
-                FileChannel in = FileChannel.open(from, READ);
-                FileChannel out = FileChannel.open(to, CREATE, WRITE, TRUNCATE_EXISTING);
-                ZipFile zip = new ZipFile(from.toFile())
-        ) {
-            Optional<String> suffix = getSuffix(to);
-            if (suffix.isPresent()) {
-                Optional<byte[]> header = readHeader(zip, suffix.get());
-                if (header.isPresent()) {
-                    out.write(ByteBuffer.wrap(header.get()));
-                }
-            }
-
-            in.transferTo(detectHeaderLength(zip, in), Long.MAX_VALUE, out);
-        }
-    }
-}
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/HMCLDownloadTask.java b/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/HMCLDownloadTask.java
deleted file mode 100644
index 8b6fdc06..00000000
--- a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/HMCLDownloadTask.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Hello Minecraft! Launcher
- * Copyright (C) 2020  huangyuhui <huanghongxun2008@126.com> and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package org.jackhuang.hmcl.upgrade;
-
-import org.jackhuang.hmcl.task.FileDownloadTask;
-import org.jackhuang.hmcl.util.Pack200Utils;
-import org.jackhuang.hmcl.util.io.NetworkUtils;
-import org.tukaani.xz.XZInputStream;
-
-import java.io.ByteArrayInputStream;
-import java.io.InputStream;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.util.jar.JarOutputStream;
-
-class HMCLDownloadTask extends FileDownloadTask {
-
-    private RemoteVersion.Type archiveFormat;
-
-    public HMCLDownloadTask(RemoteVersion version, Path target) {
-        super(NetworkUtils.toURL(version.getUrl()), target.toFile(), version.getIntegrityCheck());
-        archiveFormat = version.getType();
-    }
-
-    @Override
-    public void execute() throws Exception {
-        super.execute();
-
-        try {
-            Path target = getFile().toPath();
-
-            switch (archiveFormat) {
-                case JAR:
-                    break;
-
-                case PACK_XZ:
-                    byte[] raw = Files.readAllBytes(target);
-                    try (InputStream in = new XZInputStream(new ByteArrayInputStream(raw));
-                            JarOutputStream out = new JarOutputStream(Files.newOutputStream(target))) {
-                        Pack200Utils.unpack(in, out);
-                    }
-                    break;
-
-                default:
-                    throw new IllegalArgumentException("Unknown format: " + archiveFormat);
-            }
-        } catch (Throwable e) {
-            getFile().delete();
-            throw e;
-        }
-    }
-
-}
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/IntegrityChecker.java b/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/IntegrityChecker.java
deleted file mode 100644
index 0bb03df9..00000000
--- a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/IntegrityChecker.java
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
- * Hello Minecraft! Launcher
- * Copyright (C) 2020  huangyuhui <huanghongxun2008@126.com> and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package org.jackhuang.hmcl.upgrade;
-
-import org.jackhuang.hmcl.util.DigestUtils;
-import org.jackhuang.hmcl.util.io.IOUtils;
-import org.jackhuang.hmcl.util.io.JarUtils;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.nio.file.Path;
-import java.security.GeneralSecurityException;
-import java.security.KeyFactory;
-import java.security.PublicKey;
-import java.security.Signature;
-import java.security.spec.X509EncodedKeySpec;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.TreeMap;
-import java.util.logging.Level;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipFile;
-
-import static java.nio.charset.StandardCharsets.UTF_8;
-import static org.jackhuang.hmcl.util.Logging.LOG;
-
-/**
- * A class that checks the integrity of HMCL.
- *
- * @author yushijinhun
- */
-public final class IntegrityChecker {
-    private IntegrityChecker() {}
-
-    private static final String SIGNATURE_FILE = "META-INF/hmcl_signature";
-    private static final String PUBLIC_KEY_FILE = "assets/hmcl_signature_publickey.der";
-
-    private static PublicKey getPublicKey() throws IOException {
-        try (InputStream in = IntegrityChecker.class.getResourceAsStream("/" + PUBLIC_KEY_FILE)) {
-            if (in == null) {
-                throw new IOException("Public key not found");
-            }
-            return KeyFactory.getInstance("RSA").generatePublic(new X509EncodedKeySpec(IOUtils.readFullyAsByteArray(in)));
-        } catch (GeneralSecurityException e) {
-            throw new IOException("Failed to load public key", e);
-        }
-    }
-
-    private static boolean verifyJar(Path jarPath) throws IOException {
-        PublicKey publickey = getPublicKey();
-
-        byte[] signature = null;
-        Map<String, byte[]> fileFingerprints = new TreeMap<>();
-        try (ZipFile zip = new ZipFile(jarPath.toFile())) {
-            for (ZipEntry entry : zip.stream().toArray(ZipEntry[]::new)) {
-                String filename = entry.getName();
-                try (InputStream in = zip.getInputStream(entry)) {
-                    if (in == null) {
-                        throw new IOException("entry is null");
-                    }
-
-                    if (SIGNATURE_FILE.equals(filename)) {
-                        signature = IOUtils.readFullyAsByteArray(in);
-                    } else {
-                        fileFingerprints.put(filename, DigestUtils.digest("SHA-512", in));
-                    }
-                }
-            }
-        }
-
-        if (signature == null) {
-            throw new IOException("Signature is missing");
-        }
-
-        try {
-            Signature verifier = Signature.getInstance("SHA512withRSA");
-            verifier.initVerify(publickey);
-            for (Entry<String, byte[]> entry : fileFingerprints.entrySet()) {
-                verifier.update(DigestUtils.digest("SHA-512", entry.getKey().getBytes(UTF_8)));
-                verifier.update(entry.getValue());
-            }
-            return verifier.verify(signature);
-        } catch (GeneralSecurityException e) {
-            throw new IOException("Failed to verify signature", e);
-        }
-    }
-
-    static void requireVerifiedJar(Path jar) throws IOException {
-        if (!verifyJar(jar)) {
-            throw new IOException("Invalid signature: " + jar);
-        }
-    }
-
-    private static Boolean selfVerified = null;
-
-    /**
-     * Checks whether the current application is verified.
-     * This method is blocking.
-     */
-    public static synchronized boolean isSelfVerified() {
-        if (selfVerified != null) {
-            return selfVerified;
-        }
-        try {
-            verifySelf();
-            LOG.info("Successfully verified current JAR");
-            selfVerified = true;
-        } catch (IOException e) {
-            LOG.log(Level.WARNING, "Failed to verify myself, is the JAR corrupt?", e);
-            selfVerified = false;
-        }
-        return selfVerified;
-    }
-
-    private static void verifySelf() throws IOException {
-        Path self = JarUtils.thisJar().orElseThrow(() -> new IOException("Failed to find current HMCL location"));
-        requireVerifiedJar(self);
-    }
-}
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/RemoteVersion.java b/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/RemoteVersion.java
deleted file mode 100644
index c3ac2caa..00000000
--- a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/RemoteVersion.java
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * Hello Minecraft! Launcher
- * Copyright (C) 2020  huangyuhui <huanghongxun2008@126.com> and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package org.jackhuang.hmcl.upgrade;
-
-import com.google.gson.JsonElement;
-import com.google.gson.JsonObject;
-import com.google.gson.JsonParseException;
-import org.jackhuang.hmcl.task.FileDownloadTask.IntegrityCheck;
-import org.jackhuang.hmcl.util.Pack200Utils;
-import org.jackhuang.hmcl.util.gson.JsonUtils;
-import org.jackhuang.hmcl.util.io.NetworkUtils;
-
-import java.io.IOException;
-import java.util.Optional;
-
-public class RemoteVersion {
-
-    public static RemoteVersion fetch(UpdateChannel channel, String url) throws IOException {
-        try {
-            JsonObject response = JsonUtils.fromNonNullJson(NetworkUtils.doGet(NetworkUtils.toURL(url)), JsonObject.class);
-            String version = Optional.ofNullable(response.get("version")).map(JsonElement::getAsString).orElseThrow(() -> new IOException("version is missing"));
-            String jarUrl = Optional.ofNullable(response.get("jar")).map(JsonElement::getAsString).orElse(null);
-            String jarHash = Optional.ofNullable(response.get("jarsha1")).map(JsonElement::getAsString).orElse(null);
-            String packXZUrl = Optional.ofNullable(response.get("packxz")).map(JsonElement::getAsString).orElse(null);
-            String packXZHash = Optional.ofNullable(response.get("packxzsha1")).map(JsonElement::getAsString).orElse(null);
-            if (Pack200Utils.isSupported() && packXZUrl != null && packXZHash != null) {
-                return new RemoteVersion(channel, version, packXZUrl, Type.PACK_XZ, new IntegrityCheck("SHA-1", packXZHash));
-            } else if (jarUrl != null && jarHash != null) {
-                return new RemoteVersion(channel, version, jarUrl, Type.JAR, new IntegrityCheck("SHA-1", jarHash));
-            } else {
-                throw new IOException("No download url is available");
-            }
-        } catch (JsonParseException e) {
-            throw new IOException("Malformed response", e);
-        }
-    }
-
-    private final UpdateChannel channel;
-    private final String version;
-    private final String url;
-    private final Type type;
-    private final IntegrityCheck integrityCheck;
-
-    public RemoteVersion(UpdateChannel channel, String version, String url, Type type, IntegrityCheck integrityCheck) {
-        this.channel = channel;
-        this.version = version;
-        this.url = url;
-        this.type = type;
-        this.integrityCheck = integrityCheck;
-    }
-
-    public UpdateChannel getChannel() {
-        return channel;
-    }
-
-    public String getVersion() {
-        return version;
-    }
-
-    public String getUrl() {
-        return url;
-    }
-
-    public Type getType() {
-        return type;
-    }
-
-    public IntegrityCheck getIntegrityCheck() {
-        return integrityCheck;
-    }
-
-    @Override
-    public String toString() {
-        return "[" + version + " from " + url + "]";
-    }
-
-    public enum Type {
-        PACK_XZ,
-        JAR
-    }
-}
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/UpdateChannel.java b/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/UpdateChannel.java
deleted file mode 100644
index 998a3da7..00000000
--- a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/UpdateChannel.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Hello Minecraft! Launcher
- * Copyright (C) 2020  huangyuhui <huanghongxun2008@126.com> and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package org.jackhuang.hmcl.upgrade;
-
-import org.jackhuang.hmcl.Metadata;
-
-public enum UpdateChannel {
-    STABLE("stable"),
-    DEVELOPMENT("dev"),
-    NIGHTLY("nightly");
-
-    public final String channelName;
-
-    UpdateChannel(String channelName) {
-        this.channelName = channelName;
-    }
-
-    public static UpdateChannel getChannel() {
-        if (Metadata.isDev()) {
-            return DEVELOPMENT;
-        } else if (Metadata.isNightly()) {
-            return NIGHTLY;
-        } else {
-            return STABLE;
-        }
-    }
-}
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/UpdateChecker.java b/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/UpdateChecker.java
deleted file mode 100644
index 21ed94d2..00000000
--- a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/UpdateChecker.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * Hello Minecraft! Launcher
- * Copyright (C) 2020  huangyuhui <huanghongxun2008@126.com> and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package org.jackhuang.hmcl.upgrade;
-
-import javafx.application.Platform;
-import javafx.beans.binding.Bindings;
-import javafx.beans.binding.BooleanBinding;
-import javafx.beans.property.*;
-import javafx.beans.value.ObservableBooleanValue;
-import org.jackhuang.hmcl.Metadata;
-import org.jackhuang.hmcl.util.io.NetworkUtils;
-
-import java.io.IOException;
-import java.util.logging.Level;
-
-import static org.jackhuang.hmcl.util.Lang.mapOf;
-import static org.jackhuang.hmcl.util.Lang.thread;
-import static org.jackhuang.hmcl.util.Logging.LOG;
-import static org.jackhuang.hmcl.util.Pair.pair;
-import static org.jackhuang.hmcl.util.versioning.VersionNumber.asVersion;
-
-public final class UpdateChecker {
-    private UpdateChecker() {}
-
-    private static ObjectProperty<RemoteVersion> latestVersion = new SimpleObjectProperty<>();
-    private static BooleanBinding outdated = Bindings.createBooleanBinding(
-            () -> {
-                RemoteVersion latest = latestVersion.get();
-                if (latest == null || isDevelopmentVersion(Metadata.VERSION)) {
-                    return false;
-                } else {
-                    // We can update from development version to stable version,
-                    // which can be downgrading.
-                    return asVersion(latest.getVersion()).compareTo(asVersion(Metadata.VERSION)) != 0;
-                }
-            },
-            latestVersion);
-    private static ReadOnlyBooleanWrapper checkingUpdate = new ReadOnlyBooleanWrapper(false);
-
-    public static void init() {
-        requestCheckUpdate(UpdateChannel.getChannel());
-    }
-
-    public static RemoteVersion getLatestVersion() {
-        return latestVersion.get();
-    }
-
-    public static ReadOnlyObjectProperty<RemoteVersion> latestVersionProperty() {
-        return latestVersion;
-    }
-
-    public static boolean isOutdated() {
-        return outdated.get();
-    }
-
-    public static ObservableBooleanValue outdatedProperty() {
-        return outdated;
-    }
-
-    public static boolean isCheckingUpdate() {
-        return checkingUpdate.get();
-    }
-
-    public static ReadOnlyBooleanProperty checkingUpdateProperty() {
-        return checkingUpdate.getReadOnlyProperty();
-    }
-
-    private static RemoteVersion checkUpdate(UpdateChannel channel) throws IOException {
-        if (!IntegrityChecker.isSelfVerified() && !"true".equals(System.getProperty("hmcl.self_integrity_check.disable"))) {
-            throw new IOException("Self verification failed");
-        }
-
-        String url = NetworkUtils.withQuery(Metadata.UPDATE_URL, mapOf(
-                pair("version", Metadata.VERSION),
-                pair("channel", channel.channelName)));
-
-        return RemoteVersion.fetch(channel, url);
-    }
-
-    private static boolean isDevelopmentVersion(String version) {
-        return version.contains("@") || // eg. @develop@
-                version.contains("SNAPSHOT"); // eg. 3.1.SNAPSHOT
-    }
-
-    public static void requestCheckUpdate(UpdateChannel channel) {
-        Platform.runLater(() -> {
-            if (isCheckingUpdate())
-                return;
-            checkingUpdate.set(true);
-
-            thread(() -> {
-                RemoteVersion result = null;
-                try {
-                    result = checkUpdate(channel);
-                    LOG.info("Latest version (" + channel + ") is " + result);
-                } catch (IOException e) {
-                    LOG.log(Level.WARNING, "Failed to check for update", e);
-                }
-
-                RemoteVersion finalResult = result;
-                Platform.runLater(() -> {
-                    checkingUpdate.set(false);
-                    if (finalResult != null) {
-                        latestVersion.set(finalResult);
-                    }
-                });
-            }, "Update Checker", true);
-        });
-    }
-}
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/UpdateHandler.java b/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/UpdateHandler.java
deleted file mode 100644
index 4fa0e2ca..00000000
--- a/HMCL/src/main/java/org/jackhuang/hmcl/upgrade/UpdateHandler.java
+++ /dev/null
@@ -1,257 +0,0 @@
-/*
- * Hello Minecraft! Launcher
- * Copyright (C) 2020  huangyuhui <huanghongxun2008@126.com> and contributors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package org.jackhuang.hmcl.upgrade;
-
-import com.google.gson.Gson;
-import com.google.gson.JsonParseException;
-import javafx.application.Platform;
-
-import org.jackhuang.hmcl.Main;
-import org.jackhuang.hmcl.Metadata;
-import org.jackhuang.hmcl.task.Task;
-import org.jackhuang.hmcl.task.TaskExecutor;
-import org.jackhuang.hmcl.ui.Controllers;
-import org.jackhuang.hmcl.ui.UpgradeDialog;
-import org.jackhuang.hmcl.ui.construct.MessageDialogPane.MessageType;
-import org.jackhuang.hmcl.util.StringUtils;
-import org.jackhuang.hmcl.util.TaskCancellationAction;
-import org.jackhuang.hmcl.util.io.FileUtils;
-import org.jackhuang.hmcl.util.io.JarUtils;
-import org.jackhuang.hmcl.util.platform.JavaVersion;
-
-import javax.swing.*;
-import java.io.IOException;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
-import java.util.*;
-import java.util.concurrent.CancellationException;
-import java.util.logging.Level;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import static org.jackhuang.hmcl.ui.FXUtils.checkFxUserThread;
-import static org.jackhuang.hmcl.util.Lang.thread;
-import static org.jackhuang.hmcl.util.Logging.LOG;
-import static org.jackhuang.hmcl.util.i18n.I18n.i18n;
-
-public final class UpdateHandler {
-    private UpdateHandler() {}
-
-    /**
-     * @return whether to exit
-     */
-    public static boolean processArguments(String[] args) {
-        breakForceUpdateFeature();
-
-        if (isNestedApplication()) {
-            // updated from old versions
-            try {
-                performMigration();
-            } catch (IOException e) {
-                LOG.log(Level.WARNING, "Failed to perform migration", e);
-                JOptionPane.showMessageDialog(null, i18n("fatal.apply_update_failure", Metadata.PUBLISH_URL) + "\n" + StringUtils.getStackTrace(e), "Error", JOptionPane.ERROR_MESSAGE);
-            }
-            return true;
-        }
-
-        if (args.length == 2 && args[0].equals("--apply-to")) {
-            try {
-                applyUpdate(Paths.get(args[1]));
-            } catch (IOException e) {
-                LOG.log(Level.WARNING, "Failed to apply update", e);
-                JOptionPane.showMessageDialog(null, i18n("fatal.apply_update_failure", Metadata.PUBLISH_URL) + "\n" + StringUtils.getStackTrace(e), "Error", JOptionPane.ERROR_MESSAGE);
-            }
-            return true;
-        }
-
-        if (isFirstLaunchAfterUpgrade()) {
-            JOptionPane.showMessageDialog(null, i18n("fatal.migration_requires_manual_reboot"), "Info", JOptionPane.INFORMATION_MESSAGE);
-            return true;
-        }
-
-        return false;
-    }
-
-    public static void updateFrom(RemoteVersion version) {
-        checkFxUserThread();
-
-        Controllers.dialog(new UpgradeDialog(version, () -> {
-            Path downloaded;
-            try {
-                downloaded = Files.createTempFile("hmcl-update-", ".jar");
-            } catch (IOException e) {
-                LOG.log(Level.WARNING, "Failed to create temp file", e);
-                return;
-            }
-
-            Task<?> task = new HMCLDownloadTask(version, downloaded);
-
-            TaskExecutor executor = task.executor(false);
-            Controllers.taskDialog(executor, i18n("message.downloading"), TaskCancellationAction.NORMAL);
-            executor.start();
-            thread(() -> {
-                boolean success = executor.test();
-
-                if (success) {
-                    try {
-                        if (!IntegrityChecker.isSelfVerified()) {
-                            throw new IOException("Current JAR is not verified");
-                        }
-
-                        requestUpdate(downloaded, getCurrentLocation());
-                        System.exit(0);
-                    } catch (IOException e) {
-                        LOG.log(Level.WARNING, "Failed to update to " + version, e);
-                        Platform.runLater(() -> Controllers.dialog(StringUtils.getStackTrace(e), i18n("update.failed"), MessageType.ERROR));
-                    }
-
-                } else {
-                    Exception e = executor.getException();
-                    LOG.log(Level.WARNING, "Failed to update to " + version, e);
-                    if (e instanceof CancellationException) {
-                        Platform.runLater(() -> Controllers.showToast(i18n("message.cancelled")));
-                    } else {
-                        Platform.runLater(() -> Controllers.dialog(e.toString(), i18n("update.failed"), MessageType.ERROR));
-                    }
-                }
-            });
-        }));
-    }
-
-    private static void applyUpdate(Path target) throws IOException {
-        LOG.info("Applying update to " + target);
-
-        Path self = getCurrentLocation();
-        IntegrityChecker.requireVerifiedJar(self);
-        ExecutableHeaderHelper.copyWithHeader(self, target);
-
-        Optional<Path> newFilename = tryRename(target, Metadata.VERSION);
-        if (newFilename.isPresent()) {
-            LOG.info("Move " + target + " to " + newFilename.get());
-            try {
-                Files.move(target, newFilename.get());
-                target = newFilename.get();
-            } catch (IOException e) {
-                LOG.log(Level.WARNING, "Failed to move target", e);
-            }
-        }
-
-        startJava(target);
-    }
-
-    private static void requestUpdate(Path updateTo, Path self) throws IOException {
-        IntegrityChecker.requireVerifiedJar(updateTo);
-        startJava(updateTo, "--apply-to", self.toString());
-    }
-
-    private static void startJava(Path jar, String... appArgs) throws IOException {
-        List<String> commandline = new ArrayList<>();
-        commandline.add(JavaVersion.fromCurrentEnvironment().getBinary().toString());
-        commandline.add("-jar");
-        commandline.add(jar.toAbsolutePath().toString());
-        commandline.addAll(Arrays.asList(appArgs));
-        LOG.info("Starting process: " + commandline);
-        new ProcessBuilder(commandline)
-                .directory(Paths.get("").toAbsolutePath().toFile())
-                .inheritIO()
-                .start();
-    }
-
-    private static Optional<Path> tryRename(Path path, String newVersion) {
-        String filename = path.getFileName().toString();
-        Matcher matcher = Pattern.compile("^(?<prefix>[hH][mM][cC][lL][.-])(?<version>\\d+(?:\\.\\d+)*)(?<suffix>\\.[^.]+)$").matcher(filename);
-        if (matcher.find()) {
-            String newFilename = matcher.group("prefix") + newVersion + matcher.group("suffix");
-            if (!newFilename.equals(filename)) {
-                return Optional.of(path.resolveSibling(newFilename));
-            }
-        }
-        return Optional.empty();
-    }
-
-    private static Path getCurrentLocation() throws IOException {
-        return JarUtils.thisJar().orElseThrow(() -> new IOException("Failed to find current HMCL location"));
-    }
-
-    // ==== support for old versions ===
-    private static void performMigration() throws IOException {
-        LOG.info("Migrating from old versions");
-
-        Path location = getParentApplicationLocation()
-                .orElseThrow(() -> new IOException("Failed to get parent application location"));
-
-        requestUpdate(getCurrentLocation(), location);
-    }
-
-    /**
-     * This method must be called from the main thread.
-     */
-    private static boolean isNestedApplication() {
-        StackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();
-        for (int i = 0; i < stacktrace.length; i++) {
-            StackTraceElement element = stacktrace[i];
-            if (Main.class.getName().equals(element.getClassName()) && "main".equals(element.getMethodName())) {
-                // we've reached the main method
-                return i + 1 != stacktrace.length;
-            }
-        }
-        return false;
-    }
-
-    private static Optional<Path> getParentApplicationLocation() {
-        String command = System.getProperty("sun.java.command");
-        if (command != null) {
-            Path path = Paths.get(command);
-            if (Files.isRegularFile(path)) {
-                return Optional.of(path.toAbsolutePath());
-            }
-        }
-        return Optional.empty();
-    }
-
-    private static boolean isFirstLaunchAfterUpgrade() {
-        Optional<Path> currentPath = JarUtils.thisJar();
-        if (currentPath.isPresent()) {
-            Path updated = Metadata.HMCL_DIRECTORY.resolve("HMCL-" + Metadata.VERSION + ".jar");
-            if (currentPath.get().toAbsolutePath().equals(updated.toAbsolutePath())) {
-                return true;
-            }
-        }
-        return false;
-    }
-
-    private static void breakForceUpdateFeature() {
-        Path hmclVersionJson = Metadata.HMCL_DIRECTORY.resolve("hmclver.json");
-        if (Files.isRegularFile(hmclVersionJson)) {
-            try {
-                Map<?, ?> content = new Gson().fromJson(FileUtils.readText(hmclVersionJson), Map.class);
-                Object ver = content.get("ver");
-                if (ver instanceof String && ((String) ver).startsWith("3.")) {
-                    Files.delete(hmclVersionJson);
-                    LOG.info("Successfully broke the force update feature");
-                }
-            } catch (IOException e) {
-                LOG.log(Level.WARNING, "Failed to break the force update feature", e);
-            } catch (JsonParseException e) {
-                hmclVersionJson.toFile().delete();
-            }
-        }
-    }
-    // ====
-}
diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/util/CrashReporter.java b/HMCL/src/main/java/org/jackhuang/hmcl/util/CrashReporter.java
index 252265be..53b93d43 100644
--- a/HMCL/src/main/java/org/jackhuang/hmcl/util/CrashReporter.java
+++ b/HMCL/src/main/java/org/jackhuang/hmcl/util/CrashReporter.java
@@ -23,8 +23,6 @@ import javafx.scene.control.Alert.AlertType;
 import org.jackhuang.hmcl.Metadata;
 import org.jackhuang.hmcl.countly.CrashReport;
 import org.jackhuang.hmcl.ui.CrashWindow;
-import org.jackhuang.hmcl.upgrade.IntegrityChecker;
-import org.jackhuang.hmcl.upgrade.UpdateChecker;
 import org.jackhuang.hmcl.util.io.NetworkUtils;
 
 import java.io.IOException;
@@ -106,9 +104,6 @@ public class CrashReporter implements Thread.UncaughtExceptionHandler {
                     if (showCrashWindow) {
                         new CrashWindow(text).show();
                     }
-                    if (!UpdateChecker.isOutdated() && IntegrityChecker.isSelfVerified()) {
-                        reportToServer(report);
-                    }
                 }
             });
         } catch (Throwable handlingException) {
-- 
2.38.1