mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 10:04:33 +02:00
preparings for builder
This commit is contained in:
parent
c55585919c
commit
a09cfd89e9
|
@ -5,7 +5,7 @@
|
|||
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
|
||||
"appId": "YourAppID",
|
||||
"asar": true,
|
||||
"productName": "YourAppName",
|
||||
"productName": "FreeDATA",
|
||||
"directories": {
|
||||
"output": "release/${version}"
|
||||
},
|
||||
|
@ -40,6 +40,19 @@
|
|||
"target": [
|
||||
"AppImage"
|
||||
],
|
||||
"artifactName": "${productName}-Linux-${version}.${ext}"
|
||||
}
|
||||
}
|
||||
"artifactName": "${productName}-${version}.${ext}"
|
||||
},
|
||||
"files": [
|
||||
"**/*",
|
||||
"!**/*.ts",
|
||||
"!*.map",
|
||||
"!package.json",
|
||||
"!package-lock.json",
|
||||
{
|
||||
"from": "../dist",
|
||||
"filter": [
|
||||
"**/*"
|
||||
]
|
||||
},
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
{
|
||||
"name": "FreeDATA",
|
||||
"description": "FreeDATA ",
|
||||
"private": true,
|
||||
"version": "0.11.0-alpha",
|
||||
"main": "dist-electron/main/index.js",
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
"dev": "vite",
|
||||
"dev": "vite",
|
||||
"build": "vue-tsc --noEmit && vite build && electron-builder",
|
||||
"preview": "vite preview",
|
||||
"lint": "eslint --ext .js,.vue src",
|
||||
|
@ -74,65 +75,5 @@
|
|||
"vite-plugin-electron-renderer": "^0.14.5",
|
||||
"vue": "^3.3.4",
|
||||
"vue-tsc": "^1.4.2"
|
||||
},
|
||||
"build": {
|
||||
"productName": "FreeDATA",
|
||||
"appId": "app.freedata",
|
||||
"afterSign": "electron-builder-notarize",
|
||||
"npmRebuild": "false",
|
||||
"directories": {
|
||||
"buildResources": "build",
|
||||
"output": "dist"
|
||||
},
|
||||
"mac": {
|
||||
"target": [
|
||||
"default"
|
||||
],
|
||||
"icon": "build/icon.png",
|
||||
"hardenedRuntime": true,
|
||||
"entitlements": "build/entitlements.plist",
|
||||
"entitlementsInherit": "build/entitlements.plist",
|
||||
"gatekeeperAssess": false
|
||||
},
|
||||
"win": {
|
||||
"icon": "build/icon.png",
|
||||
"target": [
|
||||
"nsis"
|
||||
]
|
||||
},
|
||||
"linux": {
|
||||
"icon": "build/icon.png",
|
||||
"target": [
|
||||
"AppImage"
|
||||
],
|
||||
"category": "Development"
|
||||
},
|
||||
"publish": {
|
||||
"provider": "github",
|
||||
"releaseType": "release"
|
||||
},
|
||||
"extraResources": [
|
||||
{
|
||||
"from": "../tnc/dist/tnc/",
|
||||
"to": "tnc",
|
||||
"filter": [
|
||||
"**/*",
|
||||
"!**/.git"
|
||||
]
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
"**/*",
|
||||
"!**/*.ts",
|
||||
"!*.map",
|
||||
"!package.json",
|
||||
"!package-lock.json",
|
||||
{
|
||||
"from": "../dist",
|
||||
"filter": [
|
||||
"**/*"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,10 @@ function chatSelected(callsign) {
|
|||
|
||||
// scroll message container to bottom
|
||||
var messageBody = document.getElementById("message-container");
|
||||
messageBody.scrollTop = messageBody.scrollHeight - messageBody.clientHeight;
|
||||
if (messageBody != null ) {
|
||||
// needs sensible defaults
|
||||
messageBody.scrollTop = messageBody.scrollHeight - messageBody.clientHeight;
|
||||
}
|
||||
|
||||
try {
|
||||
chat.beaconLabelArray = Object.values(
|
||||
|
|
|
@ -15,14 +15,44 @@ import { useSettingsStore } from "../store/settingsStore.js";
|
|||
const settings = useSettingsStore(pinia);
|
||||
// ---------------------------------
|
||||
|
||||
var appDataFolder =
|
||||
process.env.APPDATA ||
|
||||
(process.platform == "darwin"
|
||||
? process.env.HOME + "/Library/Application Support"
|
||||
: process.env.HOME + "/.config");
|
||||
console.log(process.env)
|
||||
if(typeof process.env["APPDATA"] !== "undefined"){
|
||||
var appDataFolder = process.env["APPDATA"]
|
||||
console.log(appDataFolder)
|
||||
|
||||
} else {
|
||||
switch (process.platform) {
|
||||
case "darwin":
|
||||
var appDataFolder = process.env["HOME"] + "/Library/Application Support";
|
||||
console.log(appDataFolder)
|
||||
|
||||
break;
|
||||
case "linux":
|
||||
var appDataFolder = process.env["HOME"] + "/.config";
|
||||
console.log(appDataFolder)
|
||||
|
||||
break;
|
||||
case "linux2":
|
||||
var appDataFolder = "undefined";
|
||||
break;
|
||||
case "windows":
|
||||
var appDataFolder = "undefined";
|
||||
break;
|
||||
default:
|
||||
var appDataFolder = "undefined";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var configFolder = path.join(appDataFolder, "FreeDATA");
|
||||
var configPath = path.join(configFolder, "config.json");
|
||||
|
||||
console.log(appDataFolder)
|
||||
console.log(configFolder)
|
||||
console.log(configPath)
|
||||
|
||||
|
||||
// create config folder if not exists
|
||||
if (!fs.existsSync(configFolder)) {
|
||||
fs.mkdirSync(configFolder);
|
||||
|
|
|
@ -4,20 +4,20 @@ tncport = 3000
|
|||
|
||||
[STATION]
|
||||
#station settings
|
||||
mycall = DN2LS-0
|
||||
mycall = DJ2LS
|
||||
mygrid = JN48cs
|
||||
ssid_list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||
|
||||
[AUDIO]
|
||||
#audio settings
|
||||
rx = 6
|
||||
tx = 6
|
||||
txaudiolevel = 250
|
||||
rx = 4
|
||||
tx = 4
|
||||
txaudiolevel = 100
|
||||
auto_tune = False
|
||||
|
||||
[RADIO]
|
||||
#radio settings
|
||||
radiocontrol = tci
|
||||
radiocontrol = disabled
|
||||
rigctld_ip = 127.0.0.1
|
||||
rigctld_port = 4532
|
||||
|
||||
|
@ -26,16 +26,21 @@ rigctld_port = 4532
|
|||
scatter = True
|
||||
fft = True
|
||||
narrowband = False
|
||||
fmin = -150.0
|
||||
fmax = 150.0
|
||||
fmin = -50.0
|
||||
fmax = 50.0
|
||||
qrv = True
|
||||
rx_buffer_size = 16
|
||||
explorer = False
|
||||
explorer = True
|
||||
stats = False
|
||||
fsk = False
|
||||
tx_delay = 50
|
||||
tx_delay = 0
|
||||
|
||||
[TCI]
|
||||
ip = 127.0.0.1
|
||||
port = 50001
|
||||
#tci settings
|
||||
ip = undefined
|
||||
port = undefined
|
||||
|
||||
[MESH]
|
||||
#tci settings
|
||||
enable_protocol = False
|
||||
|
||||
|
|
Loading…
Reference in a new issue