Skip to content

Commit 8e5979c

Browse files
dgolovinjrichter1
authored andcommitted
Change packaging for mac to DMG
Fix changes packaging to dmg for mac and updates README.md to mention new format for macOS installers.
1 parent 0b235be commit 8e5979c

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ the GNU LGPL license, more details on <https://www.7zip.org>).
2020

2121
#### macOS
2222

23-
Both Installers are zipped macOS Application Bundles.
23+
Each Installer is a disk image (.dmg file) with macOS Application Bundle inside.
2424

2525
Architecture
2626
------------
@@ -117,8 +117,8 @@ in bash terminal
117117

118118
npm run dist:mac
119119

120-
After build finishes ./dist folder should contain zipped macOS application
121-
package files for On-line and Bundle Installers.
120+
After build finishes ./dist folder should contain disk image files (.dmg) with macOS application
121+
packages for On-line and Bundle Installers.
122122

123123
#### Linux
124124

gulp-tasks/dist-darwin.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function buildInstaller(gulp, origin, destination, extraFiles) {
2525
mac: {
2626
category: 'public.app-category.developer-tools',
2727
icon: 'resources/devsuite.icns',
28-
target: ['zip'],
28+
target: ['dmg'],
2929
publish: null
3030
},
3131
files: '**/*',
@@ -68,8 +68,8 @@ function darwinDist(gulp, reqs) {
6868

6969
gulp.task('dist-bundle', ['prefetch'], function() {
7070
return buildInstaller(gulp,
71-
`dist/${productName}-${productVersion}-mac.zip`,
72-
`dist/devsuite-${productVersion}-bundle-installer-mac.zip`,
71+
`dist/${productName}-${productVersion}.dmg`,
72+
`dist/devsuite-${productVersion}-bundle-installer-mac.dmg`,
7373
[{
7474
'from': 'requirements-cache',
7575
'to': '.',
@@ -79,13 +79,16 @@ function darwinDist(gulp, reqs) {
7979

8080
gulp.task('dist-simple', function() {
8181
return buildInstaller(gulp,
82-
`dist/${productName}-${productVersion}-mac.zip`,
83-
`dist/devsuite-${productVersion}-installer-mac.zip`
82+
`dist/${productName}-${productVersion}.dmg`,
83+
`dist/devsuite-${productVersion}-installer-mac.dmg`
8484
);
8585
});
8686

8787
gulp.task('cleanup', function() {
88-
return del(['dist/mac', `dist/${productName}-${productVersion}-mac.zip`],
88+
return del([
89+
'dist/mac',
90+
`dist/${productName}-${productVersion}.dmg`,
91+
`dist/${productName}-${productVersion}.dmg.blockmap`],
8992
{ force: false });
9093
});
9194

0 commit comments

Comments
 (0)