mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Update dmg.json to include the Qt flavor
This commit is contained in:
parent
879a0fb262
commit
d5dc5fbecf
@ -9,7 +9,9 @@ SKIP_CODESIGN=${3:-false}
|
|||||||
|
|
||||||
QT_VERSION=${4:-""}
|
QT_VERSION=${4:-""}
|
||||||
|
|
||||||
if [ "$4" == "clean" ]; then
|
echo "building macos binaries with these params: ${VERSION} ${BUILD_NUMBER} ${SKIP_CODESIGN} ${QT_VERSION}"
|
||||||
|
|
||||||
|
if [ "$5" == "clean" ]; then
|
||||||
./cleanOSX.sh
|
./cleanOSX.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -75,8 +77,8 @@ fi
|
|||||||
|
|
||||||
echo "Preparing apps for release, Done."
|
echo "Preparing apps for release, Done."
|
||||||
|
|
||||||
echo "Copying to destination folder"
|
dest="YACReader-$VERSION.$BUILD_NUMBER MacOSX-Intel ${QT_VERSION}"
|
||||||
dest="YACReader-$VERSION.$BUILD_NUMBER MacOSX-Intel$QT_VERSION"
|
echo "Copying to destination folder ${dest}"
|
||||||
mkdir -p "$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"
|
||||||
@ -85,18 +87,11 @@ cp -R YACReaderLibraryServer.app "${dest}/YACReaderLibraryServer"
|
|||||||
cp COPYING.txt "${dest}/"
|
cp COPYING.txt "${dest}/"
|
||||||
cp README.md "${dest}/"
|
cp README.md "${dest}/"
|
||||||
|
|
||||||
#mkdir -p "${dest}/icons/"
|
|
||||||
#cp images/db.png "${dest}/icons/"
|
|
||||||
#cp images/coversPackage.png "${dest}/icons/"
|
|
||||||
|
|
||||||
echo "Creating dmg package"
|
echo "Creating dmg package"
|
||||||
#tar -czf "${dest}".tar.gz "${dest}"
|
|
||||||
#hdiutil create "${dest}".dmg -srcfolder "./${dest}" -ov
|
|
||||||
|
|
||||||
#create-dmg --volname "YACReader $VERSION.$BUILD_NUMBER 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.md 120 295 --icon COPYING.txt 290 295 "$dest.dmg" "$dest"
|
|
||||||
|
|
||||||
sed -i'' -e "s/#VERSION#/$VERSION/g" dmg.json
|
sed -i'' -e "s/#VERSION#/$VERSION/g" dmg.json
|
||||||
sed -i'' -e "s/#BUILD_NUMBER#/$BUILD_NUMBER/g" dmg.json
|
sed -i'' -e "s/#BUILD_NUMBER#/$BUILD_NUMBER/g" dmg.json
|
||||||
|
sed -i'' -e "s/#QT_VERSION#/$QT_VERSION/g" dmg.json
|
||||||
appdmg dmg.json "$dest.dmg"
|
appdmg dmg.json "$dest.dmg"
|
||||||
|
|
||||||
if [ "$SKIP_CODESIGN" = false ]; then
|
if [ "$SKIP_CODESIGN" = false ]; then
|
||||||
|
12
dmg.json
12
dmg.json
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"title": "YACReader-#VERSION#.#BUILD_NUMBER#",
|
"title": "YACReader-#VERSION#.#BUILD_NUMBER# #QT_VERSION#",
|
||||||
"icon": "icon.icns",
|
"icon": "icon.icns",
|
||||||
"background": "background.png",
|
"background": "background.png",
|
||||||
"window": {
|
"window": {
|
||||||
@ -20,31 +20,31 @@
|
|||||||
"x": 80,
|
"x": 80,
|
||||||
"y": 90,
|
"y": 90,
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "YACReader-#VERSION#.#BUILD_NUMBER# MacOSX-Intel/YACReader.app"
|
"path": "YACReader-#VERSION#.#BUILD_NUMBER# MacOSX-Intel #QT_VERSION#/YACReader.app"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 235,
|
"x": 235,
|
||||||
"y": 90,
|
"y": 90,
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "YACReader-#VERSION#.#BUILD_NUMBER# MacOSX-Intel/YACReaderLibrary.app"
|
"path": "YACReader-#VERSION#.#BUILD_NUMBER# MacOSX-Intel #QT_VERSION#/YACReaderLibrary.app"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 470,
|
"x": 470,
|
||||||
"y": 295,
|
"y": 295,
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "YACReader-#VERSION#.#BUILD_NUMBER# MacOSX-Intel/YACReaderLibraryServer"
|
"path": "YACReader-#VERSION#.#BUILD_NUMBER# MacOSX-Intel #QT_VERSION#/YACReaderLibraryServer"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 120,
|
"x": 120,
|
||||||
"y": 295,
|
"y": 295,
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "YACReader-#VERSION#.#BUILD_NUMBER# MacOSX-Intel/README.md"
|
"path": "YACReader-#VERSION#.#BUILD_NUMBER# MacOSX-Intel #QT_VERSION#/README.md"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 290,
|
"x": 290,
|
||||||
"y": 295,
|
"y": 295,
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "YACReader-#VERSION#.#BUILD_NUMBER# MacOSX-Intel/COPYING.txt"
|
"path": "YACReader-#VERSION#.#BUILD_NUMBER# MacOSX-Intel #QT_VERSION#/COPYING.txt"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user