mirror of
https://github.com/YACReader/yacreader
synced 2025-07-20 14:04:40 -04:00
give the mac OS build scripts a much needed update
This commit is contained in:
@ -10,5 +10,7 @@ cd ..
|
||||
cd YACReaderLibrary
|
||||
make clean
|
||||
rm -R YACReaderLibrary.app
|
||||
cd ..
|
||||
cd YACReaderLibraryServer
|
||||
rm -R YACReaderLibraryServer.app
|
||||
cd ..
|
||||
|
@ -1,52 +1,56 @@
|
||||
#! /bin/bash
|
||||
if [ $2 == "clean" ]; then
|
||||
|
||||
VERSION=${1:-"8.6.0"}
|
||||
|
||||
if [ "$2" == "clean" ]; then
|
||||
./cleanOSX.sh
|
||||
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"
|
||||
cd ./YACReader
|
||||
/Users/luisangel/my_dev/Qt5.5.1/5.5/clang_64/bin/qmake YACReader.pro -spec macx-clang "CONFIG+=release"
|
||||
cd YACReader
|
||||
qmake CONFIG+=release
|
||||
make
|
||||
cd ..
|
||||
|
||||
echo "Compiling YACReaderLibrary"
|
||||
cd ./YACReaderLibrary
|
||||
/Users/luisangel/my_dev/Qt5.5.1/5.5/clang_64/bin/qmake YACReaderLibrary.pro -spec macx-clang "CONFIG+=release"
|
||||
cd YACReaderLibrary
|
||||
qmake CONFIG+=release
|
||||
make
|
||||
cd ..
|
||||
|
||||
echo "Compiling YACReaderLibraryServer"
|
||||
cd ./YACReaderLibrary
|
||||
make clean
|
||||
/Users/luisangel/my_dev/Qt5.5.1/5.5/clang_64/bin/qmake YACReaderLibraryServer.pro -spec macx-clang "CONFIG+=release"
|
||||
cd YACReaderLibraryServer
|
||||
qmake CONFIG+=release
|
||||
make
|
||||
cd ..
|
||||
|
||||
echo "Configuring release apps"
|
||||
|
||||
cp -R ./YACReader/YACReader.app ./YACReader.app
|
||||
cp -R ./YACReaderLibrary/YACReaderLibrary.app ./YACReaderLibrary.app
|
||||
cp -R ./YACReaderLibrary/YACReaderLibraryServer.app ./YACReaderLibraryServer.app
|
||||
cp -R YACReader/YACReader.app YACReader.app
|
||||
cp -R YACReaderLibrary/YACReaderLibrary.app YACReaderLibrary.app
|
||||
cp -R YACReaderLibraryServer/YACReaderLibraryServer.app YACReaderLibraryServer.app
|
||||
|
||||
./releaseOSX.sh
|
||||
|
||||
echo "Copying to destination folder"
|
||||
dest='YACReader-'$1' MacOSX-Intel'
|
||||
mkdir "$dest"
|
||||
cp -R ./YACReader.app "./${dest}/YACReader.app"
|
||||
cp -R ./YACReaderLibrary.app "./${dest}/YACReaderLibrary.app"
|
||||
cp -R ./YACReaderLibraryServer.app "./${dest}/YACReaderLibraryServer"
|
||||
dest="YACReader-$VERSION MacOSX-Intel"
|
||||
mkdir -p "$dest"
|
||||
cp -R YACReader.app "${dest}/YACReader.app"
|
||||
cp -R YACReaderLibrary.app "${dest}/YACReaderLibrary.app"
|
||||
cp -R YACReaderLibraryServer.app "${dest}/YACReaderLibraryServer"
|
||||
|
||||
cp ./COPYING.txt "./${dest}/"
|
||||
cp ./README.txt "./${dest}/"
|
||||
cp COPYING.txt "${dest}/"
|
||||
cp README.txt "${dest}/"
|
||||
|
||||
#mkdir "./${dest}/icons/"
|
||||
#cp ./images/db.png "./${dest}/icons/"
|
||||
#cp ./images/coversPackage.png "./${dest}/icons/"
|
||||
#mkdir -p "${dest}/icons/"
|
||||
#cp images/db.png "${dest}/icons/"
|
||||
#cp images/coversPackage.png "${dest}/icons/"
|
||||
|
||||
echo "Creating dmg package"
|
||||
#tar -czf "${dest}".tar.gz "${dest}"
|
||||
#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!"
|
||||
|
@ -1,17 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
/Users/luisangel/my_dev/Qt5.5.1/5.5/clang_64/bin/macdeployqt YACReader.app
|
||||
/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
|
||||
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; }
|
||||
|
||||
cp -R ./utils ./YACReader.app/Contents/MacOS/
|
||||
cp -R ./utils ./YACReaderLibrary.app/Contents/MacOS/
|
||||
cp -R ./utils ./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/
|
||||
macdeployqt YACReader.app
|
||||
macdeployqt YACReaderLibrary.app -qmldir=YACReaderLibrary/qml
|
||||
macdeployqt YACReaderLibraryServer.app
|
||||
|
||||
cp -R utils YACReader.app/Contents/MacOS/
|
||||
cp -R utils YACReaderLibrary.app/Contents/MacOS/
|
||||
cp -R utils 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
|
||||
|
||||
|
Reference in New Issue
Block a user