~heckyel/librevideoconverter

ref: 996a58ed6b2819dea186445333d6644464e03216 librevideoconverter/make_disk_image.sh -rw-r--r-- 542 bytes
996a58ed — Jesús converter.py: change output to "(file name)_identifier.extension" 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