Permalink
Browse files

버전과 빌드스크립트에서 디버그 모드 올바르게 확인

  • Loading branch information...
youknowone committed Dec 21, 2018
1 parent c6ffef1 commit 1d11863bfe22f713a856392715fbff86ccd32a35
Showing with 16 additions and 7 deletions.
  1. +1 −1 Gureum.xcodeproj/project.pbxproj
  2. +6 −1 tools/build_product.sh
  3. +5 −5 tools/ready.sh
  4. +4 −0 tools/test_product.sh
@@ -946,7 +946,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "cd $PROJECT_DIR/OSX\ntag=`git describe --tags`\ntag=${tag#GureumKIM-}\necho \"VERSION = $tag\" > Version.xcconfig\n";
shellScript = "cd ${PROJECT_DIR}\ntag=`git describe --tags`\ntag=${tag#GureumKIM-}\nif [ $CONFIGURATION != \"Release\" ]; then\n tag=\"$tag\"-Debug\nfi\necho \"VERSION = $tag\" > OSX/Version.xcconfig\n";
};
3835B4E11F59DDAF00896BEC /* Prepare libhangul data */ = {
isa = PBXShellScriptBuildPhase;
@@ -4,10 +4,15 @@
if [ ! $CONFIGURATION ]; then
CONFIGURATION='Release'
fi

SCRIPT_DIR=`dirname "${BASH_SOURCE[0]}"`
. "${SCRIPT_DIR}/ready.sh" || exit $?

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

APP_KEY="3rd Party Mac Developer Application: YunWon Jeong"
INSTALLER_KEY="3rd Party Mac Developer Installer: YunWon Jeong"
DEVELOPER_KEY="Developer ID Installer: YunWon Jeong"
@@ -10,17 +10,17 @@ if [ -e $TMPSCRIPT ]; then
exit 255
fi

xcodebuild -workspace 'Gureum.xcworkspace' -scheme 'ScriptSupport' -configuration 'Debug' | grep export > $TMPSCRIPT
if [ ! $CONFIGURATION ]; then
CONFIGURATION='Debug'
fi

xcodebuild -workspace 'Gureum.xcworkspace' -scheme 'ScriptSupport' -configuration "${CONFIGURATION}" | grep export > $TMPSCRIPT
. ${TMPSCRIPT} &> /dev/null
rm ${TMPSCRIPT}

XCVERSION=`cat OSX/Version.xcconfig`
PACKAGE_NAME=Gureum-${XCVERSION#VERSION = }

if [ ! $CONFIGURATION ]; then
CONFIGURATION='Debug'
fi

if [ "${PRODUCT_NAME}" != "Gureum" ]; then
echo 'something wrong'
exit 255
@@ -1,4 +1,8 @@
#!/bin/bash

if [ ! $CONFIGURATION ]; then
CONFIGURATION='Release'
fi
SCRIPT_DIR=`dirname "${BASH_SOURCE[0]}"`
. "${SCRIPT_DIR}/ready.sh" || exit $?

0 comments on commit 1d11863

Please sign in to comment.