Skip to content
Permalink
Browse files
Build package without notarization
  • Loading branch information
yous committed Aug 1, 2020
1 parent 1213d45 commit 97810ca17c718c255531ad3628b44e5c383fe47b
Showing 2 changed files with 38 additions and 5 deletions.
@@ -1463,8 +1463,8 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = OSX/Gureum.entitlements;
CODE_SIGN_IDENTITY = "Developer ID Application";
DEVELOPMENT_TEAM = 9384JEL3M9;
CODE_SIGN_IDENTITY = "Apple Development";
DEVELOPMENT_TEAM = H5KJ5TM498;
ENABLE_HARDENED_RUNTIME = YES;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -1507,9 +1507,9 @@
baseConfigurationReference = 78BEAE5CCC50FE6F6B301872 /* Pods-Preferences.release.xcconfig */;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = OSX/Gureum.entitlements;
CODE_SIGN_IDENTITY = "Developer ID Application";
CODE_SIGN_IDENTITY = "Apple Development";
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 9384JEL3M9;
DEVELOPMENT_TEAM = H5KJ5TM498;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = Preferences/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
@@ -1606,7 +1606,7 @@
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = "${VERSION}";
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 9384JEL3M9;
DEVELOPMENT_TEAM = H5KJ5TM498;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
@@ -0,0 +1,33 @@
#!/bin/bash
#https://discuss.atom.io/t/sandbox-supposedly-enabled-but-application-loader-disagrees/26155
set -o pipefail

if [ ! "${CONFIGURATION}" ]; then
CONFIGURATION='Release'
fi
SCRIPT_DIR="$(dirname "$0")"
# shellcheck source=tools/ready.sh
. "${SCRIPT_DIR}/ready.sh" || exit $?

if [ "${CONFIGURATION}" != 'Release' ]; then
echo "Configuration is not Release: ${CONFIGURATION}"
echo "Keep going?"
read -r
fi

BUILT_PRODUCT_PATH="${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app"

rm ~/Downloads/"${PACKAGE_NAME}.pkg"
rm -rf "${BUILT_PRODUCT_PATH}"

if command -v xcpretty >/dev/null; then
PRINTER="xcpretty"
else
PRINTER="cat"
fi

(xcodebuild -workspace 'Gureum.xcworkspace' -scheme 'OSX' -configuration "${CONFIGURATION}" | $PRINTER) && \
productbuild --product "tools/preinst.plist" --component "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app" '/Library/Input Methods' ~/Downloads/"${PACKAGE_NAME}.pkg"
#tar -zcf "${PACKAGE_NAME}.app.tar.gz" "${PRODUCT_NAME}.app"

grep Copyright "${BUILT_PRODUCT_PATH}/Contents/Info.plist"

0 comments on commit 97810ca

Please sign in to comment.