mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
LyX build for Mac - more readable disk mount management
This commit is contained in:
parent
668d92ea23
commit
6b54f646c6
@ -943,12 +943,11 @@ make_dmg() {
|
|||||||
test -d /Volumes/"${LyxBase}" && rmdir /Volumes/"${LyxBase}"
|
test -d /Volumes/"${LyxBase}" && rmdir /Volumes/"${LyxBase}"
|
||||||
|
|
||||||
# Mount the disk image
|
# Mount the disk image
|
||||||
hdiutil attach "${DMGNAME}.sparseimage"
|
DEVICES=$(hdiutil attach "${DMGNAME}.sparseimage" | cut -f 1)
|
||||||
|
|
||||||
# Obtain device information
|
# Obtain device information
|
||||||
DEVS=$(hdiutil attach "${DMGNAME}.sparseimage" | cut -f 1)
|
DEVICE=$(echo $DEVICES | cut -f 1 -d ' ')
|
||||||
DEV=$(echo $DEVS | cut -f 1 -d ' ')
|
VOLUME=$(mount |grep ${DEVICE} | cut -f 3 -d ' ')
|
||||||
VOLUME=$(mount |grep ${DEV} | cut -f 3 -d ' ')
|
|
||||||
|
|
||||||
# copy in the application bundle
|
# copy in the application bundle
|
||||||
cp -Rp "${LyxAppDir}.app" "${VOLUME}/${LyxName}.app"
|
cp -Rp "${LyxAppDir}.app" "${VOLUME}/${LyxName}.app"
|
||||||
@ -964,7 +963,7 @@ make_dmg() {
|
|||||||
mv "${VOLUME}/Pictures" "${VOLUME}/.Pictures"
|
mv "${VOLUME}/Pictures" "${VOLUME}/.Pictures"
|
||||||
|
|
||||||
# Unmount the disk image
|
# Unmount the disk image
|
||||||
hdiutil detach ${DEV}
|
hdiutil detach ${DEVICE}
|
||||||
|
|
||||||
# Convert the disk image to read-only
|
# Convert the disk image to read-only
|
||||||
hdiutil convert "${DMGNAME}.sparseimage" -format UDBZ -o "${DMGNAME}.dmg"
|
hdiutil convert "${DMGNAME}.sparseimage" -format UDBZ -o "${DMGNAME}.dmg"
|
||||||
|
Loading…
Reference in New Issue
Block a user