Skip to content

Commit

Permalink
🚀 Optimized for MacOS!
Browse files Browse the repository at this point in the history
Signed-off-by: omegaui <[email protected]>
  • Loading branch information
omegaui committed Apr 7, 2023
1 parent 9a58c8b commit ee941b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ All you need to do is to replace,
Only this line
```dart
_serverProcess = await Process.start(
"${Platform.isLinux ? "./" : ""}chat_desk_core.exe", []);
"${!Platform.isWindows ? "./" : ""}chat_desk_core.exe", []);
```

With this line
Expand Down
4 changes: 2 additions & 2 deletions lib/io/server_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import 'dart:convert';
import 'dart:io';

import 'package:chat_desk/core/client/client.dart';
import 'package:chat_desk/io/app_manager.dart';
import 'package:chat_desk/core/io/logger.dart';
import 'package:chat_desk/core/io/message.dart';
import 'package:chat_desk/io/app_manager.dart';
import 'package:chat_desk/main.dart';
import 'package:chat_desk/ui/screens/chat_room/chat_room.dart';
import 'package:chat_desk/ui/screens/chat_room/user_tabs.dart';
Expand Down Expand Up @@ -36,7 +36,7 @@ class ServerHandler {
return;
}
_serverProcess = await Process.start(
"${Platform.isLinux ? "./" : ""}chat_desk_core.exe", []);
"${!Platform.isWindows ? "./" : ""}chat_desk_core.exe", []);
_serverProcess.stdout.transform(utf8.decoder).forEach((responses) {
if (!responses.contains("\n")) {
responses += "\n";
Expand Down
6 changes: 5 additions & 1 deletion server-config.json
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
{"host":"192.168.15.208","port":8080,"code":"code"}
{
"host": "127.0.0.1",
"port": 8080,
"code": "code"
}

0 comments on commit ee941b6

Please sign in to comment.