OSDN Git Service

v1.5.2
[serene/MyBrowser.git] / build-linux.js
index 42aa791..21d9f40 100644 (file)
@@ -1,5 +1,3 @@
-'use strict';
-
 const builder = require('electron-builder');
 const fs = require('fs');
 const packageJson = JSON.parse(fs.readFileSync('./app/package.json', 'utf8'));
@@ -9,13 +7,28 @@ builder.build({
     config: {
         'appId': `org.aoichaan0513.${packageJson.name}`,
         'productName': packageJson.name,
+        'copyright': `Copyright 2019 ${packageJson.author.name}. All rights reserved.`,
         'asar': true,
+        'fileAssociations': [
+            {
+                'name': 'Document',
+                'description': packageJson.name,
+                'role': 'Viewer',
+                'ext': 'html'
+            }
+        ],
         'nsis': {
             'installerIcon': './static/icon.ico',
             'uninstallerIcon': './static/icon.ico'
         },
         'linux': {
-            'target': 'deb',
+            'category': 'Network',
+            'target': [
+                {
+                    'target': 'AppImage',
+                    'arch': ['ia32', 'x64']
+                }
+            ],
             'icon': './static/icon.ico',
         },
     },