mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-10 22:54:45 +08:00
Update electron-packager, remove .dmg mac build - it’s unused
This commit is contained in:
parent
c214361b92
commit
8364579581
6 changed files with 750 additions and 1420 deletions
|
@ -56,7 +56,7 @@ module.exports = grunt => {
|
||||||
// The Windows electron-winstaller task must be run outside of grunt
|
// The Windows electron-winstaller task must be run outside of grunt
|
||||||
]);
|
]);
|
||||||
} else if (grunt.option('platform') === 'darwin') {
|
} else if (grunt.option('platform') === 'darwin') {
|
||||||
grunt.registerTask('build-client', ['package', 'create-mac-zip', 'create-mac-dmg']);
|
grunt.registerTask('build-client', ['package', 'create-mac-zip']);
|
||||||
} else if (grunt.option('platform') === 'linux') {
|
} else if (grunt.option('platform') === 'linux') {
|
||||||
grunt.registerTask('build-client', ['package', 'create-deb-installer', 'create-rpm-installer']);
|
grunt.registerTask('build-client', ['package', 'create-deb-installer', 'create-rpm-installer']);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,35 +0,0 @@
|
||||||
const path = require('path');
|
|
||||||
const createDMG = require('electron-installer-dmg');
|
|
||||||
|
|
||||||
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-${process.arch}`,
|
|
||||||
'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);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
};
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* eslint global-require: 0 */ /* eslint prefer-template: 0 */
|
/* eslint global-require: 0 */ /* eslint prefer-template: 0 */
|
||||||
/* eslint quote-props: 0 */
|
/* eslint quote-props: 0 */
|
||||||
const packager = require('electron-packager');
|
const packager = require('@electron/packager');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const util = require('util');
|
const util = require('util');
|
||||||
const tmpdir = path.resolve(require('os').tmpdir(), 'nylas-build');
|
const tmpdir = path.resolve(require('os').tmpdir(), 'nylas-build');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { localized, React } from 'mailspring-exports';
|
import { localized, React } from 'mailspring-exports';
|
||||||
import { ipcRenderer, remote, shell } from 'electron';
|
import { ipcRenderer, shell } from 'electron';
|
||||||
import { Notification } from 'mailspring-component-kit';
|
import { Notification } from 'mailspring-component-kit';
|
||||||
import { Disposable } from 'event-kit';
|
import { Disposable } from 'event-kit';
|
||||||
|
|
||||||
|
|
2126
package-lock.json
generated
2126
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -53,8 +53,7 @@
|
||||||
"chalk": "1.x.x",
|
"chalk": "1.x.x",
|
||||||
"devtron": "^1.4.0",
|
"devtron": "^1.4.0",
|
||||||
"electron": "30.0.9",
|
"electron": "30.0.9",
|
||||||
"electron-installer-dmg": "^4.0.0",
|
"@electron/packager": "18.3.2",
|
||||||
"electron-packager": "17.1.x",
|
|
||||||
"electron-winstaller": "5.1.x",
|
"electron-winstaller": "5.1.x",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-config-prettier": "7.2.0",
|
"eslint-config-prettier": "7.2.0",
|
||||||
|
|
Loading…
Add table
Reference in a new issue