mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 21:44:43 -04:00
give the mac OS build scripts a much needed update
This commit is contained in:
@ -10,5 +10,7 @@ cd ..
|
|||||||
cd YACReaderLibrary
|
cd YACReaderLibrary
|
||||||
make clean
|
make clean
|
||||||
rm -R YACReaderLibrary.app
|
rm -R YACReaderLibrary.app
|
||||||
|
cd ..
|
||||||
|
cd YACReaderLibraryServer
|
||||||
rm -R YACReaderLibraryServer.app
|
rm -R YACReaderLibraryServer.app
|
||||||
cd ..
|
cd ..
|
||||||
|
@ -1,52 +1,56 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
if [ $2 == "clean" ]; then
|
|
||||||
|
VERSION=${1:-"8.6.0"}
|
||||||
|
|
||||||
|
if [ "$2" == "clean" ]; then
|
||||||
./cleanOSX.sh
|
./cleanOSX.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
hash qmake 2>/dev/null || { echo >&2 "Qmake command not available. Please add the bin subfolder of your Qt installation to the PATH environment variable."; exit 1; }
|
||||||
|
|
||||||
echo "Compiling YACReader"
|
echo "Compiling YACReader"
|
||||||
cd ./YACReader
|
cd YACReader
|
||||||
/Users/luisangel/my_dev/Qt5.5.1/5.5/clang_64/bin/qmake YACReader.pro -spec macx-clang "CONFIG+=release"
|
qmake CONFIG+=release
|
||||||
make
|
make
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo "Compiling YACReaderLibrary"
|
echo "Compiling YACReaderLibrary"
|
||||||
cd ./YACReaderLibrary
|
cd YACReaderLibrary
|
||||||
/Users/luisangel/my_dev/Qt5.5.1/5.5/clang_64/bin/qmake YACReaderLibrary.pro -spec macx-clang "CONFIG+=release"
|
qmake CONFIG+=release
|
||||||
make
|
make
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo "Compiling YACReaderLibraryServer"
|
echo "Compiling YACReaderLibraryServer"
|
||||||
cd ./YACReaderLibrary
|
cd YACReaderLibraryServer
|
||||||
make clean
|
qmake CONFIG+=release
|
||||||
/Users/luisangel/my_dev/Qt5.5.1/5.5/clang_64/bin/qmake YACReaderLibraryServer.pro -spec macx-clang "CONFIG+=release"
|
|
||||||
make
|
make
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo "Configuring release apps"
|
echo "Configuring release apps"
|
||||||
|
|
||||||
cp -R ./YACReader/YACReader.app ./YACReader.app
|
cp -R YACReader/YACReader.app YACReader.app
|
||||||
cp -R ./YACReaderLibrary/YACReaderLibrary.app ./YACReaderLibrary.app
|
cp -R YACReaderLibrary/YACReaderLibrary.app YACReaderLibrary.app
|
||||||
cp -R ./YACReaderLibrary/YACReaderLibraryServer.app ./YACReaderLibraryServer.app
|
cp -R YACReaderLibraryServer/YACReaderLibraryServer.app YACReaderLibraryServer.app
|
||||||
|
|
||||||
./releaseOSX.sh
|
./releaseOSX.sh
|
||||||
|
|
||||||
echo "Copying to destination folder"
|
echo "Copying to destination folder"
|
||||||
dest='YACReader-'$1' MacOSX-Intel'
|
dest="YACReader-$VERSION MacOSX-Intel"
|
||||||
mkdir "$dest"
|
mkdir -p "$dest"
|
||||||
cp -R ./YACReader.app "./${dest}/YACReader.app"
|
cp -R YACReader.app "${dest}/YACReader.app"
|
||||||
cp -R ./YACReaderLibrary.app "./${dest}/YACReaderLibrary.app"
|
cp -R YACReaderLibrary.app "${dest}/YACReaderLibrary.app"
|
||||||
cp -R ./YACReaderLibraryServer.app "./${dest}/YACReaderLibraryServer"
|
cp -R YACReaderLibraryServer.app "${dest}/YACReaderLibraryServer"
|
||||||
|
|
||||||
cp ./COPYING.txt "./${dest}/"
|
cp COPYING.txt "${dest}/"
|
||||||
cp ./README.txt "./${dest}/"
|
cp README.txt "${dest}/"
|
||||||
|
|
||||||
#mkdir "./${dest}/icons/"
|
#mkdir -p "${dest}/icons/"
|
||||||
#cp ./images/db.png "./${dest}/icons/"
|
#cp images/db.png "${dest}/icons/"
|
||||||
#cp ./images/coversPackage.png "./${dest}/icons/"
|
#cp images/coversPackage.png "${dest}/icons/"
|
||||||
|
|
||||||
echo "Creating dmg package"
|
echo "Creating dmg package"
|
||||||
#tar -czf "${dest}".tar.gz "${dest}"
|
#tar -czf "${dest}".tar.gz "${dest}"
|
||||||
#hdiutil create "${dest}".dmg -srcfolder "./${dest}" -ov
|
#hdiutil create "${dest}".dmg -srcfolder "./${dest}" -ov
|
||||||
./create-dmg --volname 'YACReader '$1' Installer' --volicon icon.icns --window-size 600 403 --icon-size 128 --app-drop-link 485 90 --background background.png --icon YACReader 80 90 --icon YACReaderLibrary 235 90 --eula COPYING.txt --icon YACReaderLibraryServer 470 295 --icon README.txt 120 295 --icon COPYING.txt 290 295 "./${dest}.dmg" "./${dest}"
|
./create-dmg --volname 'YACReader '$VERSION' Installer' --volicon icon.icns --window-size 600 403 --icon-size 128 --app-drop-link 485 90 --background background.png --icon YACReader 80 90 --icon YACReaderLibrary 235 90 --eula COPYING.txt --icon YACReaderLibraryServer 470 295 --icon README.txt 120 295 --icon COPYING.txt 290 295 "${dest}.dmg" "${dest}"
|
||||||
|
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
|
@ -1,17 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
/Users/luisangel/my_dev/Qt5.5.1/5.5/clang_64/bin/macdeployqt YACReader.app
|
hash macdeployqt 2>/dev/null || { echo >&2 "Qmake command not available. Please add the bin subfolder of your Qt installation to the PATH environment variable."; exit 1; }
|
||||||
/Users/luisangel/my_dev/Qt5.5.1/5.5/clang_64/bin/macdeployqt YACReaderLibrary.app -qmldir=./YACReaderLibrary/qml
|
|
||||||
/Users/luisangel/my_dev/Qt5.5.1/5.5/clang_64/bin/macdeployqt YACReaderLibraryServer.app
|
|
||||||
|
|
||||||
cp -R ./utils ./YACReader.app/Contents/MacOS/
|
macdeployqt YACReader.app
|
||||||
cp -R ./utils ./YACReaderLibrary.app/Contents/MacOS/
|
macdeployqt YACReaderLibrary.app -qmldir=YACReaderLibrary/qml
|
||||||
cp -R ./utils ./YACReaderLibraryServer.app/Contents/MacOS/
|
macdeployqt YACReaderLibraryServer.app
|
||||||
cp -R ./release/server ./YACReaderLibrary.app/Contents/MacOS/
|
|
||||||
cp -R ./release/server ./YACReaderLibraryServer.app/Contents/MacOS/
|
cp -R utils YACReader.app/Contents/MacOS/
|
||||||
cp -R ./release/languages ./YACReader.app/Contents/MacOS/
|
cp -R utils YACReaderLibrary.app/Contents/MacOS/
|
||||||
cp -R ./release/languages ./YACReaderLibrary.app/Contents/MacOS/
|
cp -R utils YACReaderLibraryServer.app/Contents/MacOS/
|
||||||
cp -R ./release/languages ./YACReaderLibraryServer.app/Contents/MacOS/
|
cp -R release/server YACReaderLibrary.app/Contents/MacOS/
|
||||||
|
cp -R release/server YACReaderLibraryServer.app/Contents/MacOS/
|
||||||
|
cp -R release/languages YACReader.app/Contents/MacOS/
|
||||||
|
cp -R release/languages YACReaderLibrary.app/Contents/MacOS/
|
||||||
|
cp -R release/languages YACReaderLibraryServer.app/Contents/MacOS/
|
||||||
|
|
||||||
#./signapps.sh
|
#./signapps.sh
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user