Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Program distribution on Mac
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Fulvio Senore  
View profile  
 More options Oct 1 2012, 2:02 am
From: Fulvio Senore <mail...@fsoft.it>
Date: Mon, 01 Oct 2012 08:02:17 +0200
Local: Mon, Oct 1 2012 2:02 am
Subject: Re: Program distribution on Mac
Il 01/10/2012 0.42, Igor Korot ha scritto:

> Hi, ALL,
> As I'm complete newbie on Mac, here is the question:

> How do I make a distribution package for my program to get installed
> on Mac machine? Something like an .msi, but for Apple.

Here are some info:

https://developer.apple.com/library/mac/#documentation/Porting/Concep...

Basically, for simpler programs, you distribute a .dmg file: it is a
disk image and it contains your app. Users simply drag the app and drop
it in the Applications folder. Often .dmg files contain also a link to
the Application folder so the user can drag the app and drop it to the
nearby link to easily copy it to the Application folder.

Here is a script that I use to create a .dmg file:

-- script start -------------------------------------------

#!/bin/bash

# change these
VOLUME_NAME="vvvP-1.1"
DMG_NAME=vvvP-1.1-i386.dmg

# this script creates a disk image for software distribution in the
current folder,
# copying the content from the app in the ../installed_cocoa folder

# Create an initial disk image (32 megs)
hdiutil create -size 32m -fs HFS+ -volname ${VOLUME_NAME} temp.dmg

# Mount the disk image
hdiutil attach temp.dmg

# copy files to the disk image
cp -R Applications /Volumes/${VOLUME_NAME}
cp -R ../installed_cocoa/vvvP.app /Volumes/${VOLUME_NAME}

# Unmount the disk image
hdiutil detach /Volumes/${VOLUME_NAME}

# Convert the disk image to read-only
hdiutil convert temp.dmg -format UDZO -o ${DMG_NAME}

-- script end -------------------------------------------

Fulvio Senore


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.