Files
ontime/apps/electron/package.json
T
Alex Christoffer Rasmussen c1fcdf7065 Remove serverport from project file (#1957)
* feat: get server port from app satate or env

optional startup port from env will always override

function for parsing port from env

populate default port in app state

add test for migration

* bump version
2026-03-02 06:02:29 -08:00

136 lines
3.5 KiB
JSON

{
"name": "ontime-electron",
"version": "4.5.0",
"author": "Carlos Valente",
"description": "Time keeping for live events",
"repository": "https://github.com/cpvalente/ontime",
"keywords": [
"ontime",
"timer",
"stage timer",
"rundown"
],
"license": "AGPL-3.0-only",
"main": "src/main.js",
"devDependencies": {
"electron": "38.2.1",
"electron-builder": "26.0.18",
"eslint": "catalog:",
"eslint-config-prettier": "catalog:",
"prettier": "catalog:",
"wait-on": "^7.2.0"
},
"scripts": {
"dev:electron": "wait-on http://localhost:3000 && cross-env NODE_ENV=development electron .",
"lint": "eslint . --quiet",
"dist-win": "electron-builder --publish=never --x64 --win",
"dist-mac": "electron-builder --publish=never --mac",
"dist-linux": "electron-builder --publish=never --linux"
},
"build": {
"productName": "ontime",
"appId": "no.lightdev.ontime",
"asar": true,
"dmg": {
"artifactName": "ontime-macOS-${arch}.dmg",
"icon": "icon.icns"
},
"mac": {
"notarize": true,
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "./entitlements.plist",
"entitlementsInherit": "./entitlements.plist",
"target": {
"target": "dmg",
"arch": [
"x64",
"arm64"
]
},
"category": "public.app-category.productivity",
"icon": "icon.icns"
},
"win": {
"target": "nsis"
},
"nsis": {
"artifactName": "ontime-win64.exe",
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"allowElevation": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"deleteAppDataOnUninstall": true,
"runAfterFinish": false,
"installerIcon": "icon.ico",
"installerSidebar": "ontime-install.bmp",
"uninstallerSidebar": "ontime-install.bmp"
},
"linux": {
"target": {
"target": "AppImage",
"arch": [
"x64",
"arm64",
"armv7l"
]
},
"artifactName": "ontime-linux-${arch}.AppImage"
},
"files": [
"**/*",
"src/assets/",
"!**/{yarn.lock,yarn-error.log}",
"!**/{pnpm-lock.yaml}",
"!**/{test,tests,__test__,__tests__}",
"!**/{mock,mocks,__mock__,__mocks__}",
"!*{.spec.js,*.test.js,*.spec.ts,.test.ts}"
],
"directories": {
"buildResources": "./src/assets/"
},
"extraResources": [
{
"from": "../client/build",
"to": "extraResources/client/",
"filter": [
"**/*",
"!**/{yarn.lock,yarn-error.log}",
"!**/{pnpm-lock.yaml}",
"!**/{test,tests,__test__,__tests__}",
"!**/{mock,mocks,__mock__,__mocks__}",
"!*{.spec.js,*.test.js,*.spec.ts,.test.ts}"
]
},
{
"from": "../server/dist/",
"to": "extraResources/server/",
"filter": [
"**/*",
"!**/{yarn.lock,yarn-error.log}",
"!**/{pnpm-lock.yaml}",
"!**/{test,tests,__test__,__tests__}",
"!**/{mock,mocks,__mock__,__mocks__}",
"!*{.spec.js,*.test.js,*.spec.ts,.test.ts}"
]
},
{
"from": "../server/src/external/",
"to": "extraResources/external/",
"filter": [
"**/*"
]
},
{
"from": "../server/src/user/",
"to": "extraResources/user/",
"filter": [
"**/*",
"*{.ts}"
]
}
]
}
}