Merge branch 'main' into ls-mesh

This commit is contained in:
DJ2LS 2023-10-24 23:27:26 +02:00 committed by GitHub
commit 9aa0b7c7a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 18 additions and 13 deletions

View file

@ -228,7 +228,7 @@ jobs:
python-version: "3.11" python-version: "3.11"
- name: Install Node.js, NPM and Yarn - name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: 18.17 node-version: 18.17
@ -388,6 +388,7 @@ jobs:
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')
with: with:
draft: true
files: ./modem/dist/modem/${{ matrix.zip_name }}.zip files: ./modem/dist/modem/${{ matrix.zip_name }}.zip
#files: ./modem/dist/${{ matrix.zip_name }}.zip #files: ./modem/dist/${{ matrix.zip_name }}.zip

View file

@ -32,16 +32,17 @@
"target": [ "target": [
{ {
"target": "default", "target": "default",
"arch": ["arm64", "x64"] "arch": ["universal"]
} }
], ],
"notarize": "false", "notarize": "false",
"icon": "build/icon.png", "icon": "build/icon.png",
"hardenedRuntime": true, "hardenedRuntime": true,
"entitlements": "build/entitlements.plist", "entitlements": "build/entitlements.plist",
"entitlementsInherit": "build/entitlements.plist", "entitlementsInherit": "build/entitlements.plist",
"gatekeeperAssess": false, "gatekeeperAssess": false,
"artifactName": "${productName}-Mac-${version}-Installer.${ext}" "mergeASARs": true,
"artifactName": "${productName}-Mac-${version}.${ext}"
}, },
"win": { "win": {
"icon": "build/icon.png", "icon": "build/icon.png",
@ -51,7 +52,7 @@
"arch": ["arm64", "x64"] "arch": ["arm64", "x64"]
} }
], ],
"artifactName": "${productName}-Windows-${version}-Setup.${ext}" "artifactName": "${productName}-Windows-${version}.${ext}"
}, },
"nsis": { "nsis": {
"oneClick": false, "oneClick": false,

View file

@ -2,10 +2,10 @@
"name": "FreeDATA", "name": "FreeDATA",
"description": "FreeDATA", "description": "FreeDATA",
"private": true, "private": true,
"version": "0.11.0-alpha.6", "version": "0.11.0-alpha.8",
"main": "dist-electron/main/index.js", "main": "dist-electron/main/index.js",
"scripts": { "scripts": {
"start": "git pull && npm i && vite", "start": "vite",
"dev": "vite", "dev": "vite",
"check": "vue-tsc --noEmit", "check": "vue-tsc --noEmit",
"build": "vue-tsc --noEmit && vite build && electron-builder -p never", "build": "vue-tsc --noEmit && vite build && electron-builder -p never",

View file

@ -644,7 +644,7 @@ function deleteFromDatabaseByCallsign(callsign) {
.then(function (doc) { .then(function (doc) {
db.remove(doc) db.remove(doc)
.then(function () { .then(function () {
updateAllChat(false); //updateAllChat(false);
return true; return true;
}) })
.catch(function (err) { .catch(function (err) {

View file

@ -46,7 +46,7 @@ function connectModem() {
client.on("connect", function () { client.on("connect", function () {
console.log("Modem connection established"); console.log("Modem connection established");
stateStore.modem_running_state = "running";
stateStore.busy_state = "-"; stateStore.busy_state = "-";
stateStore.arq_state = "-"; stateStore.arq_state = "-";
stateStore.frequency = "-"; stateStore.frequency = "-";
@ -63,7 +63,9 @@ client.on("error", function (err) {
console.log("Modem connection error"); console.log("Modem connection error");
console.log(err); console.log(err);
modemShowConnectStateError = 0; modemShowConnectStateError = 0;
stateStore.modem_running_state = "stopped";
} }
setTimeout(connectModem, 500); setTimeout(connectModem, 500);
client.destroy(); client.destroy();
stateStore.busy_state = "-"; stateStore.busy_state = "-";
@ -93,6 +95,7 @@ client.on("end", function (data) {
stateStore.dbfs_level = 0; stateStore.dbfs_level = 0;
stateStore.updateTncState(client.readyState); stateStore.updateTncState(client.readyState);
client.destroy(); client.destroy();
stateStore.modem_running_state = "stopped";
setTimeout(connectModem, 500); setTimeout(connectModem, 500);
}); });

View file

@ -1128,12 +1128,12 @@ class ThreadedTCPRequestHandler(socketserver.StreamRequestHandler):
def daemon_stop_modem(self, received_json): def daemon_stop_modem(self, received_json):
try: try:
log.warning("[SCK] Stopping Modem")
Daemon.modemstarted = False
Daemon.modemprocess.kill() Daemon.modemprocess.kill()
# unregister process from atexit to avoid process zombies # unregister process from atexit to avoid process zombies
atexit.unregister(Daemon.modemprocess.kill) atexit.unregister(Daemon.modemprocess.kill)
log.warning("[SCK] Stopping Modem")
Daemon.modemstarted = False
command_response("stop_modem", True) command_response("stop_modem", True)
except Exception as err: except Exception as err:
command_response("stop_modem", False) command_response("stop_modem", False)

View file

@ -134,7 +134,7 @@ class TCIParam:
@dataclass @dataclass
class Modem: class Modem:
version = "0.11.0-alpha.6" version = "0.11.0-alpha.8"
host: str = "0.0.0.0" host: str = "0.0.0.0"
port: int = 3000 port: int = 3000
SOCKET_TIMEOUT: int = 1 # seconds SOCKET_TIMEOUT: int = 1 # seconds

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [ ! -d "tnc" ]; then if [ ! -d "modem" ]; then
echo "Error: Run this script from the main FreeDATA directory." echo "Error: Run this script from the main FreeDATA directory."
exit 1 exit 1
fi fi