Skip to content

Commit

Permalink
script download_pg fix chmod issue windows
Browse files Browse the repository at this point in the history
  • Loading branch information
danoli3 committed Jan 13, 2025
1 parent f9cbe1c commit f183980
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scripts/dev/download_pg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARCH=""
OVERWRITE=1
SILENT_ARGS=""
BLEEDING_EDGE=0
DL_VERSION=2.7.0
DL_VERSION=2.8.0
TAG=""

printHelp(){
Expand Down Expand Up @@ -214,24 +214,24 @@ if [ "$PLATFORM" == "msys2" ] || [ "$PLATFORM" == "vs" ]; then
else
rsync -avzp "${OUTDIR}/${OUTPUT}/resources/app/app/projectGenerator.exe" "${OUTDIR}/${OUTPUT}/projectGeneratorCmd.exe"
fi
if command -v chmod &> /dev/null; then
# if command -v chmod &> /dev/null; then
chmod +x "${OUTDIR}/${OUTPUT}/projectGeneratorCmd.exe"
chmod +x "${OUTDIR}/${OUTPUT}/resources/app/app/projectGenerator.exe"
else
echo "Warning: chmod command not found, skipping permission adjustment."
fi
# else
# echo "Warning: chmod command not found, skipping permission adjustment."
# fi
else
if ! command -v rsync &> /dev/null; then
cp -arX "${OUTDIR}/${OUTPUT}/projectGenerator$EXT/Contents/Resources/app/app/projectGenerator" "${OUTDIR}/${OUTPUT}/projectGenerator"
else
rsync -avzp "${OUTDIR}/${OUTPUT}/projectGenerator$EXT/Contents/Resources/app/app/projectGenerator" "${OUTDIR}/${OUTPUT}/projectGenerator"
fi
if command -v chmod &> /dev/null; then
# if command -v chmod &> /dev/null; then
chmod +x "${OUTDIR}/${OUTPUT}/projectGenerator"
chmod +x "${OUTDIR}/${OUTPUT}/projectGenerator$EXT/Contents/MacOS/projectGenerator"
else
echo "Warning: chmod command not found, skipping permission adjustment."
fi
# else
# echo "Warning: chmod command not found, skipping permission adjustment."
# fi
fi

echo " ------ "
Expand Down

0 comments on commit f183980

Please sign in to comment.