Skip to content

Commit

Permalink
use the appstore installation location 'net.limechat.LimeChat-AppStor…
Browse files Browse the repository at this point in the history
…e' as the default theme folder
  • Loading branch information
nickhammond authored and tsykoduk committed Mar 29, 2012
1 parent 21a39d9 commit 2eb680d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Rakefile
Expand Up @@ -25,10 +25,18 @@ namespace :themes do
puts "Moving Files" puts "Moving Files"
source = Dir.getwd + "/." source = Dir.getwd + "/."
Dir.chdir 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) FileUtils.cp_r(source, target, :remove_destination => true)
puts "Setting up Symlinks" 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| Dir.glob("#{File.dirname(__FILE__)}/**/*.css") { |css|
newcss = File.basename(css) newcss = File.basename(css)
FileUtils.ln_s css, newcss, :force => true FileUtils.ln_s css, newcss, :force => true
Expand Down

0 comments on commit 2eb680d

Please sign in to comment.