How to publish a vue-electron release to github using this plugin?
See original GitHub issueHelo friends,
I have an electron application that uses autoUpdater, but I don’t know how to release …
I have this in the background.js:
const server = 'https://cinecoqui.chrismichael.now.sh'
const feed = `${server}/update/${process.platform}/${app.getVersion()}`
autoUpdater.setFeedURL(feed);
setInterval(() => {
autoUpdater.checkForUpdates()
}, 60000);
autoUpdater.on('update-downloaded', (event, releaseNotes, releaseName) => {
const dialogOpts = {
type: 'info',
buttons: ['Restart', 'Later'],
title: 'Application Update',
message: process.platform === 'win32' ? releaseNotes : releaseName,
detail: 'A new version has been downloaded. Restart the application to apply the updates.'
}
dialog.showMessageBox(dialogOpts, (response) => {
if (response === 0) autoUpdater.quitAndInstall()
})
})
autoUpdater.on('error', message => {
console.error('There was a problem updating the application')
console.error(message)
})
When I write the
npm run electron:build
command it generates what is the dist_electron
folder, next to the latest.yml
file that have this:
version: 1.1.0
files:
- url: cinecoqui-Setup-1.1.0.exe
sha512: DNQh9JA/Ex2dNij3ZYNtKPXs1j9L+cHUFZR6xg2aSJkU6KglEAe6XBJMtc6UBtJIHaUXuAaZPrVmnBivJwEzrA==
size: 43692738
path: cinecoqui-Setup-1.1.0.exe
sha512: DNQh9JA/Ex2dNij3ZYNtKPXs1j9L+cHUFZR6xg2aSJkU6KglEAe6XBJMtc6UBtJIHaUXuAaZPrVmnBivJwEzrA==
releaseDate: '2019-09-26T15:06:02.912Z'
Some help I will appreciate it
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:21 (4 by maintainers)
Top Results From Across the Web
How to upload a release to GitHub repo? · Issue #85
Hi, I have an electron release built with yarn build:electron. I want it to be uploaded automatically to a GitHub repository.
Read more >SimulatedGREG/vue-electron - GitHub
This plugin will attach electron APIs to the Vue object itself, so accessing all APIs is dead simple. All official documentation from electron...
Read more >SimulatedGREG/electron-vue - GitHub
The aim of this project is to remove the need of manually setting up electron apps using vue. electron-vue takes advantage of vue-cli...
Read more >Example using electron-updater with `generic` provider. · GitHub
Update the version in package.json . Do steps 3 and 4 again. Open the installed version of the app and see that it...
Read more >Electron isn't launching on serve:electron #24 - GitHub
Tried with npm 5.6.0, npm 6.1.0 and yarn 1.7.0. node version. node v10.4.1. vue-cli version. 3.0.0-rc.2. vue-cli-plugin-electron-builder ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Try this page: https://www.electron.build/configuration/publish
I use this in my vue.config.js:
And run the publish command
vue-cli-service electron:build -p always
with the GH_TOKEN prefixed, eg:GH_TOKEN=123 npm run publish
Took me a bit to figure all this out, the information is there just spread out.
Helo @Christilut ,
Thank you very much for your input. I achieved what I wanted. I must mention is that the configuration of the vue.config.js file:
It showed me an error, Invalid options in
vue.config.js
:To fix it, I took the configuration and pasted it into the
package.json
.Then I define the script of the publication:
And in the line command I wrote the following:
💯 Now, in github in the releases section we will see our draft with the files.