Skip to content
Browse files

use the appstore installation location 'net.limechat.LimeChat-AppStor…

…e' as the default theme folder
  • Loading branch information...
1 parent 21a39d9 commit 2eb680d8754d6b7da8be021cac18f166d012a823 @nickhammond nickhammond committed with Nov 22, 2011
Showing with 10 additions and 2 deletions.
  1. +10 −2 Rakefile
View
12 Rakefile
@@ -25,10 +25,18 @@ namespace :themes do
puts "Moving Files"
source = Dir.getwd + "/."
Dir.chdir
- target = Dir.getwd + '/Library/Application Support/LimeChat/Themes/'
+
+ app_support_base = Dir.getwd + '/Library/Application Support'
+ target = app_support_base + '/net.limechat.LimeChat-AppStore/Themes/' # app store installation dir
+
+ unless File.directory?(target)
+ target = app_support_base + '/LimeChat/Themes/'
+ end
+
FileUtils.cp_r(source, target, :remove_destination => true)
puts "Setting up Symlinks"
- Dir.chdir("#{Dir.getwd}/Library/Application Support/LimeChat/Themes/")
+ puts "Installing themes into #{target}"
+ Dir.chdir(target)
Dir.glob("#{File.dirname(__FILE__)}/**/*.css") { |css|
newcss = File.basename(css)
FileUtils.ln_s css, newcss, :force => true

0 comments on commit 2eb680d

Please sign in to comment.
Something went wrong with that request. Please try again.