test with universal support

This commit is contained in:
DJ2LS 2023-10-23 09:17:44 +02:00
parent c6e3d9169e
commit 56de66e68e
3 changed files with 11 additions and 6 deletions

View file

@ -2,12 +2,13 @@ const { notarize } = require('@electron/notarize');
async function notarizing(context) { async function notarizing(context) {
const { electronPlatformName, appOutDir } = context; const { electronPlatformName, appOutDir } = context;
console.log("platform:" + electronPlatformName) console.log("Notarization...")
if (electronPlatformName !== 'darwin') { if (electronPlatformName !== 'darwin') {
console.log("not a APPLE system") console.log("--> Platform:" + electronPlatformName + " detected: not a APPLE system. Skipping")
return; return;
} }
console.log("--> Platform:" + electronPlatformName + " detected: Trying to notarize app.")
const appName = context.packager.appInfo.productFilename; const appName = context.packager.appInfo.productFilename;
return await notarize({ return await notarize({

View file

@ -5,7 +5,7 @@
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json", "$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
"appId": "app.freedata", "appId": "app.freedata",
"asar": true, "asar": true,
"afterPack": "build/notarize_macos.js", "afterSign": "build/notarize_macos.js",
"productName": "FreeDATA", "productName": "FreeDATA",
"directories": { "directories": {
"output": "release" "output": "release"
@ -30,14 +30,18 @@
"mac": { "mac": {
"target": [ "target": [
"dmg" "default"
], ],
"arch": [
"x64",
"universal"
],
"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}" "artifactName": "${productName}-Mac-${version}-Installer.${ext}"
}, },
"win": { "win": {
"icon": "build/icon.png", "icon": "build/icon.png",

View file

@ -134,7 +134,7 @@ class TCIParam:
@dataclass @dataclass
class Modem: class Modem:
version = "0.11.0-alpha.1-vuejs" version = "0.11.0-alpha.2"
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