~heckyel/librevideoconverter

ref: 8f61ee8ed81090e8df2341bd02ab5f5d9a12f110 librevideoconverter/make_disk_image.sh -rw-r--r-- 542 bytes
8f61ee8e — Jesús basicconverters.py: improve titles of conversions options 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# echo "Building app..."
#python2.7 setup.py py2app
echo "Building disk image..."
imgName=$(date '+lvc-%Y-%m-%d.dmg')
imgDirName="dist/img"
imgPath="dist/$imgName"
rm -rf "$imgDirName" "$imgPath"
mkdir "$imgDirName"
cp -r dist/Libre\ Video\ Converter.app "$imgDirName/"
ln -s /Applications "$imgDirName/Applications"
echo "Creating DMG file... "
hdiutil create -srcfolder "$imgDirName" -volname lvc -format UDZO dist/lvc.tmp.dmg
hdiutil convert -format UDZO -imagekey zlib-level=9 -o "$imgPath" dist/lvc.tmp.dmg
rm dist/lvc.tmp.dmg