mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-24 22:33:52 +03:00
Refactor slightly
This commit is contained in:
parent
f0dc1933e5
commit
ccdd83e76c
@ -14,9 +14,10 @@ readonly is_snapshot=${is_snapshot:?"true or false"}
|
||||
readonly update_appcast=${update_appcast:?"true or false"}
|
||||
readonly update_snapshot_appcast_for_release=${update_snapshot_appcast_for_release:?"true or false"}
|
||||
|
||||
export marketing_version=${marketing_version}
|
||||
readonly release_notes=${release_notes}
|
||||
export marketing_version=${marketing_version:-"SNAPSHOT"}
|
||||
readonly release_notes=${release_notes:-""}
|
||||
|
||||
readonly use_cache_carthage=${use_cache_carthage:?"true of false"}
|
||||
|
||||
if [[ "${is_snapshot}" = false ]] && [[ "${marketing_version}" == "" ]] ; then
|
||||
echo "### ERROR If not snapshot, then the marketing version must be set!"
|
||||
@ -62,7 +63,7 @@ else
|
||||
echo "Not publishing and no release => not incrementing the version..."
|
||||
fi
|
||||
|
||||
code_sign=true use_carthage_cache=false ./bin/build_vimr.sh
|
||||
code_sign=true use_carthage_cache=${use_cache_carthage} ./bin/build_vimr.sh
|
||||
|
||||
pushd VimR > /dev/null
|
||||
export readonly bundle_version=$(agvtool what-version | sed '2q;d' | sed -E 's/ +(.+)/\1/')
|
||||
|
@ -64,7 +64,7 @@ if [[ ${code_sign} == true ]] ; then
|
||||
pushd ${build_path}/Build/Products/Release > /dev/null
|
||||
codesign --force -s "${identity}" --timestamp --options=runtime --entitlements="${entitlements_path}" \
|
||||
VimR.app/Contents/Frameworks/NvimView.framework/Versions/A/NvimServer
|
||||
codesign --force -s "${identity}" --timestamp --options=runtime VimR.app/Contents/Frameworks/NvimView.framework/Versions/A
|
||||
codesign --force -s "${identity}" --deep --timestamp --options=runtime VimR.app/Contents/Frameworks/NvimView.framework/Versions/A
|
||||
codesign --force -s "${identity}" --deep --timestamp --options=runtime VimR.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app
|
||||
codesign --force -s "${identity}" --deep --timestamp --options=runtime VimR.app/Contents/Frameworks/Sparkle.framework/Versions/A
|
||||
popd > /dev/null
|
||||
|
@ -28,6 +28,7 @@ Builds a new snapshot of VimR and pushes the tag:<br>
|
||||
booleanParam('is_snapshot', true)
|
||||
booleanParam('update_appcast', true)
|
||||
booleanParam('update_snapshot_appcast_for_release', true)
|
||||
booleanParam('use_cache_carthage', false)
|
||||
}
|
||||
|
||||
scm {
|
||||
|
Loading…
Reference in New Issue
Block a user