Fixed home directory location inside archives

CQTexperiment
Chris Moeller 2013-11-03 00:58:25 -07:00
parent dd2386aba8
commit 8451c45931
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ appcast_revision_code = appcast_revision_split[2]
archivedir = "~/Library/Developer/Xcode/Archives"
latest_archive = %x[find #{archivedir} -type d -name 'Cog *.xcarchive' -print0 | xargs -0 stat -f "%m %N" -t "%Y" | sort -r | head -n1 | sed -E 's/^[0-9]+ //'].rstrip
app_path = "#{latest_archive}/Products/Users/#{ENV['USER']}/Applications"
app_path = "#{latest_archive}/Products#{ENV['HOME']}/Applications"
plist = open("#{app_path}/Cog.app/Contents/Info.plist")
plistdoc = Document.new(plist)