mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-23 10:13:32 +03:00
Use codesign to sign, not Xcode
This commit is contained in:
parent
683623f2db
commit
379bf486c8
1
Brewfile
1
Brewfile
@ -6,5 +6,6 @@ brew 'cmake'
|
||||
brew 'pkg-config'
|
||||
brew 'gettext'
|
||||
brew 'ninja'
|
||||
brew 'coreutils'
|
||||
|
||||
brew 'python3'
|
||||
|
@ -2,15 +2,11 @@
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.allow-jit</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.disable-executable-page-protection</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.disable-library-validation</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
@ -1146,6 +1146,7 @@
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "-";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 341;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
@ -1208,7 +1209,7 @@
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
|
||||
CODE_SIGN_IDENTITY = "-";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 341;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
@ -1259,20 +1260,16 @@
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CODE_SIGN_IDENTITY = "Developer ID Application: Tae Won Ha (H96Q2NKTQH)";
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
DEFINES_MODULE = YES;
|
||||
DEVELOPMENT_TEAM = H96Q2NKTQH;
|
||||
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||
DYLIB_CURRENT_VERSION = 341;
|
||||
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/../Carthage/Build/Mac";
|
||||
FRAMEWORK_VERSION = A;
|
||||
INFOPLIST_FILE = NvimView/Info.plist;
|
||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
|
||||
OTHER_CODE_SIGN_FLAGS = "--timestamp";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.qvacua.NvimView;
|
||||
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
|
||||
SKIP_INSTALL = YES;
|
||||
@ -1329,10 +1326,6 @@
|
||||
CLANG_ENABLE_MODULES = NO;
|
||||
CLANG_LINK_OBJC_RUNTIME = NO;
|
||||
CLANG_MODULES_AUTOLINK = NO;
|
||||
CODE_SIGN_ENTITLEMENTS = NvimServer/NvimServer.entitlements;
|
||||
CODE_SIGN_IDENTITY = "Developer ID Application: Tae Won Ha (H96Q2NKTQH)";
|
||||
DEVELOPMENT_TEAM = H96Q2NKTQH;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = "INCLUDE_GENERATED_DECLARATIONS=1";
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"$(PROJECT_DIR)/neovim/src",
|
||||
@ -1345,7 +1338,6 @@
|
||||
"$(PROJECT_DIR)/neovim/build/lib",
|
||||
"$(PROJECT_DIR)/neovim/.deps/usr/lib",
|
||||
);
|
||||
OTHER_CODE_SIGN_FLAGS = "--timestamp";
|
||||
OTHER_LDFLAGS = (
|
||||
"-liconv",
|
||||
"-lpthread",
|
||||
|
@ -1331,8 +1331,8 @@
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
4BEBA5041CFF374B00673FDF /* VimR */,
|
||||
4BEBA5131CFF374B00673FDF /* VimRTests */,
|
||||
4B2636A7223A487B00021586 /* VimR.dev */,
|
||||
4BEBA5131CFF374B00673FDF /* VimRTests */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
@ -1838,7 +1838,6 @@
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
DEFINES_MODULE = YES;
|
||||
DEVELOPMENT_TEAM = H96Q2NKTQH;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/../Carthage/Build/Mac",
|
||||
@ -1868,7 +1867,6 @@
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
DEFINES_MODULE = YES;
|
||||
DEVELOPMENT_TEAM = H96Q2NKTQH;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/../Carthage/Build/Mac",
|
||||
@ -1925,7 +1923,6 @@
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 341;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
@ -1983,11 +1980,9 @@
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "-";
|
||||
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 341;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
@ -2040,11 +2035,8 @@
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_IDENTITY = "Developer ID Application: Tae Won Ha (H96Q2NKTQH)";
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
DEFINES_MODULE = YES;
|
||||
DEVELOPMENT_TEAM = H96Q2NKTQH;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/../Carthage/Build/Mac",
|
||||
@ -2055,7 +2047,6 @@
|
||||
);
|
||||
INFOPLIST_FILE = VimR/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
|
||||
OTHER_CODE_SIGN_FLAGS = "--timestamp";
|
||||
OTHER_LDFLAGS = (
|
||||
"$(PROJECT_DIR)/../third-party/libxz/lib/liblzma.a",
|
||||
"$(PROJECT_DIR)/../third-party/libpcre/lib/libpcre.a",
|
||||
|
@ -43,6 +43,8 @@ if [[ "${is_snapshot}" == true ]] && [[ "${branch}" == "master" ]] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git lfs install
|
||||
|
||||
echo "### Installing some python packages"
|
||||
|
||||
pip3 install requests
|
||||
|
@ -54,8 +54,17 @@ rm -rf ${build_path}
|
||||
if [[ ${code_sign} == true ]] ; then
|
||||
identity="Developer ID Application: Tae Won Ha (H96Q2NKTQH)"
|
||||
entitlements_path=$(realpath NvimView/NvimServer/NvimServer.entitlements)
|
||||
xcodebuild -configuration Release -scheme VimR -workspace VimR.xcworkspace -derivedDataPath ${build_path} clean build
|
||||
|
||||
xcodebuild \
|
||||
CODE_SIGN_IDENTITY="${identity}" \
|
||||
OTHER_CODE_SIGN_FLAGS="--timestamp --options=runtime" \
|
||||
CODE_SIGN_INJECT_BASE_ENTITLEMENTS=NO \
|
||||
-configuration Release -derivedDataPath ./build -workspace VimR.xcworkspace -scheme VimR clean build
|
||||
|
||||
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/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
|
||||
|
Loading…
Reference in New Issue
Block a user