Mac OSX Launcher: Added Carthage file + shell script bumpInfoPlist.sh

This commit is contained in:
meeh
2019-01-18 16:30:46 +00:00
parent a36777882e
commit e57606a9f6
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
github 'sparkle-project/Sparkle' == 1.21.0

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env ruby
git = `sh /etc/profile; which git`.chomp
app_build = `#{git} rev-list HEAD --count`.chomp.to_i
`/usr/libexec/PlistBuddy -c "Set :CFBundleVersion #{app_build}" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"`
puts "Updated #{ENV['TARGET_BUILD_DIR']}/#{ENV['INFOPLIST_PATH']}"