Browse Source

Update update feed script

master
Christopher Snowhill 5 months ago
parent
commit
52a63dc5bc
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      Scripts/update_feed.rb

+ 1
- 4
Scripts/update_feed.rb View File

@@ -49,7 +49,7 @@ appcast_revision_code = appcast_revision_split[1]
# 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#{ENV['HOME']}/Applications"
script_path = File.expand_path(File.dirname(__FILE__))
app_path = "#{script_path}/build/Build/Products/Release"
app_path = "#{Dir.home}/Desktop/Cog"

plist = open("#{app_path}/Cog.app/Contents/Info.plist")
plistdoc = Nokogiri::XML(plist)
@@ -81,9 +81,6 @@ if appcast_revision < latest_revision
#Copy the replacement build
%x[cp -R '#{app_path}/Cog.app' '#{temp_path}/Cog.app']

#Sign it!
%x[codesign -s 'Developer ID Application' -f '#{temp_path}/Cog.app']

#Zip the app!
%x[rm -f '#{temp_path}/#{feed}.zip']
%x[ditto -c -k --sequesterRsrc --keepParent --zlibCompressionLevel 9 '#{temp_path}/Cog.app' '#{temp_path}/#{feed}.zip']


Loading…
Cancel
Save