package: move electron license to LICENSE.electron and put o-s-c gpl in LICENSE (#615)
This commit is contained in:
parent
2f8d2490ba
commit
9b75f8255d
1 changed files with 10 additions and 2 deletions
|
|
@ -1,7 +1,9 @@
|
|||
const packager = require('electron-packager'),
|
||||
path = require('path'),
|
||||
appData = require('../app/package.json'),
|
||||
safeFFMPEG = require('electron-packager-plugin-non-proprietary-codecs-ffmpeg').default
|
||||
safeFFMPEG = require('electron-packager-plugin-non-proprietary-codecs-ffmpeg').default,
|
||||
licensePath = path.resolve(__dirname + '/../LICENSE'),
|
||||
fs = require('fs')
|
||||
|
||||
var rpi = process.argv.includes('--old-rpi'),
|
||||
all = process.argv.includes('--all')
|
||||
|
|
@ -19,7 +21,13 @@ packager({
|
|||
ignore: /node_modules\/(serialport|uws)/,
|
||||
afterExtract: [safeFFMPEG],
|
||||
prune: false
|
||||
}).then(()=>{
|
||||
}).then((appPaths)=>{
|
||||
|
||||
for (var appPath of appPaths) {
|
||||
var electronLicensePath = path.join(appPath, 'LICENSE')
|
||||
fs.copyFileSync(electronLicensePath, electronLicensePath + '.electron')
|
||||
fs.copyFileSync(licensePath, electronLicensePath)
|
||||
}
|
||||
|
||||
console.warn('\x1b[36m%s\x1b[0m', '=> Build artifacts created in ' + path.resolve(__dirname + '/../dist'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue