Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 371fa243 authored by Frank Preel's avatar Frank Preel Committed by Nicolas Gelot
Browse files

Mac publish

parent 30b364ae
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -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

+18 −3
Original line number Diff line number Diff line
@@ -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"
@@ -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