diff --git a/electron-app/package.json b/electron-app/package.json index b0127eda..6f322b87 100644 --- a/electron-app/package.json +++ b/electron-app/package.json @@ -16,11 +16,12 @@ "postinstall": "electron-builder install-app-deps", "build": "nest build", "build:linux": "electron-builder -l", - "build:mac": "electron-builder -m", + "build:osx": "electron-builder -m", "build:windows": "electron-builder -w", "build:release": "export $(cat .env | xargs) && electron-builder -mwl -p always", "release:windows": "electron-builder -w -p always", "release:linux": "electron-builder -l -p always", + "release:osx": "export $(cat .env | xargs) && electron-builder -m -p always", "clean": "rimraf release", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "npm run prebuild && nest build && electron dist/main --develop", diff --git a/package.json b/package.json index d024898a..5fef2f11 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,17 @@ "description": "PostyBirb is an application that helps artists post art and other multimedia to multiple websites more quickly..", "main": "index.js", "scripts": { - "build": "npm run build:common && yarn run build:ui && yarn run build:app", - "build:app": "cd electron-app && npm install && yarn run build", - "build:common": "cd commons && npm install && npm run build", - "build:ui": "cd ui && npm install && yarn run build", - "release:windows": "node create-signer.js && yarn run build && cd electron-app && yarn run release:windows", - "release:linux": "node create-signer.js && yarn run build && cd electron-app && yarn run release:linux" + "install": "run-p install:**", + "install:commons": "cd commons && npm install && npm run build", + "install:app": "cd electron-app && npm install", + "install:ui": "cd ui && npm install", + "build": "run-p build:**", + "build:app": "cd electron-app && npm run build", + "build:ui": "cd ui && npm run build", + "make": "run-s install build", + "release:windows": "node create-signer.js && npm run make && cd electron-app && yarn run release:windows", + "release:linux": "node create-signer.js && npm run make && cd electron-app && yarn run release:linux", + "release:osx": "npm run make && cd electron-app && yarn run release:osx" }, "repository": { "type": "git", @@ -23,6 +28,7 @@ "homepage": "https://github.com/mvdicarlo/postybirb-plus#readme", "dependencies": { "@mtproto/core": "^5.3.0", + "npm-run-all": "^4.1.5", "yarn": "^1.22.4" } }