mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 10:04:33 +02:00
v0.0.1-alpha
a first test with github build scripts and a possible auto updater for the app bundle. This feature is really needed to ensure the user always has the latest version of the gui. Specially in the first phase of releasing the app, there are a lot of changes. This makes the overall usability hopefully easier! Everyone who's getting github notifictaions: this might cause a lot of emails now. Sorry for this..
This commit is contained in:
parent
84e342cd89
commit
35bb004c9e
5
.github/workflows/build-project-linux.yml
vendored
5
.github/workflows/build-project-linux.yml
vendored
|
@ -104,7 +104,7 @@ jobs:
|
|||
- name: Install Node.js, NPM and Yarn
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 14
|
||||
node-version: 16
|
||||
|
||||
|
||||
- name: Build/release Electron app
|
||||
|
@ -112,6 +112,9 @@ jobs:
|
|||
with:
|
||||
package_root: "./gui/"
|
||||
github_token: ${{ secrets.github_token }}
|
||||
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
||||
# release the app after building
|
||||
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
|
||||
- name: LIST ALL FILES
|
||||
shell: bash
|
||||
|
|
5
.github/workflows/build-project-mac.yml
vendored
5
.github/workflows/build-project-mac.yml
vendored
|
@ -92,7 +92,7 @@ jobs:
|
|||
- name: Install Node.js, NPM and Yarn
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 14
|
||||
node-version: 16
|
||||
|
||||
|
||||
- name: Build/release Electron app
|
||||
|
@ -100,6 +100,9 @@ jobs:
|
|||
with:
|
||||
package_root: "./gui/"
|
||||
github_token: ${{ secrets.github_token }}
|
||||
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
||||
# release the app after building
|
||||
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
|
||||
- name: LIST ALL FILES
|
||||
shell: bash
|
||||
|
|
5
.github/workflows/build-project-win.yml
vendored
5
.github/workflows/build-project-win.yml
vendored
|
@ -72,7 +72,7 @@ jobs:
|
|||
- name: Install Node.js, NPM and Yarn
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 14
|
||||
node-version: 16
|
||||
|
||||
|
||||
- name: Build/release Electron app
|
||||
|
@ -80,6 +80,9 @@ jobs:
|
|||
with:
|
||||
package_root: "./gui/"
|
||||
github_token: ${{ secrets.github_token }}
|
||||
# If the commit is tagged with a version (e.g. "v1.0.0"),
|
||||
# release the app after building
|
||||
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
|
||||
- name: LIST ALL FILES
|
||||
shell: bash
|
||||
|
|
16
gui/main.js
16
gui/main.js
|
@ -3,6 +3,7 @@ const {
|
|||
BrowserWindow,
|
||||
ipcMain
|
||||
} = require('electron');
|
||||
const { autoUpdater } = require('electron-updater');
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const os = require('os');
|
||||
|
@ -151,6 +152,11 @@ function createWindow() {
|
|||
win = null;
|
||||
chat = null;
|
||||
})
|
||||
|
||||
|
||||
win.once('ready-to-show', () => {
|
||||
autoUpdater.checkForUpdatesAndNotify();
|
||||
});
|
||||
|
||||
|
||||
chat.on('closed', function () {
|
||||
|
@ -335,3 +341,13 @@ ipcMain.on('request-update-rx-buffer', (event, arg) => {
|
|||
ipcMain.on('request-update-rx-msg-buffer', (event, arg) => {
|
||||
chat.webContents.send('action-update-rx-msg-buffer', arg);
|
||||
});
|
||||
|
||||
|
||||
|
||||
autoUpdater.on('update-available', () => {
|
||||
console.log('update available');
|
||||
});
|
||||
autoUpdater.on('update-downloaded', () => {
|
||||
console.log('update downloaded');
|
||||
});
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "FreeDATA",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.1-alpha",
|
||||
"description": "FreeDATA ",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
@ -13,7 +13,7 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/DJ2LS/FreeDATA.git"
|
||||
"url": "https://github.com/DJ2LS/FreeDATA.git"
|
||||
},
|
||||
"keywords": [
|
||||
"TNC",
|
||||
|
@ -32,48 +32,49 @@
|
|||
"bootswatch": "^5.1.3",
|
||||
"chart.js": "^3.5.1",
|
||||
"chartjs-plugin-annotation": "^1.0.2",
|
||||
"electron-updater": "^4.6.5",
|
||||
"qth-locator": "^2.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"electron": "^17.0.0",
|
||||
"electron-builder": "^22.14.13"
|
||||
},
|
||||
"build":{
|
||||
"productName":"FreeDATA",
|
||||
"appId":"app.freedata",
|
||||
"dmg":{
|
||||
"icon": "./src/icon_cube_border.png",
|
||||
"contents":[
|
||||
{
|
||||
"x":130,
|
||||
"y":220
|
||||
},
|
||||
{
|
||||
"x":410,
|
||||
"y":220,
|
||||
"type":"link",
|
||||
"path":"/Applications"
|
||||
}
|
||||
]
|
||||
"build": {
|
||||
"productName": "FreeDATA",
|
||||
"appId": "app.freedata",
|
||||
"dmg": {
|
||||
"icon": "./src/icon_cube_border.png",
|
||||
"contents": [
|
||||
{
|
||||
"x": 130,
|
||||
"y": 220
|
||||
},
|
||||
{
|
||||
"x": 410,
|
||||
"y": 220,
|
||||
"type": "link",
|
||||
"path": "/Applications"
|
||||
}
|
||||
]
|
||||
},
|
||||
"win":{
|
||||
"icon": "./src/icon_cube_border.png",
|
||||
"target":[
|
||||
"nsis",
|
||||
"msi"
|
||||
]
|
||||
"win": {
|
||||
"icon": "./src/icon_cube_border.png",
|
||||
"target": [
|
||||
"nsis"
|
||||
]
|
||||
},
|
||||
"linux":{
|
||||
"icon": "./src/icon_cube_border.png",
|
||||
"target":[
|
||||
"AppImage"
|
||||
],
|
||||
"category":"Development"
|
||||
"linux": {
|
||||
"icon": "./src/icon_cube_border.png",
|
||||
"target": [
|
||||
"AppImage"
|
||||
],
|
||||
"category": "Development"
|
||||
},
|
||||
"directories":{
|
||||
"output":"dist"
|
||||
"directories": {
|
||||
"output": "dist"
|
||||
},
|
||||
"extraResources": ["./tnc/**"]
|
||||
}
|
||||
|
||||
"extraResources": [
|
||||
"./tnc/**"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue