Skip to content

Commit

Permalink
Build package without notarization
Browse files Browse the repository at this point in the history
  • Loading branch information
yous committed Aug 1, 2020
1 parent 1213d45 commit 97810ca
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Gureum.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down
33 changes: 33 additions & 0 deletions tools/build_product.sh
Original file line number Diff line number Diff line change
@@ -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.