Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
Fixes forks path detection on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
gilnobrega committed Jul 14, 2021
1 parent 4f50d9d commit 5163643
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion environment_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ environment_config:
fields: # set of fields for command
version: # key name
const: true # optional, default to TRUE
default: 1.5.2 # optional, default value for key, if not provided key will be required during command run
default: 1.5.2.1 # optional, default value for key, if not provided key will be required during command run
dotenv: true # optional, default to FALSE, if this field should be added to .env file

8 changes: 7 additions & 1 deletion lib/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,13 @@ Make sure this folder has the same structure as Chia's GitHub repo.""");
io.Directory("/usr/lib/${_blockchain.binaryName}-blockchain");
file = "/resources/app.asar.unpacked/daemon/${_blockchain.binaryName}";
} else if (io.Platform.isMacOS) {
chiaRootDir = io.Directory("/Applications/Chia.app/Contents");
//capitalizes first letter of a string
String capitalize(String input) {
return "${input[0].toUpperCase()}${input.substring(1)}";
}

chiaRootDir = io.Directory(
"/Applications/${capitalize(_blockchain.binaryName)}.app/Contents");
file = "/Resources/app.asar.unpacked/daemon/${_blockchain.binaryName}";
}

Expand Down

0 comments on commit 5163643

Please sign in to comment.