1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-25 06:43:24 +03:00

Refactor slightly

This commit is contained in:
Tae Won Ha 2020-02-14 20:19:55 +01:00
parent f0dc1933e5
commit ccdd83e76c
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
3 changed files with 6 additions and 4 deletions

View File

@ -14,9 +14,10 @@ readonly is_snapshot=${is_snapshot:?"true or false"}
readonly update_appcast=${update_appcast:?"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"} readonly update_snapshot_appcast_for_release=${update_snapshot_appcast_for_release:?"true or false"}
export marketing_version=${marketing_version} export marketing_version=${marketing_version:-"SNAPSHOT"}
readonly release_notes=${release_notes} readonly release_notes=${release_notes:-""}
readonly use_cache_carthage=${use_cache_carthage:?"true of false"}
if [[ "${is_snapshot}" = false ]] && [[ "${marketing_version}" == "" ]] ; then if [[ "${is_snapshot}" = false ]] && [[ "${marketing_version}" == "" ]] ; then
echo "### ERROR If not snapshot, then the marketing version must be set!" 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..." echo "Not publishing and no release => not incrementing the version..."
fi 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 pushd VimR > /dev/null
export readonly bundle_version=$(agvtool what-version | sed '2q;d' | sed -E 's/ +(.+)/\1/') export readonly bundle_version=$(agvtool what-version | sed '2q;d' | sed -E 's/ +(.+)/\1/')

View File

@ -64,7 +64,7 @@ if [[ ${code_sign} == true ]] ; then
pushd ${build_path}/Build/Products/Release > /dev/null pushd ${build_path}/Build/Products/Release > /dev/null
codesign --force -s "${identity}" --timestamp --options=runtime --entitlements="${entitlements_path}" \ codesign --force -s "${identity}" --timestamp --options=runtime --entitlements="${entitlements_path}" \
VimR.app/Contents/Frameworks/NvimView.framework/Versions/A/NvimServer 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/Resources/Autoupdate.app
codesign --force -s "${identity}" --deep --timestamp --options=runtime VimR.app/Contents/Frameworks/Sparkle.framework/Versions/A codesign --force -s "${identity}" --deep --timestamp --options=runtime VimR.app/Contents/Frameworks/Sparkle.framework/Versions/A
popd > /dev/null popd > /dev/null

View File

@ -28,6 +28,7 @@ Builds a new snapshot of VimR and pushes the tag:<br>
booleanParam('is_snapshot', true) booleanParam('is_snapshot', true)
booleanParam('update_appcast', true) booleanParam('update_appcast', true)
booleanParam('update_snapshot_appcast_for_release', true) booleanParam('update_snapshot_appcast_for_release', true)
booleanParam('use_cache_carthage', false)
} }
scm { scm {