From e57606a9f679d2d45d291f0dca468975b0f2aa2a Mon Sep 17 00:00:00 2001 From: meeh Date: Fri, 18 Jan 2019 16:30:46 +0000 Subject: [PATCH] Mac OSX Launcher: Added Carthage file + shell script bumpInfoPlist.sh --- launchers/macosx/Carthage | 3 +++ launchers/macosx/bumpInfoPlist.sh | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 launchers/macosx/Carthage create mode 100644 launchers/macosx/bumpInfoPlist.sh diff --git a/launchers/macosx/Carthage b/launchers/macosx/Carthage new file mode 100644 index 000000000..7ebbd3a0f --- /dev/null +++ b/launchers/macosx/Carthage @@ -0,0 +1,3 @@ +github 'sparkle-project/Sparkle' == 1.21.0 + + diff --git a/launchers/macosx/bumpInfoPlist.sh b/launchers/macosx/bumpInfoPlist.sh new file mode 100644 index 000000000..28728b4a3 --- /dev/null +++ b/launchers/macosx/bumpInfoPlist.sh @@ -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']}" +