Update script once again attempts to compile the App bundle first, and pulls it from the Xcode DerivedData tree.

CQTexperiment
Chris Moeller 2013-10-22 04:18:58 -07:00
parent 0f80bf3bc0
commit 35ccee268e
1 changed files with 8 additions and 2 deletions

View File

@ -45,12 +45,18 @@ if appcast_revision < latest_revision
end
description += line
end
%[xcodebuild -workspace Cog.xcodeproj/project.xcworkspace -scheme Cog -configuration Release 2>&1].each_line do |line|
if line.match(/\*\* BUILD FAILD \*\*/)
exit
end
end
filename = "Cog-#{revision_code}.tbz"
#Zip the app!
%x[rm -f ~/Documents/#{feed}.tar.bz2]
%x[tar -C ~/Documents -cjf #{feed}.tar.bz2 Cog.app]
%x[tar -C ~/Library/Developer/Xcode/DerivedData/Cog-gnnabzpuhvwhikcgqtwgtiebzjli/Build/Products/Release -cjf ~/Documents/#{feed}.tar.bz2 Cog.app]
filesize = File.size("~/Documents/#{feed}.tar.bz2")