Skip to content

Commit

Permalink
DIRSTUDIO-1185, DIRSTUDIO-1140: Sign MacOS App
Browse files Browse the repository at this point in the history
  • Loading branch information
seelmann committed Sep 8, 2018
1 parent 43328e1 commit 5994882
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ eclipse-trgt-platform/org.apache.directory.studio.eclipse-trgt-platform.target
plugins/ldapbrowser.core/lib/
plugins/ldapservers.apacheds/resources/libs/
tests/test.integration.ui/screenshots
.DS_Store

11 changes: 8 additions & 3 deletions installers/macos/src/dmg/createDMG.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
# specific language governing permissions and limitations
# under the License.

set -e

# Creating dmg and .background folders
mkdir dmg
mkdir -p dmg/.background

# Copy the application
cp -a ../../../product/target/products/org.apache.directory.studio.product/macosx/cocoa/x86_64/ApacheDirectoryStudio.app dmg/
tar -xf ../../../product/target/products/ApacheDirectoryStudio-*-macosx.cocoa.x86_64.tar.gz -C dmg

# Copy legal files
cp dmg/ApacheDirectoryStudio.app/Contents/Eclipse/LICENSE dmg/
Expand All @@ -36,9 +38,12 @@ mv DS_Store dmg/.DS_Store
# Creating symbolic link to Applications folder
ln -s /Applications dmg/Applications

# Codesign the App with the ASF key, and verify
codesign --force --deep -s 2GLGAFWEQD dmg/ApacheDirectoryStudio.app
codesign -dv --verbose=4 dmg/ApacheDirectoryStudio.app

# Creating the disk image
hdiutil create -srcfolder dmg/ -o TMP.dmg
hdiutil makehybrid -hfs -hfs-volume-name "Apache Directory Studio" -hfs-openfolder dmg/ dmg/ -o TMP.dmg
hdiutil create -srcfolder dmg/ -volname "ApacheDirectoryStudio" -o TMP.dmg
hdiutil convert -format UDZO TMP.dmg -o ApacheDirectoryStudio-${version}-macosx.cocoa.x86_64.dmg

# Cleaning
Expand Down

0 comments on commit 5994882

Please sign in to comment.