Make some further minor improvements to Mac build script
This commit is contained in:
@@ -20,13 +20,14 @@ cleanup () {
|
|||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
echo "Script Dir: $SCRIPT_DIR"
|
echo "Script Dir: $SCRIPT_DIR"
|
||||||
echo "Building in: $BUILD_DIR"
|
echo "Build Dir: $BUILD_DIR"
|
||||||
|
|
||||||
# --- Prepare Files ----------------------------------------------------------------------------- #
|
|
||||||
|
|
||||||
pushd "$SRC_DIR" || exit 1
|
pushd "$SRC_DIR" || exit 1
|
||||||
|
|
||||||
VERSION="$(python3 setup.py version)"
|
VERSION="$(python3 setup.py version)"
|
||||||
|
echo "novelWriter Version: $VERSION"
|
||||||
|
|
||||||
|
# --- Prepare Files ----------------------------------------------------------------------------- #
|
||||||
|
|
||||||
echo "Generating Info.plist"
|
echo "Generating Info.plist"
|
||||||
python3 setup.py gen-plist
|
python3 setup.py gen-plist
|
||||||
@@ -72,16 +73,15 @@ bash Miniconda3-latest-MacOSX-x86_64.sh -b -p ~/miniconda -f
|
|||||||
rm Miniconda3-latest-MacOSX-x86_64.sh
|
rm Miniconda3-latest-MacOSX-x86_64.sh
|
||||||
export PATH="$HOME/miniconda/bin:$PATH"
|
export PATH="$HOME/miniconda/bin:$PATH"
|
||||||
|
|
||||||
echo "Creating conda env ..."
|
echo "Creating Conda env ..."
|
||||||
|
|
||||||
conda create -n novelWriter -c conda-forge python=3.10 --yes
|
conda create -n novelWriter -c conda-forge python=3.10 --yes
|
||||||
source activate novelWriter
|
source activate novelWriter
|
||||||
|
|
||||||
echo "installing dictionaries ..."
|
echo "Installing dictionaries ..."
|
||||||
conda install -c conda-forge enchant hunspell-en --yes
|
conda install -c conda-forge enchant hunspell-en --yes
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
echo "installing python dependencies ..."
|
echo "Installing Python dependencies ..."
|
||||||
pip install -r "$SRC_DIR/requirements.txt"
|
pip install -r "$SRC_DIR/requirements.txt"
|
||||||
|
|
||||||
# Leave conda env
|
# Leave conda env
|
||||||
@@ -89,7 +89,7 @@ conda deactivate
|
|||||||
|
|
||||||
# --- Build App --------------------------------------------------------------------------------- #
|
# --- Build App --------------------------------------------------------------------------------- #
|
||||||
|
|
||||||
echo "Building app bundle ..."
|
echo "Building App bundle ..."
|
||||||
|
|
||||||
# Create .app Framework
|
# Create .app Framework
|
||||||
mkdir -p novelWriter.app/Contents/
|
mkdir -p novelWriter.app/Contents/
|
||||||
@@ -128,7 +128,6 @@ chmod a+x novelWriter.app/Contents/MacOS/novelWriter
|
|||||||
# echo "Signing bundle ..."
|
# echo "Signing bundle ..."
|
||||||
# sudo codesign --sign - --deep --force --entitlements "$SCRIPT_DIR/../macos/App.entitlements" --options runtime "novelWriter.app/Contents/MacOS/novelWriter"
|
# sudo codesign --sign - --deep --force --entitlements "$SCRIPT_DIR/../macos/App.entitlements" --options runtime "novelWriter.app/Contents/MacOS/novelWriter"
|
||||||
|
|
||||||
|
|
||||||
# --- Cleanup ----------------------------------------------------------------------------------- #
|
# --- Cleanup ----------------------------------------------------------------------------------- #
|
||||||
|
|
||||||
echo "Cleaning unused files from bundle ..."
|
echo "Cleaning unused files from bundle ..."
|
||||||
|
|||||||
Reference in New Issue
Block a user