Loading Mac-build/README.txt +13 −3 Original line number Diff line number Diff line Loading @@ -3,9 +3,19 @@ How to create an installer (.dmg) for MacOs for the Easy Installer 1/ Build the easy installer application normally 2/ Goto this folder (Mac-build) 3/ run the ./mac_package.sh script. This create a folder `EasyInstaller-installer` containing the `EasyInstaller.app` (application) 4/ Launch (on a Mac computer, this can't be done on the server side I guess) the `Disk Utility` Application 5/ Select `File / New Image / Image from Folder` 6/ Select `EasyInstaller-installer` and validate (no Encryption & compressed) 4/ sudo apt-get install hfsprogs 5/ dd if=/dev/zero of=/tmp/EasyInstaller.dmg bs=1M count=128 status=progress 6/ mkfs.hfsplus -v Install /tmp/EasyInstaller.dmg 7/ mkdir -pv /tmp/mnt-easyinstaller 8/ mount -o loop /tmp/my_application.dmg /tmp/mnt-easyinstaller 9/ cp -av EasyInstaller-installer/ /tmp/mnt-easyinstaller 10/ umount /tmp/mnt-easyinstaller 7/ The installer is ready 8/ TODO : The Info.plist file should contains the version number Loading Mac-build/mac_package.sh +18 −3 Original line number Diff line number Diff line Loading @@ -5,8 +5,8 @@ DIR="$APPNAME.app/Contents/MacOS" DIR1="$APPNAME.app/Contents/Resources" if [ -a "$APPNAME.app" ]; then echo "$PWD/$APPNAME.app already exists :(" exit 1 echo "$PWD/$APPNAME.app already exists delete it." rm -rf "$APPNAME.app" fi mkdir -p "$DIR" Loading @@ -20,3 +20,18 @@ cp easy-installer.png "$DIR1" mkdir -p "$APPNAME-installer" mv "$APPNAME.app" "$APPNAME-installer" _SIZE=$(du -s EasyInstaller-installer | cut -f 1) let SIZE=_SIZE/1000+1 echo $SIZE dd if=/dev/zero of=/tmp/EasyInstaller.dmg bs=1M count=$SIZE status=progress mkfs.hfsplus -v Install /tmp/EasyInstaller.dmg sudo mkdir -pv /tmp/mnt-easyinstaller sudo mount -o loop /tmp/EasyInstaller.dmg /tmp/mnt-easyinstaller sudo cp -av EasyInstaller-installer/* /tmp/mnt-easyinstaller sudo umount /tmp/mnt-easyinstaller rm -rf "$APPNAME.app" rm -rf EasyInstaller-installer Loading
Mac-build/README.txt +13 −3 Original line number Diff line number Diff line Loading @@ -3,9 +3,19 @@ How to create an installer (.dmg) for MacOs for the Easy Installer 1/ Build the easy installer application normally 2/ Goto this folder (Mac-build) 3/ run the ./mac_package.sh script. This create a folder `EasyInstaller-installer` containing the `EasyInstaller.app` (application) 4/ Launch (on a Mac computer, this can't be done on the server side I guess) the `Disk Utility` Application 5/ Select `File / New Image / Image from Folder` 6/ Select `EasyInstaller-installer` and validate (no Encryption & compressed) 4/ sudo apt-get install hfsprogs 5/ dd if=/dev/zero of=/tmp/EasyInstaller.dmg bs=1M count=128 status=progress 6/ mkfs.hfsplus -v Install /tmp/EasyInstaller.dmg 7/ mkdir -pv /tmp/mnt-easyinstaller 8/ mount -o loop /tmp/my_application.dmg /tmp/mnt-easyinstaller 9/ cp -av EasyInstaller-installer/ /tmp/mnt-easyinstaller 10/ umount /tmp/mnt-easyinstaller 7/ The installer is ready 8/ TODO : The Info.plist file should contains the version number Loading
Mac-build/mac_package.sh +18 −3 Original line number Diff line number Diff line Loading @@ -5,8 +5,8 @@ DIR="$APPNAME.app/Contents/MacOS" DIR1="$APPNAME.app/Contents/Resources" if [ -a "$APPNAME.app" ]; then echo "$PWD/$APPNAME.app already exists :(" exit 1 echo "$PWD/$APPNAME.app already exists delete it." rm -rf "$APPNAME.app" fi mkdir -p "$DIR" Loading @@ -20,3 +20,18 @@ cp easy-installer.png "$DIR1" mkdir -p "$APPNAME-installer" mv "$APPNAME.app" "$APPNAME-installer" _SIZE=$(du -s EasyInstaller-installer | cut -f 1) let SIZE=_SIZE/1000+1 echo $SIZE dd if=/dev/zero of=/tmp/EasyInstaller.dmg bs=1M count=$SIZE status=progress mkfs.hfsplus -v Install /tmp/EasyInstaller.dmg sudo mkdir -pv /tmp/mnt-easyinstaller sudo mount -o loop /tmp/EasyInstaller.dmg /tmp/mnt-easyinstaller sudo cp -av EasyInstaller-installer/* /tmp/mnt-easyinstaller sudo umount /tmp/mnt-easyinstaller rm -rf "$APPNAME.app" rm -rf EasyInstaller-installer