<commit_before>#!/bin/bash

#
# Compile CommandPost:
#

cd ..
cd ..
cd CommandPost-App/ ||  echo "Couldn't cd, exiting" && exit


make clean || echo "Make failed, exiting" && exit
make release
make docs

rm -fr "$(xcodebuild -workspace Hammerspoon.xcworkspace -scheme Hammerspoon -configuration DEBUG -showBuildSettings | sort | uniq | grep " BUILT_PRODUCTS_DIR =" | awk '{ print $3 }')/CommandPost.app"

#
# Sign App with self-signed certificate:
#
codesign --verbose --sign "Internal Code Signing" "build/CommandPost.app/Contents/Frameworks/Sparkle.framework/Versions/A"
codesign --verbose --sign "Internal Code Signing" "build/CommandPost.app/Contents/Frameworks/LuaSkin.framework/Versions/A"
codesign --verbose --sign "Internal Code Signing" "build/CommandPost.app"
<commit_msg>change build artefact deletion to look for release scheme build<commit_after>#!/bin/bash

#
# Compile CommandPost:
#

cd ..
cd ..
cd CommandPost-App/ ||  echo "Couldn't cd, exiting" && exit


make clean || echo "Make failed, exiting" && exit
make release
make docs

rm -fr "$(xcodebuild -workspace Hammerspoon.xcworkspace -scheme Hammerspoon -configuration Release -showBuildSettings | sort | uniq | grep " BUILT_PRODUCTS_DIR =" | awk '{ print $3 }')/CommandPost.app"

#
# Sign App with self-signed certificate:
#
codesign --verbose --sign "Internal Code Signing" "build/CommandPost.app/Contents/Frameworks/Sparkle.framework/Versions/A"
codesign --verbose --sign "Internal Code Signing" "build/CommandPost.app/Contents/Frameworks/LuaSkin.framework/Versions/A"
codesign --verbose --sign "Internal Code Signing" "build/CommandPost.app"

{'fraction_non_alphanumeric': 0.12871287128712872, 'fraction_numerical': 0.0012376237623762376, 'mean_word_length': 4.575862068965518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6870988', 'n_tokens_mistral': 526, 'n_tokens_neox': 506, 'n_words': 143}