Skip to content

Commit

Permalink
fix (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarassh authored Dec 12, 2024
1 parent f7e6f83 commit f2ee342
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"request": "launch",
"name": "Bash-Debug (hardcoded script name)",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/scripts/macos/installv2.sh",
"program": "${workspaceFolder}/scripts/macos/install.sh",
"args": [
"5fb8646c69fe23b6a8c9060a117a4218867acb2b2019df36f2627620fa8d5077" // sample key - change to your key
]
Expand Down
5 changes: 5 additions & 0 deletions scripts/macos/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ validate_private_key() {

# Define variables and paths
define_paths() {
USER_AGENTS_DIR="$HOME/Library/LaunchAgents"
COVALENT_DIR="$HOME/.covalent"
PLIST_FILE="$HOME/Library/LaunchAgents/com.covalent.light-client.plist"
IPFS_PLIST_FILE="$HOME/Library/LaunchAgents/com.covalent.ipfs.plist"
Expand Down Expand Up @@ -169,6 +170,8 @@ download_files() {

# Create and configure IPFS plist
create_ipfs_plist() {
mkdir -p "$USER_AGENTS_DIR"

cat <<EOF > "$IPFS_PLIST_FILE"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Expand Down Expand Up @@ -212,6 +215,8 @@ EOF

# Create and configure Light Client plist
create_light_client_plist() {
mkdir -p "$USER_AGENTS_DIR"

cat <<EOF > "$PLIST_FILE"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Expand Down

0 comments on commit f2ee342

Please sign in to comment.