Skip to content

Commit 83a544a

Browse files
committed
Update code to v1.0.24, fix hant, update hangover
1 parent c80be46 commit 83a544a

File tree

7 files changed

+37
-15
lines changed

7 files changed

+37
-15
lines changed

extra/cross/install-hangover-stable

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ echo "正在更新软件包..."
44
sudo apt update
55
sudo apt upgrade -y
66

7-
hangover_url="https://github.com/AndreRH/hangover/releases/download/hangover-9.20.1/hangover_9.20.1_debian12_bookworm_arm64.tar"
8-
latest_version="10.6.1"
7+
hangover_url="https://github.com/AndreRH/hangover/releases/download/hangover-10.10.1/hangover_10.10.1_debian12_bookworm_arm64.tar"
8+
latest_version="10.10.1"
99

1010
mirror_sites=(
1111
"https://gh.llkk.cc/"

lib/l10n/intl_en.arb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"installHangoverLatest": "Install Hangover Latest (may fail)",
7373
"uninstallHangover": "Uninstall Hangover",
7474
"clearWineData": "Clear Wine Data",
75-
"wineCommandsHint": "Common Wine commands. Click to launch GUI and wait patiently.\n\nTypical launch times:\nTiger T7510 6GB: over 1 minute\nSnapdragon 870 12GB: ~10 seconds",
75+
"wineCommandsHint": "Common Wine commands. Click to launch GUI and wait patiently.\n\nNote: DXVK is enabled by default. If the program crashes, try disabling it.\n\nTypical launch times:\nTiger T7510 6GB: over 1 minute\nSnapdragon 870 12GB: ~10 seconds",
7676
"switchToJapanese": "Switch System to Japanese",
7777
"userManual": "User Manual",
7878
"openSourceLicenses": "Open Source Licenses",

lib/l10n/intl_zh.arb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"installHangoverLatest": "安装Hangover最新版(可能出错)",
7373
"uninstallHangover": "卸载Hangover",
7474
"clearWineData": "清空Wine数据",
75-
"wineCommandsHint": "Wine的常用指令。点击后前往图形界面耐心等待。\n\n任意程序启动参考时间:\n虎贲T7510 6GB 超过一分钟\n骁龙870 12GB 约10秒\n",
75+
"wineCommandsHint": "Wine的常用指令。点击后前往图形界面耐心等待。\n\n注:DXVK默认为开启状态,如程序崩溃可尝试关闭\n\n任意程序启动参考时间:\n虎贲T7510 6GB 超过一分钟\n骁龙870 12GB 约10秒\n",
7676
"switchToJapanese": "切换系统到日语",
7777
"userManual": "使用说明",
7878
"openSourceLicenses": "开源许可",

lib/l10n/intl_zh_Hant.arb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"installHangoverLatest": "安裝 Hangover 最新版(可能有錯誤)",
7373
"uninstallHangover": "解除安裝 Hangover",
7474
"clearWineData": "清除 Wine 資料",
75-
"wineCommandsHint": "Wine 常用指令。點擊後進入圖形介面,請耐心等候。\n\n不同裝置啟動程式參考時間:\n虎賁 T7510 6GB 超過一分鐘\n驍龍 870 12GB 約 10 秒\n",
75+
"wineCommandsHint": "Wine 常用指令。點擊後進入圖形介面,請耐心等候。\n\n註:DXVK預設為開啟狀態,如程式崩潰可嘗試關閉\n\n不同裝置啟動程式參考時間:\n虎賁 T7510 6GB 超過一分鐘\n驍龍 870 12GB 約 10 秒\n",
7676
"switchToJapanese": "切換系統為日語",
7777
"userManual": "使用說明",
7878
"openSourceLicenses": "開源授權",

lib/main.dart

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,30 @@ class MyApp extends StatelessWidget {
5555
],
5656
supportedLocales: const [
5757
Locale('en'),
58-
Locale('zh'), // 简体
59-
Locale('zh', 'Hant'), // 繁體
58+
Locale.fromSubtags(languageCode: 'zh'), // generic Chinese 'zh'
59+
Locale.fromSubtags(
60+
languageCode: 'zh',
61+
scriptCode: 'Hans',
62+
), // generic simplified Chinese 'zh_Hans'
63+
Locale.fromSubtags(
64+
languageCode: 'zh',
65+
scriptCode: 'Hant',
66+
), // generic traditional Chinese 'zh_Hant'
67+
Locale.fromSubtags(
68+
languageCode: 'zh',
69+
scriptCode: 'Hans',
70+
countryCode: 'CN',
71+
), // 'zh_Hans_CN'
72+
Locale.fromSubtags(
73+
languageCode: 'zh',
74+
scriptCode: 'Hant',
75+
countryCode: 'TW',
76+
), // 'zh_Hant_TW'
77+
Locale.fromSubtags(
78+
languageCode: 'zh',
79+
scriptCode: 'Hant',
80+
countryCode: 'HK',
81+
), // 'zh_Hant_HK'
6082
],
6183
theme: ThemeData(
6284
colorScheme: lightDynamic,
@@ -486,7 +508,7 @@ sed -i -E "s@^(VNC_RESOLUTION)=.*@\\1=${w}x${h}@" \$(command -v startvnc)""");
486508
Text(AppLocalizations.of(context)!.hangoverDescription),
487509
const SizedBox.square(dimension: 8),
488510
Wrap(alignment: WrapAlignment.center, spacing: 4.0, runSpacing: 4.0, children: [
489-
OutlinedButton(style: D.commandButtonStyle, child: Text("${AppLocalizations.of(context)!.installHangoverStable}(10.6.1)"), onPressed: () async {
511+
OutlinedButton(style: D.commandButtonStyle, child: Text("${AppLocalizations.of(context)!.installHangoverStable}(10.10.1)"), onPressed: () async {
490512
Util.termWrite("bash ~/.local/share/tiny/extra/install-hangover-stable");
491513
G.pageIndex.value = 0;
492514
}),

pubspec.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,18 @@ packages:
7777
dependency: "direct main"
7878
description:
7979
name: device_info_plus
80-
sha256: "0c6396126421b590089447154c5f98a5de423b70cfb15b1578fd018843ee6f53"
80+
sha256: "98f28b42168cc509abc92f88518882fd58061ea372d7999aecc424345c7bff6a"
8181
url: "https://pub.dev"
8282
source: hosted
83-
version: "11.4.0"
83+
version: "11.5.0"
8484
device_info_plus_platform_interface:
8585
dependency: transitive
8686
description:
8787
name: device_info_plus_platform_interface
88-
sha256: "0b04e02b30791224b31969eb1b50d723498f402971bff3630bca2ba839bd1ed2"
88+
sha256: e1ea89119e34903dca74b883d0dd78eb762814f97fb6c76f35e9ff74d261a18f
8989
url: "https://pub.dev"
9090
source: hosted
91-
version: "7.0.2"
91+
version: "7.0.3"
9292
dynamic_color:
9393
dependency: "direct main"
9494
description:
@@ -732,4 +732,4 @@ packages:
732732
version: "0.0.6"
733733
sdks:
734734
dart: ">=3.8.0 <4.0.0"
735-
flutter: ">=3.27.0"
735+
flutter: ">=3.29.0"

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1616
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1717
# In Windows, build-name is used as the major, minor, and patch parts
1818
# of the product and file versions while build-number is used as the build suffix.
19-
version: 1.0.23+18
19+
version: 1.0.24+19
2020

2121
environment:
2222
sdk: '>=3.1.0 <4.0.0'
@@ -43,7 +43,7 @@ dependencies:
4343
wakelock_plus: ^1.3.2
4444
dynamic_color: ^1.7.0
4545
network_info_plus: ^6.1.4
46-
device_info_plus: ^11.4.0
46+
device_info_plus: ^11.5.0
4747
flutter_localizations:
4848
sdk: flutter
4949
intl: any

0 commit comments

Comments
 (0)