From 13c49f3652e8ddcc02d3413b28a80990db9c5322 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Mon, 10 Jun 2024 09:59:13 +0200 Subject: [PATCH] chore: improve dev scripts --- DEVELOPMENT.md | 3 +++ apps/electron/package.json | 3 ++- turbo.json | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 4aeeadbc4..1ee9cd3df 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -81,6 +81,9 @@ From the project root, run the following commands The build distribution assets will be at `.apps/electron/dist` +Note: The MacOS build will only work in CI, locally it will fail due to notarisation issues. +Use the `turbo dist-mac:local` command to build a MacOS distribution locally. + ## DOCKER Ontime provides a docker-compose file to aid with building and running docker images. diff --git a/apps/electron/package.json b/apps/electron/package.json index cd3c71cbf..faa4b5556 100644 --- a/apps/electron/package.json +++ b/apps/electron/package.json @@ -22,9 +22,10 @@ "postinstall": "", "lint": "eslint . --quiet", "lint-staged": "eslint", - "dev:electron": "cross-env NODE_ENV=development electron .", + "dev": "cross-env NODE_ENV=development electron .", "dist-win": "electron-builder --publish=never --x64 --win", "dist-mac": "electron-builder --publish=never --mac", + "dist-mac:local": "electron-builder --publish=never --mac -c.mac.identity=null", "dist-linux": "electron-builder --publish=never --x64 --linux", "cleanup": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" }, diff --git a/turbo.json b/turbo.json index 49dec3d1a..9b582f876 100644 --- a/turbo.json +++ b/turbo.json @@ -31,6 +31,7 @@ }, "dist-win": {}, "dist-mac": {}, + "dist-mac:local": {}, "dist-linux": {}, "cleanup": {} }