mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
new: upgrade on macos
This commit is contained in:
@@ -470,7 +470,7 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
||||||
CURRENT_PROJECT_VERSION = 510;
|
CURRENT_PROJECT_VERSION = 515;
|
||||||
DEVELOPMENT_TEAM = BA88US33G6;
|
DEVELOPMENT_TEAM = BA88US33G6;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist";
|
INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist";
|
||||||
@@ -478,7 +478,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 1.0.510;
|
MARKETING_VERSION = 1.0.515;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox;
|
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||||
@@ -602,7 +602,7 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
||||||
CURRENT_PROJECT_VERSION = 510;
|
CURRENT_PROJECT_VERSION = 515;
|
||||||
DEVELOPMENT_TEAM = BA88US33G6;
|
DEVELOPMENT_TEAM = BA88US33G6;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist";
|
INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist";
|
||||||
@@ -610,7 +610,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 1.0.510;
|
MARKETING_VERSION = 1.0.515;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox;
|
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||||
@@ -628,7 +628,7 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
||||||
CURRENT_PROJECT_VERSION = 510;
|
CURRENT_PROJECT_VERSION = 515;
|
||||||
DEVELOPMENT_TEAM = BA88US33G6;
|
DEVELOPMENT_TEAM = BA88US33G6;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist";
|
INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist";
|
||||||
@@ -636,7 +636,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 1.0.510;
|
MARKETING_VERSION = 1.0.515;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox;
|
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||||
@@ -657,7 +657,7 @@
|
|||||||
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
||||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 510;
|
CURRENT_PROJECT_VERSION = 515;
|
||||||
DEVELOPMENT_TEAM = BA88US33G6;
|
DEVELOPMENT_TEAM = BA88US33G6;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
@@ -670,7 +670,7 @@
|
|||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
"@executable_path/../../Frameworks",
|
"@executable_path/../../Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 1.0.510;
|
MARKETING_VERSION = 1.0.515;
|
||||||
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.StatusWidget;
|
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.StatusWidget;
|
||||||
@@ -696,7 +696,7 @@
|
|||||||
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
||||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 510;
|
CURRENT_PROJECT_VERSION = 515;
|
||||||
DEVELOPMENT_TEAM = BA88US33G6;
|
DEVELOPMENT_TEAM = BA88US33G6;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
@@ -709,7 +709,7 @@
|
|||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
"@executable_path/../../Frameworks",
|
"@executable_path/../../Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 1.0.510;
|
MARKETING_VERSION = 1.0.515;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.StatusWidget;
|
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.StatusWidget;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
@@ -732,7 +732,7 @@
|
|||||||
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
||||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 510;
|
CURRENT_PROJECT_VERSION = 515;
|
||||||
DEVELOPMENT_TEAM = BA88US33G6;
|
DEVELOPMENT_TEAM = BA88US33G6;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
@@ -745,7 +745,7 @@
|
|||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
"@executable_path/../../Frameworks",
|
"@executable_path/../../Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 1.0.510;
|
MARKETING_VERSION = 1.0.515;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.StatusWidget;
|
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.StatusWidget;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
|||||||
@@ -6,10 +6,8 @@ import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|||||||
import 'package:logging/logging.dart';
|
import 'package:logging/logging.dart';
|
||||||
import 'package:r_upgrade/r_upgrade.dart';
|
import 'package:r_upgrade/r_upgrade.dart';
|
||||||
import 'package:toolbox/core/extension/context.dart';
|
import 'package:toolbox/core/extension/context.dart';
|
||||||
import 'package:toolbox/core/utils/misc.dart' hide pathJoin;
|
|
||||||
import 'package:toolbox/data/model/app/update.dart';
|
import 'package:toolbox/data/model/app/update.dart';
|
||||||
import 'package:toolbox/data/res/path.dart';
|
import 'package:toolbox/data/res/path.dart';
|
||||||
import 'package:toolbox/data/res/ui.dart';
|
|
||||||
|
|
||||||
import '../data/provider/app.dart';
|
import '../data/provider/app.dart';
|
||||||
import '../data/res/build_data.dart';
|
import '../data/res/build_data.dart';
|
||||||
@@ -88,55 +86,16 @@ Future<void> doUpdate(BuildContext context, {bool force = false}) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _doUpdate(AppUpdate update, BuildContext context, S s) async {
|
Future<void> _doUpdate(AppUpdate update, BuildContext context, S s) async {
|
||||||
|
final url = update.url.current;
|
||||||
|
if (url == null) return;
|
||||||
|
|
||||||
if (isAndroid) {
|
if (isAndroid) {
|
||||||
final url = update.url.current;
|
|
||||||
if (url == null) return;
|
|
||||||
final fileName = url.split('/').last;
|
final fileName = url.split('/').last;
|
||||||
final id = await RUpgrade.upgrade(
|
await RUpgrade.upgrade(url, fileName: fileName);
|
||||||
url,
|
|
||||||
fileName: fileName,
|
|
||||||
isAutoRequestInstall: false,
|
|
||||||
);
|
|
||||||
RUpgrade.stream.listen((event) async {
|
|
||||||
if (event.status?.value == 3) {
|
|
||||||
if (id == null) {
|
|
||||||
showSnackBar(context, const Text('install id is null'));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
final sha256 = () {
|
|
||||||
try {
|
|
||||||
return fileName.split('.').first;
|
|
||||||
} catch (e) {
|
|
||||||
_logger.warning('sha256 parse failed: $e');
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}();
|
|
||||||
final dlPath = pathJoin(await _dlDir, fileName);
|
|
||||||
final computed = await getFileSha256(dlPath);
|
|
||||||
if (computed != sha256) {
|
|
||||||
_logger.info('Mismatch sha256: $computed, $sha256');
|
|
||||||
final resume = await showRoundDialog(
|
|
||||||
context: context,
|
|
||||||
title: Text(s.attention),
|
|
||||||
child: const Text('sha256 is null'),
|
|
||||||
actions: [
|
|
||||||
TextButton(
|
|
||||||
onPressed: () => context.pop(false),
|
|
||||||
child: Text(s.cancel),
|
|
||||||
),
|
|
||||||
TextButton(
|
|
||||||
onPressed: () => context.pop(true),
|
|
||||||
child: Text(s.ok, style: textRed),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
|
||||||
if (!resume) return;
|
|
||||||
}
|
|
||||||
RUpgrade.install(id);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else if (isIOS) {
|
} else if (isIOS) {
|
||||||
await RUpgrade.upgradeFromAppStore('1586449703');
|
await RUpgrade.upgradeFromAppStore('1586449703');
|
||||||
|
} else if (isMacOS) {
|
||||||
|
await openUrl(url);
|
||||||
} else {
|
} else {
|
||||||
showRoundDialog(
|
showRoundDialog(
|
||||||
context: context,
|
context: context,
|
||||||
@@ -160,4 +119,4 @@ Future<void> _rmDownloadApks() async {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String> get _dlDir async => pathJoin((await docDir).path, 'Download');
|
Future<String> get _dlDir async => joinPath((await docDir).path, 'Download');
|
||||||
|
|||||||
@@ -38,12 +38,7 @@ final _p = () {
|
|||||||
return PlatformType.unknown;
|
return PlatformType.unknown;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
final _pathSep = () {
|
final _pathSep = Platform.pathSeparator;
|
||||||
if (Platform.isWindows) {
|
|
||||||
return '\\';
|
|
||||||
}
|
|
||||||
return '/';
|
|
||||||
}();
|
|
||||||
|
|
||||||
PlatformType get platform => _p;
|
PlatformType get platform => _p;
|
||||||
String get pathSeparator => _pathSep;
|
String get pathSeparator => _pathSep;
|
||||||
@@ -73,7 +68,7 @@ String? getHomeDir() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Join two paths with platform specific separator
|
/// Join two paths with platform specific separator
|
||||||
String pathJoin(String path1, String path2) {
|
String joinPath(String path1, String path2) {
|
||||||
if (isWindows) {
|
if (isWindows) {
|
||||||
return path1 + (path1.endsWith('\\') ? '' : '\\') + path2;
|
return path1 + (path1.endsWith('\\') ? '' : '\\') + path2;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
import '../../../core/utils/platform.dart';
|
import '../../../core/utils/platform.dart';
|
||||||
|
|
||||||
class PathWithPrefix {
|
/// It's used on platform's file system.
|
||||||
|
/// So use [Platform.pathSeparator] to join path.
|
||||||
|
class LocalPath {
|
||||||
final String _prefixPath;
|
final String _prefixPath;
|
||||||
String _path = '/';
|
String _path = '/';
|
||||||
String? _prePath;
|
String? _prePath;
|
||||||
String get path => _prefixPath + _path;
|
String get path => _prefixPath + _path;
|
||||||
|
|
||||||
PathWithPrefix(String prefixPath) : _prefixPath = _trimSuffix(prefixPath);
|
LocalPath(String prefixPath) : _prefixPath = _trimSuffix(prefixPath);
|
||||||
|
|
||||||
void update(String newPath) {
|
void update(String newPath) {
|
||||||
_prePath = _path;
|
_prePath = _path;
|
||||||
@@ -21,7 +23,7 @@ class PathWithPrefix {
|
|||||||
_path = '/';
|
_path = '/';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_path = pathJoin(_path, newPath);
|
_path = joinPath(_path, newPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool get canBack => path != '$_prefixPath/';
|
bool get canBack => path != '$_prefixPath/';
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
class BuildData {
|
class BuildData {
|
||||||
static const String name = "ServerBox";
|
static const String name = "ServerBox";
|
||||||
static const int build = 510;
|
static const int build = 515;
|
||||||
static const String engine = "3.13.1";
|
static const String engine = "3.13.1";
|
||||||
static const String buildAt = "2023-08-29 10:32:08.906333";
|
static const String buildAt = "2023-08-30 16:31:26.338447";
|
||||||
static const int modifications = 4;
|
static const int modifications = 3;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ class _PrivateKeyListState extends State<PrivateKeysListPage>
|
|||||||
if (isDesktop && store.box.keys.isEmpty) {
|
if (isDesktop && store.box.keys.isEmpty) {
|
||||||
final home = getHomeDir();
|
final home = getHomeDir();
|
||||||
if (home == null) return;
|
if (home == null) return;
|
||||||
final idRsaFile = File(pathJoin(home, '.ssh/id_rsa'));
|
final idRsaFile = File(joinPath(home, '.ssh/id_rsa'));
|
||||||
if (!idRsaFile.existsSync()) return;
|
if (!idRsaFile.existsSync()) return;
|
||||||
final sysPk = PrivateKeyInfo(
|
final sysPk = PrivateKeyInfo(
|
||||||
id: 'system',
|
id: 'system',
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import 'package:provider/provider.dart';
|
|||||||
import 'package:toolbox/core/extension/media_queryx.dart';
|
import 'package:toolbox/core/extension/media_queryx.dart';
|
||||||
|
|
||||||
import '../../../core/route.dart';
|
import '../../../core/route.dart';
|
||||||
import '../../../core/utils/misc.dart' hide pathJoin;
|
import '../../../core/utils/misc.dart';
|
||||||
import '../../../core/utils/platform.dart';
|
import '../../../core/utils/platform.dart';
|
||||||
import '../../../core/utils/ui.dart';
|
import '../../../core/utils/ui.dart';
|
||||||
import '../../../data/model/app/net_view.dart';
|
import '../../../data/model/app/net_view.dart';
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class LocalStoragePage extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _LocalStoragePageState extends State<LocalStoragePage> {
|
class _LocalStoragePageState extends State<LocalStoragePage> {
|
||||||
PathWithPrefix? _path;
|
LocalPath? _path;
|
||||||
late S _s;
|
late S _s;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -45,12 +45,12 @@ class _LocalStoragePageState extends State<LocalStoragePage> {
|
|||||||
super.initState();
|
super.initState();
|
||||||
if (widget.initDir != null) {
|
if (widget.initDir != null) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_path = PathWithPrefix(widget.initDir!);
|
_path = LocalPath(widget.initDir!);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
sftpDir.then((dir) {
|
sftpDir.then((dir) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_path = PathWithPrefix(dir.path);
|
_path = LocalPath(dir.path);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import '../../../core/extension/numx.dart';
|
|||||||
import '../../../core/extension/stringx.dart';
|
import '../../../core/extension/stringx.dart';
|
||||||
import '../../../core/route.dart';
|
import '../../../core/route.dart';
|
||||||
import '../../../core/utils/misc.dart';
|
import '../../../core/utils/misc.dart';
|
||||||
import '../../../core/utils/platform.dart' hide pathJoin;
|
import '../../../core/utils/platform.dart';
|
||||||
import '../../../core/utils/ui.dart';
|
import '../../../core/utils/ui.dart';
|
||||||
import '../../../data/model/server/server_private_info.dart';
|
import '../../../data/model/server/server_private_info.dart';
|
||||||
import '../../../data/model/sftp/absolute_path.dart';
|
import '../../../data/model/sftp/absolute_path.dart';
|
||||||
|
|||||||
@@ -2,16 +2,16 @@ import 'dart:io';
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||||
import 'package:toolbox/data/provider/server.dart';
|
|
||||||
|
|
||||||
import '../../core/route.dart';
|
import '../../core/route.dart';
|
||||||
import '../../core/utils/misc.dart' hide pathJoin;
|
import '../../core/utils/misc.dart';
|
||||||
import '../../core/utils/platform.dart';
|
import '../../core/utils/platform.dart';
|
||||||
import '../../core/utils/server.dart';
|
import '../../core/utils/server.dart';
|
||||||
import '../../core/utils/ui.dart';
|
import '../../core/utils/ui.dart';
|
||||||
import '../../data/model/app/menu.dart';
|
import '../../data/model/app/menu.dart';
|
||||||
import '../../data/model/server/server_private_info.dart';
|
import '../../data/model/server/server_private_info.dart';
|
||||||
import '../../data/model/server/snippet.dart';
|
import '../../data/model/server/snippet.dart';
|
||||||
|
import '../../data/provider/server.dart';
|
||||||
import '../../data/provider/snippet.dart';
|
import '../../data/provider/snippet.dart';
|
||||||
import '../../locator.dart';
|
import '../../locator.dart';
|
||||||
import 'popup_menu.dart';
|
import 'popup_menu.dart';
|
||||||
@@ -161,7 +161,7 @@ Future<void> _gotoSSH(
|
|||||||
|
|
||||||
final path = () {
|
final path = () {
|
||||||
final tempKeyFileName = 'srvbox_pk_${spi.pubKeyId}';
|
final tempKeyFileName = 'srvbox_pk_${spi.pubKeyId}';
|
||||||
return pathJoin(Directory.systemTemp.path, tempKeyFileName);
|
return joinPath(Directory.systemTemp.path, tempKeyFileName);
|
||||||
}();
|
}();
|
||||||
final file = File(path);
|
final file = File(path);
|
||||||
final shouldGenKey = spi.pubKeyId != null;
|
final shouldGenKey = spi.pubKeyId != null;
|
||||||
|
|||||||
@@ -474,9 +474,9 @@
|
|||||||
baseConfigurationReference = C1C758C41C4E208965A68933 /* Pods-RunnerTests.debug.xcconfig */;
|
baseConfigurationReference = C1C758C41C4E208965A68933 /* Pods-RunnerTests.debug.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||||
CURRENT_PROJECT_VERSION = 510;
|
CURRENT_PROJECT_VERSION = 515;
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
MARKETING_VERSION = 1.0.510;
|
MARKETING_VERSION = 1.0.515;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = tech.lolli.serverBox.RunnerTests;
|
PRODUCT_BUNDLE_IDENTIFIER = tech.lolli.serverBox.RunnerTests;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
@@ -489,9 +489,9 @@
|
|||||||
baseConfigurationReference = 15AF97DF993E8968098D6EBE /* Pods-RunnerTests.release.xcconfig */;
|
baseConfigurationReference = 15AF97DF993E8968098D6EBE /* Pods-RunnerTests.release.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||||
CURRENT_PROJECT_VERSION = 510;
|
CURRENT_PROJECT_VERSION = 515;
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
MARKETING_VERSION = 1.0.510;
|
MARKETING_VERSION = 1.0.515;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = tech.lolli.serverBox.RunnerTests;
|
PRODUCT_BUNDLE_IDENTIFIER = tech.lolli.serverBox.RunnerTests;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
@@ -504,9 +504,9 @@
|
|||||||
baseConfigurationReference = 7CFA7DE7FABA75685DFB6948 /* Pods-RunnerTests.profile.xcconfig */;
|
baseConfigurationReference = 7CFA7DE7FABA75685DFB6948 /* Pods-RunnerTests.profile.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||||
CURRENT_PROJECT_VERSION = 510;
|
CURRENT_PROJECT_VERSION = 515;
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
MARKETING_VERSION = 1.0.510;
|
MARKETING_VERSION = 1.0.515;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = tech.lolli.serverBox.RunnerTests;
|
PRODUCT_BUNDLE_IDENTIFIER = tech.lolli.serverBox.RunnerTests;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
|
|||||||
Reference in New Issue
Block a user