From 8e07f46c22e61a035bad98eaf15acc41a57a3d59 Mon Sep 17 00:00:00 2001 From: peancored Date: Thu, 15 Feb 2024 01:18:39 +0000 Subject: [PATCH] Build scripts + version --- package.json | 5 ++++- release/app/package.json | 11 +++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 76b3f58..6df0c82 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "description": "Play your favorite Clone Hero drum tracks", + "version": "0.1.0", "keywords": [ "clonehero", "drums", @@ -24,7 +25,8 @@ "build:renderer": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.prod.ts", "postinstall": "ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && npm run build:dll", "lint": "cross-env NODE_ENV=development eslint . --ext .js,.jsx,.ts,.tsx", - "package": "ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build --publish never && npm run build:dll", + "package": "ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build -w --x64 --mac --publish never && npm run build:dll", + "package:win": "ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build -w --x64 --publish never && npm run build:dll", "rebuild": "electron-rebuild --parallel --types prod,dev,optional --module-dir release/app", "start": "ts-node ./.erb/scripts/check-port-in-use.js && npm run start:renderer", "start:main": "cross-env NODE_ENV=development electronmon -r ts-node/register/transpile-only .", @@ -172,6 +174,7 @@ }, "build": { "productName": "DrumHero", + "buildVersion": "0.1.0", "appId": "org.dh.DrumHero", "asar": true, "asarUnpack": "**\\*.{node,dll}", diff --git a/release/app/package.json b/release/app/package.json index de2f9ac..1880364 100644 --- a/release/app/package.json +++ b/release/app/package.json @@ -1,12 +1,11 @@ { - "name": "electron-react-boilerplate", - "version": "4.6.0", - "description": "A foundation for scalable desktop apps", + "name": "drum-hero", + "version": "0.1.0", + "description": "Play your favorite Clone Hero drum tracks", "license": "MIT", "author": { - "name": "Electron React Boilerplate Maintainers", - "email": "electronreactboilerplate@gmail.com", - "url": "https://github.com/electron-react-boilerplate" + "name": "Anton Korolkov", + "email": "peancored@gmail.com" }, "main": "./dist/main/main.js", "scripts": {