Skip to content

Commit f6977c3

Browse files
committed
Merge branch 'master' into v2
2 parents e1fdb85 + 1d79761 commit f6977c3

File tree

10 files changed

+543
-175
lines changed

10 files changed

+543
-175
lines changed

.github/workflows/label-sponsors.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Label sponsors
2+
on:
3+
pull_request:
4+
types: [opened]
5+
issues:
6+
types: [opened]
7+
jobs:
8+
build:
9+
name: is-sponsor-label
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: JasonEtco/is-sponsor-label-action@v1
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/nodeCI.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
id: yarn-cache
2929
run: echo "::set-output name=dir::$(yarn cache dir)"
3030
- name: Yarn cache
31-
if: runner.os != 'Windows'
3231
uses: actions/cache@v1
3332
with:
3433
path: ${{ steps.yarn-cache.outputs.dir }}

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Vue CLI Plugin Electron Builder
22

3-
Instantly add Electron to your Vue.js app, with the help of [Electron Builder](https://www.electron.build/).
3+
A Vue Cli 3/4 plugin for Electron with no required configuration that uses [Electron Builder](https://www.electron.build/).
44

55
Build status: [![Build status](https://github.com/nklayman/vue-cli-plugin-electron-builder/workflows/Node%20CI/badge.svg)](https://github.com/nklayman/vue-cli-plugin-electron-builder/actions)
66

@@ -42,6 +42,12 @@ To see more documentation, [visit our website](https://nklayman.github.io/vue-cl
4242

4343
## Supporters
4444

45-
| [![Andrew LeTourneau](https://avatars2.githubusercontent.com/u/2807807?s=64&v=4)](https://github.com/centerorbit) |
46-
| ----------------------------------------------------------------------------------------------------------------- |
47-
| [Andrew LeTourneau](https://github.com/centerorbit) |
45+
| [![Yves Hoppe](https://avatars1.githubusercontent.com/u/897638?s=64&v=4)](https://github.com/yvesh) | [![Andrew LeTourneau](https://avatars2.githubusercontent.com/u/2807807?s=64&v=4)](https://github.com/centerorbit) | [![Mitch Dennet](https://avatars2.githubusercontent.com/u/16268619?s=64&v=4)](https://github.com/mitchdennett) | [![Kasen IO](https://avatars0.githubusercontent.com/u/52365539?s=64)](https://kasen.io) | [![Ivorzk](https://avatars2.githubusercontent.com/u/7390138?s=64)](https://github.com/Ivorzk) | [![Eric Schirtzinger](https://avatars2.githubusercontent.com/u/24927782?s=64)](https://github.com/eschirtz) | [![Alec Armbruster](https://avatars2.githubusercontent.com/u/35377827?s=64)](https://github.com/alectrocute) |
46+
| --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
47+
| [Yves Hoppe](https://github.com/yvesh) | [Andrew LeTourneau](https://github.com/centerorbit) | [Mitch Dennet](https://github.com/mitchdennett) | [Kasen IO](https://kasen.io) | [Ivorzk](https://github.com/Ivorzk) | [Eric Schirtzinger](https://github.com/eschirtz) | [Alec Armbruster](https://github.com/alectrocute) |
48+
49+
## Past Supporters
50+
51+
| [<img src="https://avatars2.githubusercontent.com/u/46167401?s=64&v=4" width="64">](https://github.com/Mary-Tyler-Moore) |
52+
| ------------------------------------------------------------------------------------------------------------------------ |
53+
| [Mary-Tyler-Moore](https://github.com/Mary-Tyler-Moore) |

docs/.vuepress/config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
title: 'Vue CLI Plugin Electron Builder',
3-
description: 'Instantly Add Electron to Your Vue.js App',
3+
description:
4+
'A Vue CLI 3/4 plugin for Electron with no required configuration.',
45
base: '/vue-cli-plugin-electron-builder/',
56
ga: 'UA-134189455-2',
67
head: [

docs/guide/recipes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ app.on('activate', () => {
264264

265265
// Replace
266266
if (win === null) {
267-
createWindw()
267+
createWindow()
268268
}
269269
// With
270270
if (win === null) {

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,14 @@ module.exports = (api, options) => {
268268
removeArg('--dashboard', 1, rawArgs)
269269
removeArg('--debug', 1, rawArgs)
270270
removeArg('--headless', 1, rawArgs)
271+
removeArg('--https', 1, rawArgs)
271272

272273
// Run the serve command
273274
const server = await api.service.run('serve', {
274275
_: [],
275276
// Use dashboard if called from ui
276-
dashboard: args.dashboard
277+
dashboard: args.dashboard,
278+
https: args.https
277279
})
278280
const outputDir = pluginOptions.outputDir || 'dist_electron'
279281

lib/createProtocol.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default scheme => {
1212

1313
readFile(path.join(__dirname, pathName), (error, data) => {
1414
if (error) {
15-
console.error(`Failed to register ${scheme} protocol`, error)
15+
console.error(`Failed to read ${pathName} on ${scheme} protocol`, error)
1616
}
1717
const extension = path.extname(pathName).toLowerCase()
1818
let mimeType = ''

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-cli-plugin-electron-builder",
3-
"version": "2.0.0-beta.6",
4-
"description": "Instantly Add Electron to Your Vue.js App",
3+
"version": "1.4.6",
4+
"description": "A Vue Cli 3 plugin for Electron with no required configuration",
55
"main": "index.js",
66
"homepage": "https://nklayman.github.io/vue-cli-plugin-electron-builder/",
77
"funding": "https://github.com/sponsors/nklayman",

ui.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ module.exports = api => {
3939
api.describeTask({
4040
match: /vue-cli-service electron:serve/,
4141
description: 'Serve your app, launch electron',
42-
link: 'https://nklayman.github.io/vue-cli-plugin-electron-builder/'
42+
link: 'https://nklayman.github.io/vue-cli-plugin-electron-builder/',
43+
prompts: [
44+
{
45+
name: 'noSandbox',
46+
type: 'confirm',
47+
default: false,
48+
description: 'Disable sandbox (--no-sandbox)',
49+
link: 'https://github.com/electron/electron/issues/18265'
50+
}
51+
],
52+
onBeforeRun: ({ answers, args }) => {
53+
// Args
54+
if (answers.noSandbox) args.push('--no-sandbox')
55+
}
56+
4357
})
4458
}

0 commit comments

Comments
 (0)