Skip to content

Commit

Permalink
refinement: update alpaca to v1.1.0
Browse files Browse the repository at this point in the history
* Update alpaca bin to v1.1.0
* Move logs from ~/ to ~/Library/Logs.
  • Loading branch information
jamesmoriarty committed Jul 27, 2020
1 parent 2b0ea85 commit 625ad6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ else
--verbose \
--location \
--output src/bin/alpaca \
https://github.com/samuong/alpaca/releases/download/v1.0.0/darwin-amd64
https://github.com/samuong/alpaca/releases/download/v1.1.0/darwin-amd64
fi

cp \
Expand Down
6 changes: 3 additions & 3 deletions src/alpaca.3s.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

# Configuration

PLIST_NAME = "com.github.alpaca"
LOG_PATH = File.join(Dir.home, "/Library/Logs/#{PLIST_NAME}.log")
PLIST_PATH = File.expand_path(File.join(Dir.home, "/Library/LaunchAgents/#{PLIST_NAME}.plist"))
APP_PATH = File.join(File.expand_path(File.dirname(File.dirname(__FILE__))), "MacOS")
ALPACA_PATH = File.join(APP_PATH, "/bin/alpaca")
INSTALL_PATH = File.join(APP_PATH, "/bin/install")
UNINSTALL_PATH = File.join(APP_PATH, "/bin/uninstall")
LOG_PATH = File.join(Dir.home, ".alpaca.log")
PLIST_NAME = "com.github.alpaca"
PLIST_PATH = File.expand_path(File.join(Dir.home, "/Library/LaunchAgents/#{PLIST_NAME}.plist"))
ICON_BASE64 = Base64.strict_encode64(IO.read(File.join(APP_PATH, "/img/icon.png"))).chomp

def running?(plist_name)
Expand Down

0 comments on commit 625ad6d

Please sign in to comment.