Skip to content

Commit

Permalink
Build: Cleaned up builds scripts and made them run in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdicarlo committed Apr 2, 2021
1 parent 624e7fa commit 447a1aa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion electron-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
18 changes: 12 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
}

0 comments on commit 447a1aa

Please sign in to comment.