Skip to content

Commit cedc193

Browse files
committed
Enable asar & fix app name
1 parent f42db99 commit cedc193

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

meta.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,14 @@ module.exports = {
3333
type: 'string',
3434
required: true,
3535
message: 'Application Name',
36-
default: 'your-app'
36+
default: 'Electron app'
3737
},
3838
appid: {
3939
when: 'isNotTest',
4040
type: 'string',
4141
required: true,
4242
message: 'Application Id',
43-
default: 'com.example.yourapp'
44-
},
45-
appver: {
46-
when: 'isNotTest',
47-
type: 'string',
48-
required: true,
49-
message: 'Application Version',
50-
default: '0.0.1'
43+
default: 'com.example.app'
5144
},
5245
description: {
5346
when: 'isNotTest',

template/builder.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ const macOS = {
4242
}
4343

4444
module.exports = {
45-
asar: false,
46-
productName: 'My browser',
47-
appId: 'org.michalzarach.my-browser',
48-
artifactName: 'my-browser-${version}.${ext}',
45+
productName: '{{ name }}',
46+
appId: '{{ appid }}',
47+
artifactName: 'setup-${version}.${ext}',
4948
directories: {
5049
output: 'build'
5150
},

template/package-template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "{{ name }}",
3-
"version": "{{ appver }}",
3+
"version": "0.0.1",
44
"description": "{{ description }}",
55
"main": "./dist/main/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)