mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-04 20:13:11 +08:00
Upgrade electron-packager and electron-installer-dmg
This commit is contained in:
parent
42a9a3ef1c
commit
a34a40add7
3 changed files with 590 additions and 591 deletions
|
@ -5,29 +5,26 @@ module.exports = grunt => {
|
|||
grunt.registerTask('create-mac-dmg', 'Create DMG for Mailspring', function pack() {
|
||||
const done = this.async();
|
||||
const dmgPath = path.join(grunt.config('outputDir'), 'Mailspring.dmg');
|
||||
createDMG(
|
||||
{
|
||||
appPath: path.join(grunt.config('outputDir'), 'Mailspring-darwin-x64', 'Mailspring.app'),
|
||||
name: 'Mailspring',
|
||||
background: path.resolve(
|
||||
grunt.config('appDir'),
|
||||
'build',
|
||||
'resources',
|
||||
'mac',
|
||||
'DMG-background.png'
|
||||
),
|
||||
icon: path.resolve(grunt.config('appDir'), 'build', 'resources', 'mac', 'mailspring.icns'),
|
||||
overwrite: true,
|
||||
out: grunt.config('outputDir'),
|
||||
},
|
||||
err => {
|
||||
if (err) {
|
||||
done(err);
|
||||
return;
|
||||
}
|
||||
|
||||
createDMG({
|
||||
appPath: path.join(grunt.config('outputDir'), 'Mailspring-darwin-x64', 'Mailspring.app'),
|
||||
name: 'Mailspring',
|
||||
background: path.resolve(
|
||||
grunt.config('appDir'),
|
||||
'build',
|
||||
'resources',
|
||||
'mac',
|
||||
'DMG-background.png'
|
||||
),
|
||||
icon: path.resolve(grunt.config('appDir'), 'build', 'resources', 'mac', 'mailspring.icns'),
|
||||
overwrite: true,
|
||||
out: grunt.config('outputDir'),
|
||||
}).then(
|
||||
() => {
|
||||
grunt.log.writeln(`>> Created ${dmgPath}`);
|
||||
done(null);
|
||||
},
|
||||
err => {
|
||||
done(err);
|
||||
}
|
||||
);
|
||||
});
|
||||
|
|
1138
package-lock.json
generated
1138
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -56,8 +56,8 @@
|
|||
"chalk": "1.x.x",
|
||||
"devtron": "^1.4.0",
|
||||
"electron": "8.5.5",
|
||||
"electron-installer-dmg": "0.2.x",
|
||||
"electron-packager": "14.2.x",
|
||||
"electron-installer-dmg": "^3.0.0",
|
||||
"electron-packager": "15.2.x",
|
||||
"electron-winstaller": "2.x.x",
|
||||
"eslint": "7.13.0",
|
||||
"eslint-config-prettier": "7.2.0",
|
||||
|
|
Loading…
Reference in a new issue