This commit is contained in:
xkeyC 2023-11-16 20:42:16 +08:00
parent 7f8397d6c6
commit 1d7d591a0d
7 changed files with 27 additions and 15 deletions

View File

@ -17,8 +17,8 @@ import 'package:window_manager/window_manager.dart';
import '../base/ui.dart'; import '../base/ui.dart';
class AppConf { class AppConf {
static const String appVersion = "2.9.15 Beta"; static const String appVersion = "2.9.9 Beta";
static const int appVersionCode = 29; static const int appVersionCode = 26;
static const String appVersionDate = "2023-11-11"; static const String appVersionDate = "2023-11-11";
static const String gitlabHomeUrl = static const String gitlabHomeUrl =

View File

@ -6,7 +6,6 @@
import 'dart:convert'; import 'dart:convert';
import 'dart:ffi'; import 'dart:ffi';
import 'dart:typed_data';
import 'package:ffi/ffi.dart'; import 'package:ffi/ffi.dart';
import 'package:win32/win32.dart'; import 'package:win32/win32.dart';
@ -18,7 +17,7 @@ class Win32Credentials {
{required String credentialName, {required String credentialName,
required String userName, required String userName,
required String password}) { required String password}) {
final examplePassword = utf8.encode(password) as Uint8List; final examplePassword = utf8.encode(password);
final blob = examplePassword.allocatePointer(); final blob = examplePassword.allocatePointer();
final credential = calloc<CREDENTIAL>() final credential = calloc<CREDENTIAL>()

View File

@ -18,10 +18,16 @@ class AboutUI extends BaseUI<AboutUIModel> {
const SizedBox(height: 64), const SizedBox(height: 64),
Image.asset("assets/app_logo.png", width: 64, height: 64), Image.asset("assets/app_logo.png", width: 64, height: 64),
const SizedBox(height: 6), const SizedBox(height: 6),
const Text( if (AppConf.isMSE)
"星际公民盒子 V${AppConf.appVersion}", const Text(
style: TextStyle(fontSize: 21), "SCN公民盒子 V${AppConf.appVersion}",
), style: TextStyle(fontSize: 18),
)
else
const Text(
"星际公民盒子 V${AppConf.appVersion}",
style: TextStyle(fontSize: 18),
),
const SizedBox(height: 12), const SizedBox(height: 12),
Button( Button(
onPressed: model.checkUpdate, onPressed: model.checkUpdate,

View File

@ -587,8 +587,8 @@ class HomeUI extends BaseUI<HomeUIModel> {
"为注册表项添加 ForcedPhysicalSectorSizeInBytes 值 模拟旧设备。硬盘分区(${item.value})"), "为注册表项添加 ForcedPhysicalSectorSizeInBytes 值 模拟旧设备。硬盘分区(${item.value})"),
"eac_file_miss": const MapEntry("EasyAntiCheat 文件丢失", "eac_file_miss": const MapEntry("EasyAntiCheat 文件丢失",
"未在 LIVE 文件夹找到 EasyAntiCheat 文件 或 文件不完整,请使用 RSI 启动器校验文件"), "未在 LIVE 文件夹找到 EasyAntiCheat 文件 或 文件不完整,请使用 RSI 启动器校验文件"),
"eac_not_install": const MapEntry("EasyAntiCheat 未安装", "eac_not_install": const MapEntry("EasyAntiCheat 未安装 或 未正常退出",
"EasyAntiCheat 未安装,请点击修复为您一键安装。(在 EAC 完成首次启动前,本条目持续存在"), "EasyAntiCheat 未安装,请点击修复为您一键安装。(在游戏正常启动并结束前,该问题会一直出现,若您因为其他原因游戏闪退,可忽略此条目"),
"cn_user_name": "cn_user_name":
const MapEntry("中文用户名!", "中文用户名可能会导致游戏启动/安装错误! 点击修复按钮查看修改教程!"), const MapEntry("中文用户名!", "中文用户名可能会导致游戏启动/安装错误! 点击修复按钮查看修改教程!"),
"cn_install_path": MapEntry("中文安装路径!", "cn_install_path": MapEntry("中文安装路径!",

View File

@ -27,8 +27,10 @@ class IndexUI extends BaseUI<IndexUIModel> {
children: [ children: [
Image.asset("assets/app_logo.png", width: 24, height: 24), Image.asset("assets/app_logo.png", width: 24, height: 24),
const SizedBox(width: 12), const SizedBox(width: 12),
const Text( if (AppConf.isMSE)
"星际公民盒子 V${AppConf.appVersion}${AppConf.isMSE ? " MSE" : ""}"), const Text("SCN公民盒子 V${AppConf.appVersion}")
else
const Text("星际公民盒子 V${AppConf.appVersion}"),
], ],
), ),
), ),

View File

@ -74,7 +74,7 @@ dev_dependencies:
# rules and activating additional ones. # rules and activating additional ones.
flutter_lints: ^3.0.0 flutter_lints: ^3.0.0
msix: ^3.16.4 msix: ^3.16.4
ffigen: ^9.0.1 ffigen: ^10.0.0
build_runner: ^2.4.6 build_runner: ^2.4.6
freezed: ^2.4.5 freezed: ^2.4.5
@ -126,7 +126,7 @@ msix_config:
publisher_display_name: xkeyC Studio publisher_display_name: xkeyC Studio
identity_name: 56575xkeyC.MSE identity_name: 56575xkeyC.MSE
publisher: CN=B54C897B-C263-4680-B6AB-4913C603DF87 publisher: CN=B54C897B-C263-4680-B6AB-4913C603DF87
msix_version: 2.9.15.0 msix_version: 2.9.16.0
logo_path: ./assets/app_logo.png logo_path: ./assets/app_logo.png
capabilities: internetClient,allowElevation capabilities: internetClient,allowElevation
languages: zh-cn languages: zh-cn

View File

@ -10,6 +10,11 @@ include(${EPHEMERAL_DIR}/generated_config.cmake)
# https://github.com/flutter/flutter/issues/57146. # https://github.com/flutter/flutter/issues/57146.
set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
# Set fallback configurations for older versions of the flutter tool.
if (NOT DEFINED FLUTTER_TARGET_PLATFORM)
set(FLUTTER_TARGET_PLATFORM "windows-x64")
endif()
# === Flutter Library === # === Flutter Library ===
set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
@ -92,7 +97,7 @@ add_custom_command(
COMMAND ${CMAKE_COMMAND} -E env COMMAND ${CMAKE_COMMAND} -E env
${FLUTTER_TOOL_ENVIRONMENT} ${FLUTTER_TOOL_ENVIRONMENT}
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
windows-x64 $<CONFIG> ${FLUTTER_TARGET_PLATFORM} $<CONFIG>
VERBATIM VERBATIM
) )
add_custom_target(flutter_assemble DEPENDS add_custom_target(flutter_assemble DEPENDS