forked from DannyNoam/casinocoin-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateLinuxInstaller.js
More file actions
45 lines (34 loc) · 1.13 KB
/
createLinuxInstaller.js
File metadata and controls
45 lines (34 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
const debianInstaller = require('electron-installer-debian');
const redhatInstaller = require('electron-installer-redhat');
const path = require('path')
const appVersion = require('./package.json').version;
var debianOptions = {
src: 'app-builds/casinocoin-wallet-linux-x64/',
dest: 'release-builds/',
icon: 'src/assets/brand/casinocoin-icon-256x256.png',
homepage: 'http://www.casinocoin.org',
arch: 'amd64'
}
console.log('Creating Debian Package (this may take a while)')
debianInstaller(debianOptions, function (err) {
if (err) {
console.error(err, err.stack)
process.exit(1)
}
console.log('Successfully created package at ' + debianOptions.dest)
})
var redhatOptions = {
src: 'app-builds/casinocoin-wallet-linux-x64/',
dest: 'release-builds/',
icon: 'src/assets/brand/casinocoin-icon-256x256.png',
homepage: 'http://www.casinocoin.org',
arch: 'x86_64'
}
console.log('Creating RPM Package (this may take a while)');
redhatInstaller(redhatOptions, function (err) {
if (err) {
console.error(err, err.stack)
process.exit(1)
}
console.log('Successfully created package at ' + redhatOptions.dest);
});