mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
fixed auto updater
error when update downloaded
This commit is contained in:
parent
db55498c4c
commit
87ba2d374f
12
.github/workflows/build-project-linux.yml
vendored
12
.github/workflows/build-project-linux.yml
vendored
|
@ -108,7 +108,11 @@ jobs:
|
|||
with:
|
||||
node-version: 16
|
||||
|
||||
|
||||
- name: Release TNC
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
files: ./tnc/dist/compressed/${{ matrix.zip_name }}.zip
|
||||
|
||||
- name: Build/release Electron app
|
||||
uses: samuelmeuli/action-electron-builder@v1
|
||||
|
@ -121,8 +125,4 @@ jobs:
|
|||
args: "-p always"
|
||||
|
||||
|
||||
- name: Release TNC
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
files: ./tnc/dist/compressed/${{ matrix.zip_name }}.zip
|
||||
|
||||
|
|
13
.github/workflows/build-project-mac.yml
vendored
13
.github/workflows/build-project-mac.yml
vendored
|
@ -96,7 +96,12 @@ jobs:
|
|||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
|
||||
- name: Release TNC
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
files: ./tnc/dist/compressed/${{ matrix.zip_name }}.zip
|
||||
|
||||
- name: Build/release Electron app
|
||||
uses: samuelmeuli/action-electron-builder@v1
|
||||
|
@ -108,9 +113,5 @@ jobs:
|
|||
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
args: "-p always"
|
||||
|
||||
- name: Release TNC
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
files: ./tnc/dist/compressed/${{ matrix.zip_name }}.zip
|
||||
|
||||
|
||||
|
|
12
.github/workflows/build-project-win.yml
vendored
12
.github/workflows/build-project-win.yml
vendored
|
@ -96,7 +96,11 @@ jobs:
|
|||
with:
|
||||
node-version: 16
|
||||
|
||||
|
||||
- name: Release TNC
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
files: ./tnc/dist/tnc/${{ matrix.zip_name }}.zip
|
||||
|
||||
- name: Build/release Electron app
|
||||
uses: samuelmeuli/action-electron-builder@v1
|
||||
|
@ -108,8 +112,4 @@ jobs:
|
|||
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
args: "-p always"
|
||||
|
||||
- name: Release TNC
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
files: ./tnc/dist/tnc/${{ matrix.zip_name }}.zip
|
||||
|
||||
|
|
|
@ -399,11 +399,10 @@ autoUpdater.on('update-not-available', (info) => {
|
|||
});
|
||||
|
||||
|
||||
autoUpdater.on('update-downloaded', (info) => {
|
||||
autoUpdater.on('update-downloaded', () => {
|
||||
mainLog.info('update downloaded');
|
||||
let arg = {
|
||||
status: "update-downloaded",
|
||||
info: info
|
||||
status: "update-downloaded"
|
||||
};
|
||||
win.webContents.send('action-updater', arg);
|
||||
// we need to call this at this point.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "FreeDATA",
|
||||
"version": "0.0.1-alpha.20",
|
||||
"version": "0.0.1-alpha.21",
|
||||
"description": "FreeDATA ",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in a new issue