Browse Source

chore: update packager

pull/3551/head
Samuel Attard 7 months ago
parent
commit
23d97992b8
4 changed files with 577 additions and 181 deletions
  1. 2
    2
      appveyor.yml
  2. 12
    7
      gulpfile.babel.js
  3. 3
    3
      package.json
  4. 560
    169
      yarn.lock

+ 2
- 2
appveyor.yml View File

@@ -51,8 +51,8 @@ test_script:
- npm test
# Clean build so that Component names are not minified
- npm run build
- npm run test-electron-main -- -R mocha-appveyor-reporter
- npm run test-electron-renderer -- -R mocha-appveyor-reporter
- npm run test-electron-main
- npm run test-electron-renderer

build_script:
- cmd: npm run make:win

+ 12
- 7
gulpfile.babel.js View File

@@ -35,7 +35,7 @@ const paths = {

const packageJSON = require('./package.json');

let version = packageJSON.dependencies.electron;
let version = packageJSON.devDependencies.electron;
if (version.substr(0, 1) !== '0' && version.substr(0, 1) !== '1' && version.substr(0, 1) !== '2' && version.substr(0, 1) !== '3') {
version = version.substr(1);
}
@@ -259,15 +259,14 @@ gulp.task('watch', ['build'], () => {
});

gulp.task('package:win', ['clean-dist-win', 'build-release'], (done) => {
packager(_.extend({}, defaultPackageConf, { platform: 'win32', arch: 'ia32' }), (err) => {
if (err) return done(err);
packager(_.extend({}, defaultPackageConf, { platform: 'win32', arch: 'ia32' })).then(() => {
setTimeout(() => {
const packageExePath = `dist/${packageJSON.productName}-win32-ia32/${packageJSON.productName}.exe`;
windowsSignFile(packageExePath, 'sha1')
.then(() => windowsSignFile(packageExePath, 'sha256'))
.then(() => done());
}, 1000);
});
}).catch((err) => done(err));
});

gulp.task('make:win', ['package:win'], (done) => {
@@ -307,7 +306,9 @@ gulp.task('make:win:uwp', ['package:win'], (done) => {
});

gulp.task('package:darwin', ['clean-dist-darwin', 'build-release'], (done) => {
packager(_.extend({}, defaultPackageConf, { platform: 'darwin', osxSign: { identity: 'Developer ID Application: Samuel Attard (S7WPQ45ZU2)' } }), done); // eslint-disable-line
packager(_.extend({}, defaultPackageConf, { platform: 'darwin', osxSign: { identity: 'Developer ID Application: Samuel Attard (S7WPQ45ZU2)' } })) // eslint-disable-line
.then(() => done())
.catch((err) => done(err));
});

gulp.task('make:darwin', ['package:darwin'], (done) => {
@@ -342,12 +343,16 @@ gulp.task('dmg:darwin', ['package:darwin'], (done) => {

gulp.task('package:linux:32', ['clean-dist-linux-32', 'build-release'], (done) => {
if (process.env.GPMDP_SKIP_PACKAGE) return done();
packager(_.extend({}, defaultPackageConf, { platform: 'linux', arch: 'ia32' }), done);
packager(_.extend({}, defaultPackageConf, { platform: 'linux', arch: 'ia32' }))
.then(() => done())
.catch((err) => done(err));
});

gulp.task('package:linux:64', ['clean-dist-linux-64', 'build-release'], (done) => {
if (process.env.GPMDP_SKIP_PACKAGE) return done();
packager(_.extend({}, defaultPackageConf, { platform: 'linux', arch: 'x64' }), done);
packager(_.extend({}, defaultPackageConf, { platform: 'linux', arch: 'x64' }))
.then(() => done())
.catch((err) => done(err));
});

gulp.task('package:linux', (done) => {

+ 3
- 3
package.json View File

@@ -62,7 +62,6 @@
"archiver": "^1.0.1",
"auto-launch": "^4.0.0",
"discord-rich-presence": "^0.0.7",
"electron": "3.1.8",
"electron-chromecast": "^1.1.0",
"gmusic-mini-player.js": "^2.0.10",
"gmusic-theme.js": "^2.1.18",
@@ -106,10 +105,11 @@
"coveralls": "^2.11.12",
"cross-env": "^2.0.1",
"devtron": "^1.0.1",
"electron": "3.1.8",
"electron-devtools-installer": "^2.2.4",
"electron-mocha": "^3.0.0",
"electron-packager": "^8.0.0",
"electron-rebuild": "^1.5.6",
"electron-packager": "^13.1.1",
"electron-rebuild": "^1.8.4",
"electron-windows-store": "^0.9.3",
"enzyme": "^2.4.1",
"eslint": "^2.10.2",

+ 560
- 169
yarn.lock
File diff suppressed because it is too large
View File


Loading…
Cancel
Save