move appPath to config

This commit is contained in:
fuwa
2019-06-20 15:03:52 +08:00
parent cd039de7e6
commit f0533dcd4e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -20,6 +20,7 @@ along with CyberWOW. If not, see <https://www.gnu.org/licenses/>.
*/
const outputBin = 'wownerod';
const appPath = 'wownerod';
const arch = 'arm64';
// const arch = 'x86_64';
+1 -1
View File
@@ -27,13 +27,13 @@ import 'dart:async';
import 'dart:convert';
import 'helper.dart';
import '../config.dart';
Stream<String> runBinary (String name) async* {
final newPath = await getBinaryPath(name);
final appDocDir = await getApplicationDocumentsDirectory();
final appDocPath = appDocDir.path;
const appPath = 'wownerod';
final binDir = new Directory(appDocDir.path + "/" + appPath);
await binDir.create();