Skip to content

Commit

Permalink
Front End osx make sure to copy app
Browse files Browse the repository at this point in the history
  • Loading branch information
danoli3 committed Dec 15, 2023
1 parent 87a1e1c commit a4dc00c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/osx/build_frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,35 @@ if [ -z "${FRONTEND_TARGET+x}" ]; then
FRONTEND_TARGET=mac:universal
fi

cd "${PG_DIR}/frontend"

if [ -z "${BUILD_TEST+x}" ]; then
BUILD_TEST=0
fi


if [ -z "${BUILD_TEST+x}" ]; then
BUILD_TEST=0
fi

# Assuming CMDLINE_DIR is already set to the correct directory path
SOURCE_FILE="${PG_DIR}/commandLine/bin/projectGenerator"

# Replace [destination_path] with the actual path where you want to copy the file
DESTINATION_PATH="app/"
echo "SOURCE_FILE:$SOURCE_FILE";
# Check if the source file exists
if [ -f "$SOURCE_FILE" ]; then
# File exists, proceed with copying
mkdir -p "$DESTINATION_PATH" # Create destination directory if it doesn't exist
cp "$SOURCE_FILE" "$DESTINATION_PATH"
echo "File copied successfully."
else
# File does not exist
echo "Error: Source file does not exist."
fi


echo "====== "
cd "${PG_DIR}/frontend"
pwd
Expand Down

0 comments on commit a4dc00c

Please sign in to comment.