mirror of https://github.com/lukechilds/Agama.git
pbca26
7 years ago
committed by
GitHub
7 changed files with 67 additions and 6 deletions
@ -0,0 +1,26 @@ |
|||||
|
// prequsites: https://www.npmjs.com/package/electron-installer-debian
|
||||
|
|
||||
|
var installer = require('electron-installer-debian'); |
||||
|
|
||||
|
var options = { |
||||
|
src: 'build/Agama-linux-x64/', |
||||
|
dest: 'build/', |
||||
|
arch: 'amd64', |
||||
|
icon: 'assets/icons/agama_icons/64x64.png', |
||||
|
name: 'agama-app', |
||||
|
bin: 'Agama', |
||||
|
categories: ['Office', 'Internet'], |
||||
|
homepage: 'http://supernet.org', |
||||
|
maintainer: 'SuperNET <dev@supernet.org>', |
||||
|
} |
||||
|
|
||||
|
console.log('Creating package (this may take a while)'); |
||||
|
|
||||
|
installer(options, function (err) { |
||||
|
if (err) { |
||||
|
console.error(err, err.stack); |
||||
|
process.exit(1); |
||||
|
} |
||||
|
|
||||
|
console.log('Successfully created package at ' + options.dest); |
||||
|
}); |
@ -0,0 +1,26 @@ |
|||||
|
// prequsites: https://www.npmjs.com/package/electron-installer-redhat
|
||||
|
|
||||
|
var installer = require('electron-installer-redhat'); |
||||
|
|
||||
|
var options = { |
||||
|
src: 'build/Agama-linux-x64/', |
||||
|
dest: 'build/', |
||||
|
arch: 'x86_64', |
||||
|
icon: 'assets/icons/agama_icons/64x64.png', |
||||
|
name: 'agama-app', |
||||
|
bin: 'Agama', |
||||
|
categories: ['Office', 'Internet'], |
||||
|
homepage: 'http://supernet.org', |
||||
|
maintainer: 'SuperNET <dev@supernet.org>', |
||||
|
}; |
||||
|
|
||||
|
console.log('Creating package (this may take a while)'); |
||||
|
|
||||
|
installer(options, function (err) { |
||||
|
if (err) { |
||||
|
console.error(err, err.stack); |
||||
|
process.exit(1); |
||||
|
} |
||||
|
|
||||
|
console.log('Successfully created package at ' + options.dest); |
||||
|
}); |
Loading…
Reference in new issue