Permalink
Browse files

빌드 스크립트 수정

- Anti-bumblebee guard
- Xcode에서 빌드 설정 꺼내서 빌드
  • Loading branch information...
youknowone committed Aug 29, 2018
1 parent 90ba452 commit dbcff8d5e3bbf01aadd6255e5f0a15136443fd17
Showing with 104 additions and 26 deletions.
  1. +60 −0 Gureum.xcodeproj/project.pbxproj
  2. +10 −10 tools/build_product.sh
  3. +11 −9 tools/install_debug.sh
  4. +20 −5 tools/ready.sh
  5. +3 −2 tools/test_product.sh
@@ -6,6 +6,20 @@
objectVersion = 46;
objects = {
/* Begin PBXAggregateTarget section */
38E9024821344637005DF76A /* ScriptSupport */ = {
isa = PBXAggregateTarget;
buildConfigurationList = 38E9024D21344637005DF76A /* Build configuration list for PBXAggregateTarget "ScriptSupport" */;
buildPhases = (
38E9024E21344640005DF76A /* Print environment variables */,
);
dependencies = (
);
name = ScriptSupport;
productName = ScriptSupport;
};
/* End PBXAggregateTarget section */
/* Begin PBXBuildFile section */
380ECC8316ECF49F0063B881 /* Gureum.iconset in Resources */ = {isa = PBXBuildFile; fileRef = 380ECC8216ECF49F0063B881 /* Gureum.iconset */; };
381228DB208D869B00BB7D5D /* GureumConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 38C2AE4C208795E700FE211A /* GureumConfiguration.swift */; };
@@ -724,6 +738,10 @@
LastSwiftMigration = 0800;
TestTargetID = 38162DF2141263270077AA2D;
};
38E9024821344637005DF76A = {
CreatedOnToolsVersion = 9.4.1;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 38863C53140E62D100A8ED76 /* Build configuration list for PBXProject "Gureum" */;
@@ -749,6 +767,7 @@
38162DF2141263270077AA2D /* OSX */,
38BFE7F918B45419004B2B2E /* OSXTests */,
382E68631A1314D900031D1D /* Preferences */,
38E9024821344637005DF76A /* ScriptSupport */,
);
};
/* End PBXProject section */
@@ -872,6 +891,20 @@
shellPath = /bin/bash;
shellScript = "cd $PROJECT_DIR/OSX\ntag=`git describe --tags`\ntag=${tag#GureumKIM-}\necho \"VERSION = $tag\" > Version.xcconfig";
};
38E9024E21344640005DF76A /* Print environment variables */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 12;
files = (
);
inputPaths = (
);
name = "Print environment variables";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "";
};
D411EA0A46AD6D5A12CFE191 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -1326,6 +1359,24 @@
};
name = Release;
};
38E9024921344637005DF76A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
INSTALL_PATH = "/Library/Input Methods";
PRODUCT_NAME = Gureum;
};
name = Debug;
};
38E9024A21344637005DF76A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
INSTALL_PATH = "/Library/Input Methods";
PRODUCT_NAME = Gureum;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@@ -1365,6 +1416,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
38E9024D21344637005DF76A /* Build configuration list for PBXAggregateTarget "ScriptSupport" */ = {
isa = XCConfigurationList;
buildConfigurations = (
38E9024921344637005DF76A /* Debug */,
38E9024A21344637005DF76A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 38863C50140E62D100A8ED76 /* Project object */;
View
@@ -1,20 +1,20 @@
#!/bin/bash
#https://discuss.atom.io/t/sandbox-supposedly-enabled-but-application-loader-disagrees/26155
. ready.sh
if [ $? -ne 0 ]; then
exit 255
fi
SCRIPT_DIR=`dirname "${BASH_SOURCE[0]}"`
. "${SCRIPT_DIR}/ready.sh" || exit $?
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"
rm "build/$CONFIGURATION/$pkgname.pkg" "build/$CONFIGURATION/$pkgname.app.tar.gz"
rm "build/$CONFIGURATION/Gureum.app/Contents/Info.plist"
BUILT_PRODUCT_PATH="${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app"
rm ~/Downloads/"$PACKAGE_NAME.pkg" ~/Downloads/"$PACKAGE_NAME.app.tar.gz"
rm -rf "${BUILT_PRODUCT_PATH}"
xcodebuild -workspace 'Gureum.xcworkspace' -scheme 'OSX' -configuration "$CONFIGURATION" && \
cd "build/$CONFIGURATION" && \
productbuild --product "../../tools/preinst.plist" --component "$appname" '/Library/Input Methods' --sign "Developer ID Installer: YunWon Jeong" "$pkgname.pkg" && \
tar -zcf "$pkgname.app.tar.gz" "$appname"
productbuild --product "tools/preinst.plist" --component "${BUILT_PRODUCTS_DIR}/$PRODUCT_NAME.app" '/Library/Input Methods' --sign "Developer ID Installer: YunWon Jeong" ~/Downloads/"$PACKAGE_NAME.pkg" && \
tar -zcf "$PACKAGE_NAME.app.tar.gz" "$PRODUCT_NAME.app"
cat "Gureum.app/Contents/Info.plist" | grep Copyright
cat "${BUILT_PRODUCT_PATH}/Contents/Info.plist" | grep Copyright
View
@@ -1,11 +1,13 @@
#!/bin/bash
. ready.sh
if [ $? -ne 0 ]; then
exit 255
fi
xcodebuild -workspace 'Gureum.xcworkspace' -scheme 'OSX' -configuration 'Debug' && \
cd 'build/Debug' && \
sudo rm -rf "$INSTDIR/$appname" && \
sudo cp -R "$appname" "$INSTDIR/"
sudo killall -15 Gureum
SCRIPT_DIR=`dirname "${BASH_SOURCE[0]}"`
. "${SCRIPT_DIR}/ready.sh" || exit $?
xcodebuild -workspace 'Gureum.xcworkspace' -scheme 'OSX' -configuration "${CONFIGURATION}" || exit $?
cmd="sudo rm -rf \"${INSTALL_PATH}/${PRODUCT_NAME}.app\""
echo ${cmd} && eval ${cmd} || exit $?
cmd="sudo cp -R \"${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app\" \"${INSTALL_PATH}/\""
echo ${cmd} && eval ${cmd} || exit $?
cmd="sudo killall -15 \"${PRODUCT_NAME}\""
echo ${cmd} && eval ${cmd} || exit $?
View
@@ -1,11 +1,26 @@
#!/bin/bash
cd ..
PROJDIR=`pwd`
INSTDIR='/Library/Input Methods'
appname='Gureum.app'
pkgname=`git tag | tail -n 1`
SCRIPT_DIR=`dirname "${BASH_SOURCE[0]}"`
cd "${SCRIPT_DIR}/.."
TMPSCRIPT="${TMPDIR}gureumbuild"
if [ -e $TMPSCRIPT ]; then
echo 'something wrong'
exit 255
fi
xcodebuild -workspace 'Gureum.xcworkspace' -scheme 'ScriptSupport' -configuration 'Debug' | grep export > $TMPSCRIPT
. ${TMPSCRIPT} &> /dev/null
rm ${TMPSCRIPT}
PACKAGE_NAME=`git tag | tail -n 1`
if [ ! $CONFIGURATION ]; then
CONFIGURATION='Debug'
fi
if [ "${PRODUCT_NAME}" != "Gureum" ]; then
echo 'something wrong'
exit 255
fi
View
@@ -1,5 +1,6 @@
#!/bin/bash
. ready.sh
SCRIPT_DIR=`dirname "${BASH_SOURCE[0]}"`
. "${SCRIPT_DIR}/ready.sh" || exit $?
installer -pkg "build/$CONFIGURATION/$pkgname.pkg" -target '/'
installer -pkg ~/Downloads"/$PACKAGE_NAME.pkg" -target '/'
sudo killall Gureum

0 comments on commit dbcff8d

Please sign in to comment.