mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-25 15:17:28 -04:00
chore: bump version 0.1.4 (#2455)
This commit is contained in:
parent
5d0a349236
commit
a2e9d63f63
8 changed files with 34 additions and 427 deletions
|
@ -14,10 +14,12 @@ class _BuildTool {
|
|||
const _BuildTool({
|
||||
required this.repositoryRoot,
|
||||
required this.appVersion,
|
||||
this.arch,
|
||||
});
|
||||
|
||||
final String repositoryRoot;
|
||||
final String appVersion;
|
||||
final String? arch;
|
||||
|
||||
String get projectRoot =>
|
||||
[repositoryRoot, 'appflowy_flutter'].join(Platform.pathSeparator);
|
||||
|
@ -30,8 +32,9 @@ class _BuildTool {
|
|||
|
||||
Future<String> get _commandForOS async {
|
||||
// Check the operating system and CPU architecture
|
||||
var os = Platform.operatingSystem;
|
||||
var arch = Platform.isMacOS ? await _architecture : Platform.localHostname;
|
||||
final os = Platform.operatingSystem;
|
||||
final arch = this.arch ??
|
||||
(Platform.isMacOS ? await _architecture : Platform.localHostname);
|
||||
|
||||
// Determine the appropriate command based on the OS and architecture
|
||||
if (os == 'windows') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue