Skip to content

Commit

Permalink
Reduce bin size
Browse files Browse the repository at this point in the history
  • Loading branch information
qvacua committed Nov 20, 2022
1 parent 018d8d3 commit 463e1f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions VimR/VimR.xcodeproj/project.pbxproj
Expand Up @@ -1129,6 +1129,7 @@
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 20221115.195322;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand Down Expand Up @@ -1190,6 +1191,7 @@
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 20221115.195322;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand Down
8 changes: 7 additions & 1 deletion bin/build_vimr.sh
@@ -1,6 +1,7 @@
#!/bin/bash
set -Eeuo pipefail

readonly strip_symbols=${strip_symbols:-true}
readonly notarize=${notarize:?"true or false"}
readonly use_carthage_cache=${use_carthage_cache:?"true or false"}
readonly clean=${clean:?"true or false"}
Expand Down Expand Up @@ -52,8 +53,13 @@ main () {
local -r build_path="./build"
build_vimr "${build_path}"

local -r -x vimr_app_path="${build_path}/Build/Products/Release/VimR.app"

if [[ "${strip_symbols}" == true ]]; then
strip -rSTx "${vimr_app_path}/Contents/MacOS/VimR"
fi

if [[ "${notarize}" == true ]]; then
local -r -x vimr_app_path="${build_path}/Build/Products/Release/VimR.app"
./bin/sign_vimr.sh
./bin/notarize_vimr.sh
fi
Expand Down

0 comments on commit 463e1f3

Please sign in to comment.