Skip to content

Commit

Permalink
cleaned up build system a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
twocanoes committed May 3, 2023
1 parent 7bf66a3 commit f99ec4a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 13 deletions.
2 changes: 2 additions & 0 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
binary "https://bitbucket.org/twocanoes/productlicense-public/downloads/productlicense.json"
github "PaddleHQ/Mac-Framework-V4"
9 changes: 8 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash
#!/bin/bash

set -e

carthage update
xcodebuild -resolvePackageDependencies

pushd ./build_resources/buildscripts/

SKIP_DMG=1 ./build.sh

popd
16 changes: 10 additions & 6 deletions build_resources/buildscripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ PROJECT_FOLDER="../../"
SRC_PATH="../../"

###########################
source "${SRC_PATH}/../build/bitbucket_creds.sh"
osascript -e 'tell application "DropDMG" to get version'
if [ -e "${SRC_PATH}/../build/bitbucket_creds.sh" ] ; then
source "${SRC_PATH}/../build/bitbucket_creds.sh"
fi
if [ -e /Applications/DropDMG.app ]; then
osascript -e 'tell application "DropDMG" to get version'
fi

pushd ../..
agvtool next-version -all
Expand All @@ -20,8 +24,6 @@ temp_folder=$(mktemp -d "/tmp/${PRODUCT_NAME}.XXXXXXXX")
BUILD_FOLDER="${temp_folder}/build"




xcodebuild archive -project "${SRC_PATH}/${PRODUCT_NAME}.xcodeproj" -scheme "${PRODUCT_NAME}" -archivePath "${temp_folder}/${PRODUCT_NAME}.xcarchive"


Expand All @@ -37,5 +39,7 @@ cp -R "${temp_folder}/${PRODUCT_NAME}.xcarchive/dSYMs/" "${PROJECT_FOLDER}/produ

cp -Rv "${SRC_PATH}/build_resources/" "${BUILD_FOLDER}"


/Users/tperfitt/Documents/Projects/build/build.sh "${BUILD_FOLDER}" "${temp_folder}" "${PRODUCT_NAME}" "${BUILD_FOLDER}/XCreds.app" "${SCRIPT_FOLDER}/build_post.sh"
echo "output is in ${BUILD_FOLDER}"
if [ -e /Users/tperfitt/Documents/Projects/build/build.sh ] ; then
/Users/tperfitt/Documents/Projects/build/build.sh "${BUILD_FOLDER}" "${temp_folder}" "${PRODUCT_NAME}" "${BUILD_FOLDER}/XCreds.app" "${SCRIPT_FOLDER}/build_post.sh"
fi
12 changes: 6 additions & 6 deletions xCreds.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3607;
CURRENT_PROJECT_VERSION = 3614;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = UXP6YEHSPW;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -1042,7 +1042,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3607;
CURRENT_PROJECT_VERSION = 3614;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = UXP6YEHSPW;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -1107,7 +1107,7 @@
CODE_SIGN_ENTITLEMENTS = "XCreds Login Overlay/XCreds_Login_Overlay.entitlements";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3607;
CURRENT_PROJECT_VERSION = 3614;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -1143,7 +1143,7 @@
CODE_SIGN_ENTITLEMENTS = "XCreds Login Overlay/XCreds_Login_Overlay.entitlements";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3607;
CURRENT_PROJECT_VERSION = 3614;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -1292,7 +1292,7 @@
CODE_SIGN_ENTITLEMENTS = XCreds/xCreds.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3607;
CURRENT_PROJECT_VERSION = 3614;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -1327,7 +1327,7 @@
CODE_SIGN_ENTITLEMENTS = XCreds/xCreds.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3607;
CURRENT_PROJECT_VERSION = 3614;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down

0 comments on commit f99ec4a

Please sign in to comment.